From 6e15a7162570b9f64d208b9e3eede75b7095fe6a Mon Sep 17 00:00:00 2001 From: "Christopher J. Stehno" Date: Mon, 27 Oct 2014 18:46:52 -0500 Subject: [PATCH] Changed the build to explicitly compile under Java 7 instead of 8 and updated the readme - using a minor version change here since it's changing the compiler used. Resolves #8 --- README.md | 6 ++++-- build.gradle | 7 ++++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e1c9887..a433f42 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ buildscript { } dependencies { - classpath 'com.stehno:gradle-natives:0.2' + classpath 'com.stehno:gradle-natives:0.2.1' } } @@ -28,10 +28,12 @@ Alternately, you can use the new plug definition block in Gradle 2.1 and beyond. ```groovy plugins { - id 'com.stehno.natives' version '0.2' + id 'com.stehno.natives' version '0.2.1' } ``` +The plugin is compiled on Java 7. + ## Usage To do anything useful with it, you need to configure it using the `natives` extension configuration, for example: diff --git a/build.gradle b/build.gradle index 408cd48..2e45d52 100644 --- a/build.gradle +++ b/build.gradle @@ -23,7 +23,12 @@ apply plugin:'maven' apply plugin:'maven-publish' group='com.stehno' -version=0.2 +version='0.2.1' + +compileJava { + sourceCompatibility = 7 + targetCompatibility = 7 +} repositories { jcenter()