New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dependent module Scala compilation in test context fails for 4.10.1 #6735
Comments
Please provide the full stacktrace. |
@oehme here's the stacktrace:
|
@big-guy the workaround works. Can you tell me what exactly it does? Just wanting to know whether I should keep or remove it once a fix is available. |
@hhandoko It prevents Zinc from doing incremental compilation when upstream changes occur in other projects. In your case, this never worked for dependencies like You would remove this once we had a full fix. |
@hhandoko Could you give You can upgrade with |
Hey @hhandoko, have you had a chance to try the nightly out? If it looks good to you, this will become 4.10.2 |
Not yet @big-guy , I'll get back to you by Monday the latest. I'll need some time to setup a new project to validate the fix, as I can only retrieve released and snapshot binaries (proxied via Artifactory) where I work. |
@big-guy I couldn't download the nightly version, but can confirm the 4.10.2 release version works. Thanks! |
Expected Behavior
Compiling Scala in multi-module project which share some test classes should work, e.g.
./gradlew clean testClasses
Current Behavior
Gradle 4.10.1 fails to compile Scala test classes for a dependent module which share some test classes, the same project compiles fine in Gradle 4.10.
Context
The multi-module project is sharing some classes in the test context.
As an example, there are two modules:
core
andcalculation
(wherecalculation
depends oncore
), the Gradle config in the dependent module as defined follows:Trying to run
testClasses
for the dependent module resulted in the following error:Without a fix, test Scala classes cannot be compiled and tests cannot run.
Steps to Reproduce (for bugs)
./gradlew testClasses
and observe failureYour Environment
The text was updated successfully, but these errors were encountered: