Skip to content

copy configuration attributes from runtimeClasspath to developmentOnly and testAndDevelopmentOnly - #51493

Open
wakingrufus wants to merge 1 commit into
spring-projects:mainfrom
wakingrufus:fix-configuration-attributes
Open

copy configuration attributes from runtimeClasspath to developmentOnly and testAndDevelopmentOnly#51493
wakingrufus wants to merge 1 commit into
spring-projects:mainfrom
wakingrufus:fix-configuration-attributes

Conversation

@wakingrufus

Copy link
Copy Markdown

copy configuration attributes from runtimeClasspath to developmentOnly and testAndDevelopmentOnly

fixes gh-51492

the developmentOnly and testAndDevelopmentOnly do not specify attributes, which can lead to Gradle selecting the wrong variant, or failing to resolve due to an ambiguity error. This can be avoided by following best practices regarding configuration attributes in gradle:
https://docs.gradle.org/current/userguide/best_practices_dependencies.html#use_attributes_on_configurations

the productionRuntimeClasspath was previously fixed in b01235e so a similar fix is needed for these configurations as well

I also included refactors in the modified code to better comply with Gradle lazy APIs

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Aug 28, 2026
…y and testAndDevelopmentOnly

fixes spring-projectsgh-51492
include refactors in the modified code to better comply with Gradle lazy APIs

Signed-off-by: John Burns <wakingrufus@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: waiting-for-triage An issue we've not yet triaged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Resolution of developmentOnly and testAndDevelopmentOnly are not specified

2 participants