JavaExec internal API spec seems to have changed in Gradle 6.6, making v1.7.0 fail
See original GitHub issueTrying to use application plugin with gradle-modules-plugin 1.7.0 and Gradle 6.6 causes a ReflectionException
to be raised at ModularJavaExec
(line 97). The Gradle internal API appears to have changed so that the line:
var hb = on(this).field("javaExecHandleBuilder").get();
fails to find the specified field (JavaExecAction javaExecHandleBuilder
) as it no longer exists in the JavaExec
class. It has been replaced by: DefaultJavaExecSpec javaExecSpec
(which should, at first look, provide the same support for getExecutable()
required by ModularJavaExec
).
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (1 by maintainers)
Top Results From Across the Web
JavaExec - Gradle DSL Version 7.6
Executes a Java application in a child process. Similar to Exec , but starts a JVM with the given classpath and application class....
Read more >userguide.pdf - Gradle User Manual
Update your plugins. Some plugins will break with this new version of Gradle, for example because they use internal. APIs that have been...
Read more >How to debug "One or more additional actions for task
Hi, I'm converting a large project (100+ sub projects) from ant to gradle. In that process I'm running into the following issue when ......
Read more >Intermittent exceptions when using a subclass of JavaExec to ...
My builds succeed and fail sporadically, often without me making any changes to the code or build environment. I'm new to Gradle and...
Read more >Spring Boot Gradle Plugin Reference Guide
Spring Boot's Gradle plugin requires Gradle 7.x (7.5 or later) and can be used with Gradle's configuration cache.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@msgilligan @gwinstanley Thanks for the feedback! So it makes sense to further maintain this plugin. I will wait for a couple of weeks, in the hope that someone sends a pull request that is less hacky than mine. After that, I will make a patch release.
The workaround
modularity.disableEffectiveArgumentsAdjustment()
worked with gradle 6.7 and also the openjfx plugin