Skip to content

Commit

Permalink
Move source and target compatibility to root buildscript
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-archano committed Apr 14, 2017
1 parent 83f645e commit fb5788a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 7 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,11 @@ subprojects {
repositories {
jcenter()
}

project.plugins.withType(JavaBasePlugin) {
project.with {
sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_7
}
}
}
3 changes: 0 additions & 3 deletions plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ apply plugin: 'groovy'
apply plugin: 'java-gradle-plugin'
apply from: rootProject.file('gradle/publish.gradle')

sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_7

sourceSets {
test {
java {
Expand Down

0 comments on commit fb5788a

Please sign in to comment.