Skip to content

Commit

Permalink
Merge pull request #399 from ysb33r/master
Browse files Browse the repository at this point in the history
FIXED #398 - Compile for JDK 1.6
  • Loading branch information
robertpanzer committed Nov 3, 2015
2 parents 0c7c7a5 + 9eb116d commit bef8ab8
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,20 @@ subprojects {

// apply Java and JRuby stuff for all subprojects except the distribution
configure(subprojects.findAll { !it.name.endsWith('-distribution') }) {

plugins.withType(JavaPlugin) {

project.tasks.withType(JavaCompile) { task ->
task.sourceCompatibility = project.sourceCompatibility
task.targetCompatibility = project.targetCompatibility
}

project.tasks.withType(GroovyCompile) { task ->
task.sourceCompatibility = project.sourceCompatibility
task.targetCompatibility = project.targetCompatibility
}
}

dependencies {
testCompile "junit:junit:$junitVersion"
testCompile "org.hamcrest:hamcrest-library:$hamcrestVersion"
Expand Down

0 comments on commit bef8ab8

Please sign in to comment.