question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

JavaExec internal API spec seems to have changed in Gradle 6.6, making v1.7.0 fail

See original GitHub issue

Trying 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:open
  • Created 3 years ago
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
siordachecommented, Sep 15, 2020

@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.

0reactions
Siedlerchrcommented, Jan 3, 2021

The workaround modularity.disableEffectiveArgumentsAdjustment() worked with gradle 6.7 and also the openjfx plugin

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found