Skip to content

Gradle apiDiff task does not work against a milestone #27928

@snicoll

Description

@snicoll

Running ./gradlew apiDiff -PbaselineVersion=6.0.0-M1 leads to:

Starting a Gradle Daemon (subsequent builds will be faster)
> Task :spring-instrument:apiDiff FAILED
> Task :spring-jcl:apiDiff FAILED

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':spring-instrument:apiDiff'.
> Could not resolve all files for configuration ':detachedConfiguration9'.
   > Could not find org.springframework:spring-instrument:6.0.0-M1.
     Searched in the following locations:
       - https://repo.maven.apache.org/maven2/org/springframework/spring-instrument/6.0.0-M1/spring-instrument-6.0.0-M1.pom
       - https://repo.spring.io/libs-spring-framework-build/org/springframework/spring-instrument/6.0.0-M1/spring-instrument-6.0.0-M1.pom
     Required by:
         project :

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':spring-jcl:apiDiff'.
> Could not resolve all files for configuration ':detachedConfiguration10'.
   > Could not find org.springframework:spring-jcl:6.0.0-M1.
     Searched in the following locations:
       - https://repo.maven.apache.org/maven2/org/springframework/spring-jcl/6.0.0-M1/spring-jcl-6.0.0-M1.pom
       - https://repo.spring.io/libs-spring-framework-build/org/springframework/spring-jcl/6.0.0-M1/spring-jcl-6.0.0-M1.pom
     Required by:
         project :

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.3.3/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 15s
31 actionable tasks: 8 executed, 4 from cache, 19 up-to-date

Adding the milestone repo manually fixes the problem.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions