Gradle is not honoring status attribute for buildscript classpath dependencies when using plugin markers #28933
Labels
a:regression
This used to work
affects-version:8.7
in:dependency-declarations
variant notation attributes capability substitution
Current Behavior
When setting
org.gradle.status
forbuildscript
classpath dependencies viaAttributeContainer
, it results in a deprecation and not honoring this opinion.Expected Behavior
Setting
org.gradle.status
attribute for buildscript classpath dependencies should be honored and not result in a deprecation when using plugin marker dependenciesContext (optional)
No response
Steps to Reproduce
Given the following build file:
When running
./gradlew bE
(or any task), you will see the following:This only happens in 8.7
Similarly, if you have something like
The status attribute is used correctly in 8.6 but in 8.7 it results in picking up a version
8.6 output
8.7 output
It appears some work has to happen in
gradle/platforms/extensibility/plugin-use/src/main/java/org/gradle/plugin/use/resolve/internal/ArtifactRepositoriesPluginResolver.java
Line 174 in 43fc58d
Gradle version
8.7
Build scan URL (optional)
https://scans.gradle.com/s/4qb632y4mq6jc
Your Environment (optional)
Operating system macOS 14.4 (aarch64)
CPU cores 16 cores
Max Gradle workers 16 workers
Java runtime Azul Zulu OpenJDK Runtime Environment 21.0.2+13-LTS
Java VM Azul Zulu OpenJDK 64-Bit Server VM 21.0.2+13-LTS (mixed mode, sharing)
The text was updated successfully, but these errors were encountered: