diffplug / diffplug/spotless

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

Open
#1,772 8 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
5.6k
Forks
559
Avg merge
1d 13h
Merged PRs (30d)
34

Description

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)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.