Skip to content
This repository was archived by the owner on May 10, 2022. It is now read-only.

Gradle 6 sets "-h" compiler-arg that is not supported by eclipse jdt compiler #11

Open
38leinaD opened this issue Jun 29, 2020 · 1 comment · May be fixed by #12
Open

Gradle 6 sets "-h" compiler-arg that is not supported by eclipse jdt compiler #11

38leinaD opened this issue Jun 29, 2020 · 1 comment · May be fixed by #12

Comments

@38leinaD
Copy link

This plugin is no longer working with Gradle 6; gives "Unrecognized option : -h"

Steps to reproduce:

  • Set up a gradle project using Gradle 6.5 & use this plugin

Error:

    > Task :compileJava FAILED
    Caching disabled for task ':compileJava' because:
      Build cache is disabled
    Task ':compileJava' is not up-to-date because:
      Task has failed previously.
    The input changes require a full rebuild for incremental task ':compileJava'.
    Full recompilation is required because no incremental change information is available. This is usually caused by clean builds or changing compiler arguments.
    Compiling sources using eclipse compiler for java [org.eclipse.jdt:ecj:3.15.1]
    Starting process 'command '/home/daniel/.sdkman/candidates/java/8.0.202-amzn/bin/java''. Working directory: /home/daniel/junk/testproj Command: /home/daniel/.sdkman/candidates/java/8.0.202-amzn/bin/java -Dfile.encoding=UTF-8 -Duser.country=US -Duser.language=en -Duser.variant -cp /home/daniel/.gradle/caches/modules-2/files-2.1/org.eclipse.jdt/ecj/3.15.1/c7157b8cfed49d457fb65976e3646f011c88a962/ecj-3.15.1.jar org.eclipse.jdt.internal.compiler.batch.Main @/home/daniel/junk/testproj/build/tmp/compileJava/java-compiler-args.txt
    Successfully started process 'command '/home/daniel/.sdkman/candidates/java/8.0.202-amzn/bin/java''
    Unrecognized option : -h
    :compileJava (Thread[Execution worker for ':' Thread 4,5,main]) completed. Took 0.252 secs.

    FAILURE: Build failed with an exception.

    * What went wrong:
    Execution failed for task ':compileJava'.
    > Process 'command '/home/daniel/.sdkman/candidates/java/8.0.202-amzn/bin/java'' finished with non-zero exit value 255

eclipse jdt compiler gives: "Unrecognized option : -h"

@re-thc
Copy link

re-thc commented Jan 30, 2021

gradle/gradle#12904 (comment) has a fix from Gradle

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants