diff --git a/build.gradle b/build.gradle
index bbefbb2490539aaa6799153446a482e5dc028340..1876e724a72c39f630a48c54e365335f2b4de5bd 100644
--- a/build.gradle
+++ b/build.gradle
@@ -8,9 +8,6 @@ project.version = '1.1.5-SNAPSHOT'
 project.group = 'de.hhu.stups'
 final isSnapshot = project.version.endsWith("-SNAPSHOT")
 
-project.sourceCompatibility = '1.8'
-project.targetCompatibility = '1.8'
-
 repositories {
 	mavenCentral()
 	if (isSnapshot) {
@@ -43,6 +40,9 @@ dependencies {
 }
 
 java {
+	sourceCompatibility = JavaVersion.VERSION_1_8
+	targetCompatibility = JavaVersion.VERSION_1_8
+	
 	withSourcesJar()
 	withJavadocJar()
 }