Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

compileJava tasks fails in gradle 6.1 #132

Closed
mpe85 opened this issue Jan 16, 2020 · 3 comments
Closed

compileJava tasks fails in gradle 6.1 #132

mpe85 opened this issue Jan 16, 2020 · 3 comments
Labels
bug Something isn't working

Comments

@mpe85
Copy link

mpe85 commented Jan 16, 2020

After upgrade from gradle 6.0 to 6.1 the compileJava task fails:

java.lang.IllegalStateException: The value for task ':soft-torque-common:compileJava' property 'destinationDirectory' is final and cannot be changed any further.
        at org.gradle.api.internal.provider.AbstractProperty.canMutate(AbstractProperty.java:185)
        at org.gradle.api.internal.provider.AbstractProperty.beforeMutate(AbstractProperty.java:152)
        at org.gradle.api.internal.provider.DefaultProperty.set(DefaultProperty.java:79)
        at org.gradle.api.internal.file.DefaultFilePropertyFactory$AbstractFileVar.set(DefaultFilePropertyFactory.java:203)
        at org.gradle.api.internal.file.DefaultFilePropertyFactory$DefaultDirectoryVar.set(DefaultFilePropertyFactory.java:290)
        at org.gradle.api.tasks.compile.AbstractCompile.setDestinationDir(AbstractCompile.java:94)
        at org.gradle.api.tasks.compile.JavaCompile_Decorated.setDestinationDir(Unknown Source)
        at org.javamodularity.moduleplugin.tasks.CompileJavaTaskMutator.modularizeJavaCompileTask(CompileJavaTaskMutator.java:57)
        at org.javamodularity.moduleplugin.tasks.CompileTask$1.execute(CompileTask.java:44)
        at org.javamodularity.moduleplugin.tasks.CompileTask$1.execute(CompileTask.java:41)
...

This makes the plugin unusable in gradle 6.1

@tlinkowski tlinkowski added the bug Something isn't working label Jan 16, 2020
@tlinkowski
Copy link
Collaborator

Thanks for reporting!

I won't be able to see into this anytime soon, but once I finally find the time, I intend to address many of the bugs reported so far.

@iherasymenko
Copy link
Contributor

I believe this should fix the issue.

#136

@siordache
Copy link
Collaborator

Fixed in 1.7.0

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants