Skip to content

Commit

Permalink
Enforces source compatibility with animal-sniffer
Browse files Browse the repository at this point in the history
Before, finding source compatibility issues relied on building with an
old JDK. This uses animal-sniffer to enforce java language level 6 for
libraries and 7 for executables.

closes #344
  • Loading branch information
Adrian Cole authored and Adrian Cole committed Mar 18, 2015
1 parent 933265d commit d2e04ca
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
* Documents third-party provider process
* Publishes model and core test jars
* Adds example server
* Enforces source compatibility with animal-sniffer

### Version 4.4.2
* Updates to feign 8.1
Expand Down
12 changes: 12 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
buildscript {
repositories { jcenter() }
dependencies {
classpath 'be.insaneprogramming.gradle:animalsniffer-gradle-plugin:1.4.0'
}
}

plugins {
id 'nebula.netflixoss' version '2.2.9'
}
Expand All @@ -14,4 +21,9 @@ subprojects {
}
apply from: rootProject.file('dagger.gradle')
group = "com.netflix.${githubProjectName}" // TEMPLATE: Set to organization of project
apply plugin: 'be.insaneprogramming.gradle.animalsniffer'

animalsniffer { // Don't use apis that may not be available on Android
signature = "org.codehaus.mojo.signature:java16:+@signature"
}
}
4 changes: 4 additions & 0 deletions cli/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
apply plugin: 'java'

animalsniffer { // Don't use apis that require JRE 8
signature = "org.codehaus.mojo.signature:java17:+@signature"
}

sourceCompatibility = 1.6

dependencies {
Expand Down

0 comments on commit d2e04ca

Please sign in to comment.