hierynomus/license-gradle-plugin

Latest release incompatible with JDK6

aalmiray opened this issue · 8 comments

Got the following error when running a build on Travis using jdk6

Execution failed for task ':licenseMain'.
> nl/javadude/gradle/plugins/license/maven/LicenseCheckMojo : Unsupported major.minor version 51.0

Oops, built with Java 7 by accident... My bad.

is there a solution for this?

Yes, v0.9.0 will be built with Java6, sorry for taking so long.

Fixed with aecba38

using 0.13.1 still got this:

FAILURE: Build failed with an exception.

* What went wrong:
java.lang.UnsupportedClassVersionError: nl/javadude/gradle/plugins/license/LicensePlugin : Unsupported major.minor version 51.0
> nl/javadude/gradle/plugins/license/LicensePlugin : Unsupported major.minor version 51.0

Correct, 0.12.0 is the last one that works with JDK6. As JDK6 has been EOL'ed for a long time, we decided to drop support for it. Even JDK7 is deprecated and will be EOL'ed in the near future.

If you're bound to JDK6, you can still use 0.12.0

If you're bound to JDK6, you can still use 0.12.0

It looks like 0.11.0 is the last that works with JDK6, but that works great for me 👍

bric3 commented

@hierynomus that's a breaking change that is not even documented in the release notes. The very least would be do increase the major number And to describe the incompatibility.