Skip to content

Instantly share code, notes, and snippets.

@nik9000
Created June 5, 2016 21:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nik9000/0b150b8a186db8216d52aeb7a9e09fa7 to your computer and use it in GitHub Desktop.
Save nik9000/0b150b8a186db8216d52aeb7a9e09fa7 to your computer and use it in GitHub Desktop.
diff --git a/buildSrc/build.gradle b/buildSrc/build.gradle
index 623fdab..ce29769 100644
--- a/buildSrc/build.gradle
+++ b/buildSrc/build.gradle
@@ -87,6 +87,7 @@ dependencies {
compile 'de.thetaphi:forbiddenapis:2.1'
compile 'com.bmuschko:gradle-nexus-plugin:2.3.1'
compile 'org.apache.rat:apache-rat:0.11'
+ compile 'ru.vyarus:gradle-animalsniffer-plugin:1.0.1'
}
diff --git a/client/build.gradle b/client/build.gradle
index 4c4a56d..8343e30 100644
--- a/client/build.gradle
+++ b/client/build.gradle
@@ -21,6 +21,7 @@ import org.elasticsearch.gradle.precommit.PrecommitTasks
import org.gradle.api.JavaVersion
apply plugin: 'elasticsearch.build'
+apply plugin: 'ru.vyarus.animalsniffer'
targetCompatibility = JavaVersion.VERSION_1_7
sourceCompatibility = JavaVersion.VERSION_1_7
@@ -38,6 +39,8 @@ dependencies {
testCompile "org.apache.lucene:lucene-core:${versions.lucene}"
testCompile "org.apache.lucene:lucene-codecs:${versions.lucene}"
testCompile "org.elasticsearch:securemock:1.2"
+
+ signature 'org.codehaus.mojo.signature:java16:1.1@signature'
}
//TODO compiling from 1.8 with target 1.7 and source 1.7 is best effort, not enough to ensure we are java 7 compatible
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment