Content-Length: 287232 | pFad | https://github.com/gradle/gradle/issues/36428

1A Breaking change in 9.3.0 regarding cross-project dependency manipulation · Issue #36428 · gradle/gradle · GitHub
Skip to content

Breaking change in 9.3.0 regarding cross-project dependency manipulation #36428

@Vampire

Description

@Vampire

Current Behavior

  • have a build with two projects
  • put to the root project
    subprojects {
        configurations.configureEach {
            allDependencies.configureEach {
            }
        }
    }
  • run ./gradlew dependencies

Ignoring that this is of course bad-practice cross-project configuration,
this works up to including 9.2.1 but fails with 9.3.0:

An exception occurred applying plugin request [id: 'org.gradle.java-library']
> Failed to apply plugin class 'org.gradle.api.plugins.JavaPlugin'.
   > Could not create domain object 'java' (JvmSoftwareComponentInternal) in SoftwareComponent container
      > Could not create domain object 'test' (JvmTestSuite) in TestSuite container
         > Could not create an instance of type org.gradle.api.plugins.jvm.internal.DefaultJvmTestSuite.
            > The value for property 'dependencies.compileOnly' property 'dependencies' is final and cannot be changed any further.

If that is an intentional new limitation, it should probably go through the usual deprecation cycle.

Expected Behavior

Not breaking in a minor update

Gradle version

9.3.0

Gradle version that used to work

9.2.1

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions









    ApplySandwichStrip

    pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


    --- a PPN by Garber Painting Akron. With Image Size Reduction included!

    Fetched URL: https://github.com/gradle/gradle/issues/36428

    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy