Skip to content

Commit de89d88

Browse files
committed
added java cross-compilation option to build file
1 parent bfe4ec7 commit de89d88

File tree

4 files changed

+12
-16
lines changed

4 files changed

+12
-16
lines changed

build.gradle

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,14 @@ allprojects {
8585
flatDir dirs: "${rootDir}/core/dist"
8686
}
8787

88-
sourceCompatibility = 1.8
89-
targetCompatibility = 1.8
88+
compileJava {
89+
sourceCompatibility = JavaVersion.VERSION_1_8
90+
targetCompatibility = JavaVersion.VERSION_1_8
91+
92+
// Uncomment this option when building with Java 11+
93+
// https://github.com/processing/processing-android/issues/625
94+
// options.release = 8
95+
}
9096
}
9197

9298
clean.doFirst {

core/build.gradle

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import java.nio.file.Files
22
import static java.nio.file.StandardCopyOption.REPLACE_EXISTING
33

4-
apply plugin: 'maven'
54
apply plugin: 'aar'
5+
apply plugin: 'maven'
66

77
dependencies {
88
implementation name: "android"
@@ -80,16 +80,7 @@ clean.doFirst {
8080
}
8181

8282
compileJava.doFirst {
83-
String[] deps = [
84-
// "percent.jar",
85-
// "recyclerview-v7.jar",
86-
// "support-compat.jar",
87-
// "support-core-ui.jar",
88-
// "support-core-utils.jar",
89-
// "support-fragment.jar",
90-
// "support-media-compat.jar",
91-
// "support-v4.jar",
92-
"wearable.jar"]
83+
String[] deps = ["wearable.jar"]
9384
for (String fn : deps) {
9485
Files.copy(file("${rootDir}/build/libs/" + fn).toPath(),
9586
file("${rootDir}/mode/mode/" + fn).toPath(), REPLACE_EXISTING)

mode/libraries/ar/build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import java.nio.file.Files
22
import static java.nio.file.StandardCopyOption.REPLACE_EXISTING;
33

4-
apply plugin: 'maven'
54
apply plugin: 'aar'
6-
5+
apply plugin: 'maven'
76

87
dependencies {
98
compileOnly name: "android"

mode/libraries/vr/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import java.nio.file.Files
22
import static java.nio.file.StandardCopyOption.REPLACE_EXISTING;
33

4-
apply plugin: 'maven'
54
apply plugin: 'aar'
5+
apply plugin: 'maven'
66

77
dependencies {
88
compileOnly name: "android"

0 commit comments

Comments
 (0)