diffplug / diffplug/spotless

Could not create task ':spotlessGroovy' w/ plugin `io.spring.dependency-management` > 1.1.0

オープン
#1,772 コメント 8 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug
主要言語
Java
スター
5.7k
フォーク
561
平均マージ
1日 14時間
マージ済み PR(30日)
43

説明

Spotless 6.20.0 does not get along well with the Spring Dependency Management Plugin in recent versions.
I'm getting
```
Could not determine the dependencies of task ':spotlessCheck'.
> Could not create task ':spotlessGroovyCheck'.
> Could not create task ':spotlessGroovy'.
> You need to add a repository containing the '[dev.equo.ide:solstice:1.3.1, [...], org.osgi:org.osgi.util.promise:1.3.0, org.tukaani:xz:1.9]' artifact in 'build.gradle'.
E.g.: 'repositories { mavenCentral() }'
```
It does work with `io.spring.dependency-management` 1.1.0.

This is the changelog for 1.1.1: https://github.com/spring-gradle-plugins/dependency-management-plugin/releases/tag/v1.1.1

I'm raising the issue here because I found similar bug reports in the closed issues and it's probably easier for the Spotless devs to figure out what might be happening here.

Sample project: [sample.zip](https://github.com/diffplug/spotless/files/12212629/sample.zip)

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

添付された sample.zip とその build.gradle から始め、io.spring.dependency-management 1.1.1 での失敗を再現してから、1.1.0 の場合と比較します。spotlessGroovy タスクが作成されるときの依存関係解決を追跡します。1.1.1 でサンプルが、追加のリポジトリ回避策を必要とせずに動作すれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
groovy, java
領域
build-system
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。