-
Notifications
You must be signed in to change notification settings - Fork 35
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
False claim of syntax error #68
Comments
Features: * Formatting (Borked: sherter/google-java-format-gradle-plugin#68) * PMD * Shadow Jar * Testing * Demo Project * run task * build abstraction
I uploaded the demo I am using. I tried it on another machine and it worked. So something might be going on with caching or so? |
I'm also seeing this after upgrading from 0.8 to 0.9. I've updated Gradle and the JDK at the same time, so there could be other things at play too. |
I had this same error after updating to JDK 17 and Gradle 7.2. I found two errors that may cause this message:
I also opened PR #66 to provide a better error message, but unfortunately, the project seems to be unmaintained currently (#57). |
I have the same problem, with Java 14 source compatibility and Gradle 7.2
@aecio: where do I set this? This is an intellij plugin right? Isn't that different from the gradle plugin we discuss here? |
This Gradle plugin is a wrapper for the original Google's library google-java-formatter. As described in the README of this project, you can change the library version by adding the following configuration in your Gradle build file:
|
One more hint for those who try to fix this issue: Make sure your I fixed it with: mkdir -p $HOME/.gradle
echo "org.gradle.java.home=$HOME/.jdks/temurin-17.xyz/" > $HOME/.gradle/gradle.properties Where |
The plugin claims a syntax error, even though the task
compileJava
runs just fine. There's absolutely no syntax error in any of the files. I've also tried running theclean
task. I really don't know what's going on. It worked and at some point just stopped working.Is there anything else I can give you? I can even send you the project as a zip if you want. It's just a demo anyways.
The text was updated successfully, but these errors were encountered: