HHH-14111 Ensure Groovy compilation tasks target the same JDK version as the rest of the project

This commit is contained in:
Yoann Rodière 2020-07-17 13:04:56 +02:00 committed by gbadner
parent 1a5579287d
commit 57077b52e3
2 changed files with 12 additions and 0 deletions

View File

@ -20,3 +20,9 @@ dependencies {
compile 'org.hibernate.build.gradle:gradle-animalSniffer-plugin:1.0.1.Final'
compile 'org.hibernate.build.gradle:hibernate-matrix-testing:3.0.0.Final'
}
tasks.withType( GroovyCompile ) {
options.encoding = 'UTF-8'
sourceCompatibility = 8
targetCompatibility = 8
}

View File

@ -21,3 +21,9 @@ dependencies {
compile gradleApi()
compile localGroovy()
}
tasks.withType( GroovyCompile ) {
options.encoding = 'UTF-8'
sourceCompatibility = project.baselineJavaVersion
targetCompatibility = project.baselineJavaVersion
}