Skip to content
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

Not compatible with gradle 4.8.1 due to changes in gradles internal api #12

Closed
Argelbargel opened this issue Jul 10, 2018 · 0 comments
Closed

Comments

@Argelbargel
Copy link

Argelbargel commented Jul 10, 2018

Trying to use javafork causes this exception

Caused by: java.lang.NoSuchMethodError: org.gradle.process.internal.JavaExecHandleBuilder.<init>(Lorg/gradle/api/internal/file/FileResolver;Ljava/util/concurrent/Executor;)V
14:59:48 	at com.github.jengelman.gradle.plugins.processes.internal.DefaultJavaForkAction.<init>(DefaultJavaForkAction.java:16)
14:59:48 	at com.github.jengelman.gradle.plugins.processes.internal.DefaultJavaForkAction_Decorated.<init>(Unknown Source)
14:59:48 	at org.gradle.internal.reflect.DirectInstantiator.newInstance(DirectInstantiator.java:51)

Signature of JavaExecHandleBuilders constructor was changed to:

public JavaExecHandleBuilder(FileResolver fileResolver, Executor executor, BuildCancellationToken buildCancellationToken)

Either add new DefaultBuildCancellationToken() when calling the super-constructor in DefaultJavaForkAction (but it seems to be better to use new DefaultExecActionFactory(FileResolver).newJavaExec() instead)

rhart added a commit to rhart/gradle-processes that referenced this issue Jul 16, 2018
johnrengelman pushed a commit that referenced this issue Jul 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant