You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to Gradle's documentation, JvmTestSuites such as componentTest, integrationTest, etc. should be able to see the dependencies for the production code under src/main/java, when they are configured to include "implementation project()"
Current Behavior
The dependencies are not visible, and builds fail.
In the simple example attached, the dependency on json is not seen.
The README.md has a command you can run to provoke the compile error.
In our actual service, JvmTestSuites also can't see code in src/main/java, but we were unable to create a simplified example of that.
Context (optional)
We're trying to migrate off the unbroken-dome testSets and onto JvmTestSuites so we can upgrade to Gradle 8.x.
git cloned this repo, search for implementation project(), and found it in a few unit tests, but nowhere did I see a test that verifies that classes in src/main/java are seen by the test suites.
Your test suite with a dependency on project() can see the api transitive dependencies of the main component at compilation time and the implementation transitive dependencies of the main component at runtime.
If your test uses json, explicitly declare the dependency in your test suite while the linked issue is unsolved.
Expected Behavior
According to Gradle's documentation, JvmTestSuites such as componentTest, integrationTest, etc. should be able to see the dependencies for the production code under src/main/java, when they are configured to include "implementation project()"
Current Behavior
The dependencies are not visible, and builds fail.
In the simple example attached, the dependency on json is not seen.
The README.md has a command you can run to provoke the compile error.
In our actual service, JvmTestSuites also can't see code in src/main/java, but we were unable to create a simplified example of that.
Context (optional)
We're trying to migrate off the unbroken-dome testSets and onto JvmTestSuites so we can upgrade to Gradle 8.x.
Steps to Reproduce
gradle-upgrade-poc.zip
See the README.md for how to reproduce the errors.
Gradle version
8.1.1
Build scan URL (optional)
With compileClasspath and runtimeClasspath explicitly set: https://gradle.com/s/loy376waco254
With compileClasspath and runtimeClasspath commented out: https://gradle.com/s/xxg4acb3tixgi
Your Environment (optional)
Mac M1 with all latest patches.
The text was updated successfully, but these errors were encountered: