Closed wwarlock closed 9 years ago
Hi,
The plugin was built with Java 8 and you’re using Java 7. That is what the error means.
Actually the plugin does not require Java 8, so maybe it should be built using Java 7. Create an issue on github if you need it to work with Java 7. Otherwise just upgrade your jdk, now that Java 7 has been EOL since April 2015.
Regards, Mikael Brännström
29 okt. 2015 kl. 17:38 skrev wwarlock notifications@github.com:
Hello, tried to use your plugin and got the next error
19:27:53 wwarlock@wwarlock gradle-versioning git:(master)$ gradle tasks
FAILURE: Build failed with an exception.
- Where: Build file '~/workspace/experimental/gradle-versioning/build.gradle' line: 11
What went wrong: A problem occurred evaluating root project 'gradle-versioning'.
java.lang.UnsupportedClassVersionError: com/cinnober/gradle/semver_git/SemverGitPlugin : Unsupported major.minor version 52.0
- Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 8.728 secs Here is my sample of code (just a fixed yours) and tools version
19:28:20 wwarlock@wwarlock gradle-versioning git:(master)$ cat build.gradle buildscript { repositories { jcenter() } dependencies { classpath group: 'com.cinnober.gradle', name: 'semver-git', version: '2.2.0' } } // optionally: ext.nextVersion = "major", "minor" (default), "patch" or e.g. "3.0.0-rc2" // optionally: ext.snapshotSuffix = "SNAPSHOT" (default) or a pattern, e.g. "
.g -SNAPSHOT" apply plugin: 'com.cinnober.gradle.semver-git' 19:28:03 wwarlock@wwarlock gradle-versioning git:(master)$ java -version java version "1.7.0_80" Java(TM) SE Runtime Environment (build 1.7.0_80-b15) Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode) 19:30:50 wwarlock@wwarlock gradle-versioning git:(master)$ gradle --version
Gradle 2.8
Build time: 2015-10-20 03:46:36 UTC Build number: none Revision: b463d7980c40d44c4657dc80025275b84a29e31f
Groovy: 2.4.4 Ant: Apache Ant(TM) version 1.9.3 compiled on December 23 2013 JVM: 1.7.0_80 (Oracle Corporation 24.80-b11) OS: Linux 4.2.0-17-generic amd64 — Reply to this email directly or view it on GitHub https://github.com/cinnober/semver-git/issues/1.
Yes, I understood why that problem, but I don't understand why you're do not support the older JVM's. Is that difficult to fix? As myself, I have already a set of JVM's beginning from the 1.5 and to the 9-preview.
Sorry, I got confused about the github e-mail I got. I wasn't aware of the issue created.
Please use the version 2.2.1 released in April 13, which was actually rebuilt with Java 7.
Hello, tried to use your plugin and got the next error
Here is my sample of code (just a fixed yours) and tools version