aboutsummaryrefslogtreecommitdiffstats
path: root/build.gradle
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2019-05-29 08:54:04 -0500
committerSonarTech <sonartech@sonarsource.com>2019-05-29 20:21:13 +0200
commitbce7a89a9dc2001fb20c0bf06a486b9b82101ed5 (patch)
treea9ba4b706ef5a06d75e3fe942130e13cc06b4bab /build.gradle
parent46d075adfb3c4a666010a14d925203690bad0f10 (diff)
downloadsonarqube-bce7a89a9dc2001fb20c0bf06a486b9b82101ed5.tar.gz
sonarqube-bce7a89a9dc2001fb20c0bf06a486b9b82101ed5.zip
Set target and source compatibility for Java 8 for IDEs to load correct language level
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle3
1 files changed, 3 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle
index 941d749e363..080f3785c61 100644
--- a/build.gradle
+++ b/build.gradle
@@ -255,6 +255,9 @@ subprojects {
tasks.withType(JavaCompile) {
options.compilerArgs.addAll(['--release', '8'])
options.encoding = 'UTF-8'
+ // redudant, just for IDEs to set the correct language level
+ sourceCompatibility = 1.8
+ targetCompatibility = 1.8
}
tasks.withType(Javadoc) {