kordamp / kordamp-gradle-plugins

A collection of Gradle plugins
https://kordamp.org/kordamp-gradle-plugins/
Apache License 2.0
138 stars 25 forks source link

Class file compatibility issue , cannot use in jdk8 #528

Closed neil4dong closed 1 year ago

neil4dong commented 1 year ago

As the document requirement says:

Java 8 and Gradle 5 are the minimum requirements to use any of these plugins.

But I tested with 0.49.0 and 0.50.0. these two verions are compiled by JDK 11

FAILURE: Build failed with an exception.

* What went wrong:
java.lang.UnsupportedClassVersionError: org/kordamp/gradle/plugin/minpom/MinPomPlugin 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
> org/kordamp/gradle/plugin/minpom/MinPomPlugin 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
aalmiray commented 1 year ago

Indeed. The docs need some updates. v.46.10 is compatible with Java 8 and Gradle 6. v0.47.0 and upwards require Java 11.

aalmiray commented 1 year ago

Fixed with https://github.com/kordamp/kordamp-gradle-plugins/commit/1a378271bb086b1d48389b3d6469c843f6e32acb