From 12127b2272250bef0d24d5ba22654d829efaced1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yoann=20Rodi=C3=A8re?= Date: Fri, 17 Jul 2020 13:04:56 +0200 Subject: [PATCH] HHH-14111 Ensure Groovy compilation tasks target the same JDK version as the rest of the project --- buildSrc/build.gradle | 6 ++++++ .../hibernate-gradle-plugin/hibernate-gradle-plugin.gradle | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/buildSrc/build.gradle b/buildSrc/build.gradle index b83a5f312c..100ad37742 100644 --- a/buildSrc/build.gradle +++ b/buildSrc/build.gradle @@ -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 +} diff --git a/tooling/hibernate-gradle-plugin/hibernate-gradle-plugin.gradle b/tooling/hibernate-gradle-plugin/hibernate-gradle-plugin.gradle index 20e82c3c1e..f7f018bcd8 100644 --- a/tooling/hibernate-gradle-plugin/hibernate-gradle-plugin.gradle +++ b/tooling/hibernate-gradle-plugin/hibernate-gradle-plugin.gradle @@ -21,3 +21,9 @@ dependencies { compile gradleApi() compile localGroovy() } + +tasks.withType( GroovyCompile ) { + options.encoding = 'UTF-8' + sourceCompatibility = project.baselineJavaVersion + targetCompatibility = project.baselineJavaVersion +}