-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
1.18.0 doesn't work anymore with Java 8? #1743
Comments
This comment has been minimized.
This comment has been minimized.
@jcayzac Lombok works with Java 8, I'm using
too and have no Java 9. Obviously, No idea what's going on (you wrote nothing about your toolchain!), but the module info should simply be ignored. You may try to remove it manually ( |
Indeed, the problem lies somewhere else (in proguard)…
Closing the issue. Sorry for not having taken the time to confirm it was caused by Lombok before I opened it, it really sucked. And thanks for that great project that makes writing Java less boring 👍 |
@jcayzac Nice! I guess, a solution is to exclude the class file from proguard processing.... but actually, the whole JAR should NOT be processed by proguard as Lombok is compile-time only. |
Yes, I only add it as And the good news is that, as usual, the Android plugin comes with outdated dependencies (proguard 5.3.3). Forcing in proguard 6.0.3 actually fixes everything 🎉 |
Thanks for reporting back in @jcayzac :) Glad to hear it worked out in the end. For what it's worth, yes, lombok definitely is designed (when using it; if you want to compile lombok yourself, that's different) to be compatible with older versions of java, as far as back as 1.6, and definitely whatever android's on. |
@jcayzac How did you force proguard to 6.0.3? I tried some suggestions from SO posts but it didn't work for me. |
buildscript {
…
dependencies {
…
classpath 'net.sf.proguard:proguard-gradle:6.0.3'
}
} |
@jcayzac use 6.0.3 can generate signed packages,but when it no need proguard(eg: run or build a debug package,) ,it dosent work ,and the log:
Did u face the problem ? |
@wxjer sorry, no. For me it just works. |
@wxjer i'm not using Desugar, tho. |
I got the same issue in maven build:
|
No, that sounds like a completely different problem.
Someone - meaning, you, or someone on your team - configured maven to
exclude the version of lombok you are using by configuring this:
https://www.mojohaus.org/extra-enforcer-rules/enforceBytecodeVersion.html
That's hardly lombok's fault, just change your pom.xml to stop banning
lombok ;)
…On Wed, May 13, 2020, 17:54 Nikolas Falco ***@***.***> wrote:
I got the same issue in maven build:
[WARNING] Rule 2: org.apache.maven.plugins.enforcer.EnforceBytecodeVersion
failed with message:
Found Banned Dependency: org.projectlombok:lombok:jar:1.18.4
Use 'mvn dependency:tree' to locate the source of the banned dependencies.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1743 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABIERISBOXOIUEPH5CDNF3RRK7C5ANCNFSM4FG4KOLQ>
.
|
My project uses Java 8. I just updated to 1.18.0 and I'm getting an error saying it requires a Java 9 JVM.
Android projects can't use Java 9 yet. Could we get Java 8 support back please? :'(
The text was updated successfully, but these errors were encountered: