any version for java 8?
fadhlimaulidri opened this issue · 4 comments
i have framework which its big enough, and java version is java 8. any version this porject for java 8?
It should work as java8. We set compatibility to JDK8 in the build.
We get this error with JDK 8:
java.lang.UnsupportedClassVersionError: com/github/jrubygradle/JRubyPlugin has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
I also ran into this issue with openjdk 1.8.0_352 & gradle 7.6. It seems 2.1.0-alpha was compiled with Java 11 and using v2.0.2 in my project works great with JDK 8.
I verified this by downloading the jruby-gradle jars from plugins.gradle.org, unzipping the jars with the "jar" command, and using the "javap" command to verify the 'major version' used in the compiled artifacts. v2.0.2 reports major version 52 (java 1.8) and v2.1.0-alpha.2 reports major version 55 (java 1.11).
As a followup, it might be worth while on making a new v2.1.0-alpha3 artifact that's been compiled with JDK8.
You are free to fork this and release your won version. I do not have time to maintain this suite of plugins anymore and I don't think any of the other originals founders do either.