@@ -9,12 +9,12 @@ apply plugin: 'java'
9
9
buildscript {
10
10
repositories {
11
11
google()
12
- jcenter()
12
+ jcenter()
13
13
}
14
14
dependencies {
15
- classpath ' com.android.tools.build:gradle:3.5 .1'
16
- classpath group : ' commons-io' , name : ' commons-io' , version : ' 2.6 '
17
- classpath group : ' org.zeroturnaround' , name : ' zt-zip' , version : ' 1.13 '
15
+ classpath ' com.android.tools.build:gradle:4.1 .1'
16
+ classpath group : ' commons-io' , name : ' commons-io' , version : ' 2.8.0 '
17
+ classpath group : ' org.zeroturnaround' , name : ' zt-zip' , version : ' 1.14 '
18
18
}
19
19
}
20
20
@@ -25,7 +25,8 @@ allprojects {
25
25
Properties versions = new Properties ()
26
26
versions. load(project. rootProject. file(" mode/version.properties" ). newDataInputStream())
27
27
ext. targetSdkVersion = versions. getProperty(" android-platform" )
28
- ext. supportLibsVersion = versions. getProperty(" com.android.support%support-v4" )
28
+ ext. appcompatVersion = versions. getProperty(" androidx.appcompat%appcompat" )
29
+ ext. v4legacyVersion = versions. getProperty(" androidx.legacy%legacy-support-v4" )
29
30
ext. wearVersion = versions. getProperty(" com.google.android.support%wearable" )
30
31
ext. gvrVersion = versions. getProperty(" com.google.vr" )
31
32
ext. garVersion = versions. getProperty(" com.google.ar" )
@@ -72,27 +73,26 @@ allprojects {
72
73
localProperties. load(project. rootProject. file(" local.properties" ). newDataInputStream())
73
74
def sdkDir = localProperties. getProperty(" sdk.dir" )
74
75
ext. androidPlatformPath = " ${ sdkDir} /platforms/android-${ targetSdkVersion} "
75
- ext. androidToolsLibPath = " ${ sdkDir} /tools/lib"
76
-
77
76
ext. coreZipPath = " ${ rootDir} /mode/processing-core.zip"
78
77
79
78
repositories {
80
79
google()
81
80
jcenter()
82
- maven {
83
- // mavenCentral() does not work to download the Gradle releases of gradle-tooling-api, one needs
84
- // to set the artifact url as below to get the latest packages.
85
- // https://mvnrepository.com/artifact/org.gradle/gradle-tooling-api?repo=gradle-libs-releases-local
86
- url " https://repo1.maven.org/maven2"
87
- artifactUrls " https://repo.gradle.org/gradle/libs-releases-local"
88
- }
81
+ maven { url " https://maven.google.com" }
82
+ maven { url " https://jitpack.io" }
83
+ maven { url ' https://repo.gradle.org/gradle/libs-releases' }
89
84
flatDir dirs : androidPlatformPath
90
- flatDir dirs : androidToolsLibPath
91
85
flatDir dirs : " ${ rootDir} /core/dist"
92
86
}
93
87
94
- sourceCompatibility = 1.8
95
- 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
+ }
96
96
}
97
97
98
98
clean. doFirst {
@@ -128,9 +128,11 @@ task dist {
128
128
FileUtils . copyDirectory(file(" mode/languages" ),
129
129
file(" ${ root} /languages" ))
130
130
131
- FileUtils . copyDirectory(file(" mode/tools/SDKUpdater/tool" ),
131
+ FileUtils . copyDirectory(file(" mode/tools/SDKUpdater/tool" ),
132
132
file(" ${ root} /tools/SDKUpdater/tool" ))
133
- FileUtils . copyDirectory(file(" mode/tools/SDKUpdater/src" ),
133
+ FileUtils . copyDirectory(file(" mode/tools/SDKUpdater/lib" ),
134
+ file(" ${ root} /tools/SDKUpdater/lib" ))
135
+ FileUtils . copyDirectory(file(" mode/tools/SDKUpdater/src" ),
134
136
file(" ${ root} /tools/SDKUpdater/src" ))
135
137
136
138
FileUtils . copyDirectory(file(" mode/libraries/vr/examples" ),
0 commit comments