Repeated on Windows and Linux
plugins {
id 'com.stehno.natives' version '0.2.1'
}
apply plugin: 'java'
apply plugin: 'application'
mainClassName = "OpenGLTest"
sourceCompatibility = 1.7
version = '1.0.0'
repositories {
mavenCentral()
}
dependencies {
compile group: 'org.codehaus.jackson', name: 'jackson-core-asl', version: '1.9.13'
compile group: 'org.codehaus.jackson', name: 'jackson-mapper-asl', version: '1.9.13'
compile group: 'org.lwjgl.lwjgl', name: 'lwjgl', version: '2.+'
//testCompile group: 'junit', name: 'junit', version: '4.11'
}
task wrapper(type: Wrapper) {
gradleVersion = '2.3'
}
When using Java 7, any attempt at parsing the build.gradle would throw an Unsupported major.minor version 52.0
toaster@toaster ~/Github/Lightscreen (master *)$ gradle --refresh-dependencies
FAILURE: Build failed with an exception.
* What went wrong:
java.lang.UnsupportedClassVersionError: com/stehno/gradle/natives/NativesPlugin : Unsupported major.minor version 52.0
> com/stehno/gradle/natives/NativesPlugin : 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: 5.661 secs
Full stacktrace: https://gist.github.com/CptSpaceToaster/003d66f6f2cc807eb2f2
Forcing my dev environment to J8 permits parsing, and expected functionality:
toaster@toaster ~/Github/Lightscreen (master *)$ gradle --refresh-dependencies
com.stehno.gradle.natives.NativesPluginExtension_Decorated@c386958
:help
Welcome to Gradle 2.3.
To run a build, run gradlew <task> ...
To see a list of available tasks, run gradlew tasks
To see a list of command-line options, run gradlew --help
To see more detail about a task, run gradlew help --task <task>
BUILD SUCCESSFUL
Total time: 6.996 secs
Is this expected? I would love to be able to keep J7, but still make use of the plugins block if at all possible. I’m not able to bump up my JDK on all development machines.