Skip to content

Commit 03bfeb7

Browse files
Tests: set release to Java 8 for all compile tasks incl. compileTestJava.
1 parent 4b94b54 commit 03bfeb7

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

objectbox-java-api/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'java-library'
22

33
// Note: use release flag instead of sourceCompatibility and targetCompatibility to ensure only JDK 8 API is used.
44
// https://docs.gradle.org/current/userguide/building_java_projects.html#sec:java_cross_compilation
5-
compileJava {
5+
tasks.withType(JavaCompile) {
66
options.release.set(8)
77
}
88

objectbox-java/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apply plugin: "com.github.spotbugs"
33

44
// Note: use release flag instead of sourceCompatibility and targetCompatibility to ensure only JDK 8 API is used.
55
// https://docs.gradle.org/current/userguide/building_java_projects.html#sec:java_cross_compilation
6-
compileJava {
6+
tasks.withType(JavaCompile) {
77
options.release.set(8)
88
}
99

objectbox-kotlin/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ apply plugin: 'org.jetbrains.dokka'
77

88
// Note: use release flag instead of sourceCompatibility and targetCompatibility to ensure only JDK 8 API is used.
99
// https://docs.gradle.org/current/userguide/building_java_projects.html#sec:java_cross_compilation
10-
compileJava {
10+
tasks.withType(JavaCompile) {
1111
options.release.set(8)
1212
}
1313

objectbox-rxjava/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'java-library'
22

33
// Note: use release flag instead of sourceCompatibility and targetCompatibility to ensure only JDK 8 API is used.
44
// https://docs.gradle.org/current/userguide/building_java_projects.html#sec:java_cross_compilation
5-
compileJava {
5+
tasks.withType(JavaCompile) {
66
options.release.set(8)
77
}
88

objectbox-rxjava3/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ apply plugin: 'org.jetbrains.dokka'
88

99
// Note: use release flag instead of sourceCompatibility and targetCompatibility to ensure only JDK 8 API is used.
1010
// https://docs.gradle.org/current/userguide/building_java_projects.html#sec:java_cross_compilation
11-
compileJava {
11+
tasks.withType(JavaCompile) {
1212
options.release.set(8)
1313
}
1414

tests/objectbox-java-test/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ uploadArchives.enabled = false
55

66
// Note: use release flag instead of sourceCompatibility and targetCompatibility to ensure only JDK 8 API is used.
77
// https://docs.gradle.org/current/userguide/building_java_projects.html#sec:java_cross_compilation
8-
compileJava {
8+
tasks.withType(JavaCompile) {
99
options.release.set(8)
1010
}
1111

tests/test-proguard/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ uploadArchives.enabled = false
44

55
// Note: use release flag instead of sourceCompatibility and targetCompatibility to ensure only JDK 8 API is used.
66
// https://docs.gradle.org/current/userguide/building_java_projects.html#sec:java_cross_compilation
7-
compileJava {
7+
tasks.withType(JavaCompile) {
88
options.release.set(8)
99
}
1010

0 commit comments

Comments
 (0)