@@ -9,12 +9,12 @@ apply plugin: 'java'
99buildscript {
1010 repositories {
1111 google()
12- jcenter()
12+ jcenter()
1313 }
1414 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 '
1818 }
1919}
2020
@@ -25,7 +25,8 @@ allprojects {
2525 Properties versions = new Properties ()
2626 versions. load(project. rootProject. file(" mode/version.properties" ). newDataInputStream())
2727 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" )
2930 ext. wearVersion = versions. getProperty(" com.google.android.support%wearable" )
3031 ext. gvrVersion = versions. getProperty(" com.google.vr" )
3132 ext. garVersion = versions. getProperty(" com.google.ar" )
@@ -72,27 +73,26 @@ allprojects {
7273 localProperties. load(project. rootProject. file(" local.properties" ). newDataInputStream())
7374 def sdkDir = localProperties. getProperty(" sdk.dir" )
7475 ext. androidPlatformPath = " ${ sdkDir} /platforms/android-${ targetSdkVersion} "
75- ext. androidToolsLibPath = " ${ sdkDir} /tools/lib"
76-
7776 ext. coreZipPath = " ${ rootDir} /mode/processing-core.zip"
7877
7978 repositories {
8079 google()
8180 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' }
8984 flatDir dirs : androidPlatformPath
90- flatDir dirs : androidToolsLibPath
9185 flatDir dirs : " ${ rootDir} /core/dist"
9286 }
9387
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+ }
9696}
9797
9898clean. doFirst {
@@ -128,9 +128,11 @@ task dist {
128128 FileUtils . copyDirectory(file(" mode/languages" ),
129129 file(" ${ root} /languages" ))
130130
131- FileUtils . copyDirectory(file(" mode/tools/SDKUpdater/tool" ),
131+ FileUtils . copyDirectory(file(" mode/tools/SDKUpdater/tool" ),
132132 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" ),
134136 file(" ${ root} /tools/SDKUpdater/src" ))
135137
136138 FileUtils . copyDirectory(file(" mode/libraries/vr/examples" ),
0 commit comments