@@ -10,7 +10,7 @@ buildscript {
1010 }
1111 }
1212 dependencies {
13- classpath ' com.android.tools.build:gradle:3.5.3 '
13+ classpath ' com.android.tools.build:gradle:4.2.0 '
1414 classpath ' me.tatarka:gradle-retrolambda:3.7.1'
1515 classpath " gradle.plugin.com.github.spotbugs.snom:spotbugs-gradle-plugin:4.5.1"
1616 }
@@ -21,6 +21,9 @@ allprojects {
2121 mavenCentral()
2222 google()
2323 }
24+ tasks. withType(Jar ) {
25+ duplicatesStrategy = ' include'
26+ }
2427}
2528
2629// Set the license for IDEs that understand this
@@ -69,7 +72,7 @@ task libDist(dependsOn: subprojects.build, description: 'Builds and copies the e
6972 File sourceFolder = mkdir(" $buildDir /libDist/sources" )
7073 File javadocFolder = mkdir(" $buildDir /libDist/javadoc" )
7174 subprojects. each {project ->
72- if (project. ext . mainClass == ' ' ){
75+ if (! project. hasProperty( ' mainClassName ' ) ){
7376 project. tasks. withType(Jar ). each {archiveTask ->
7477 if (archiveTask. classifier == " sources" ){
7578 copy {
@@ -97,7 +100,9 @@ task libDist(dependsOn: subprojects.build, description: 'Builds and copies the e
97100}
98101
99102task createZipDistribution (type :Zip ,dependsOn :[" dist" ," libDist" ], description :" Package the nightly zip distribution" ){
100- archiveName " jME" + jmeFullVersion + " .zip"
103+ archiveFileName = provider {
104+ " jME" + jmeFullVersion + " .zip"
105+ }
101106 into(" /" ) {
102107 from {" ./dist" }
103108 }
@@ -181,18 +186,18 @@ gradle.rootProject.ext.set("usePrebuildNatives", buildNativeProjects!="true");
181186if (skipPrebuildLibraries != " true" && buildNativeProjects != " true" ) {
182187 String rootPath = rootProject. projectDir. absolutePath
183188
184- Properties nativesSnasphotProp = new Properties ()
185- File nativesSnasphotPropF = new File (" ${ rootPath} /natives-snapshot.properties" );
189+ Properties nativesSnapshotProp = new Properties ()
190+ File nativesSnapshotPropF = new File (" ${ rootPath} /natives-snapshot.properties" );
186191
187- if (nativesSnasphotPropF . exists()) {
192+ if (nativesSnapshotPropF . exists()) {
188193
189- nativesSnasphotPropF . withInputStream { nativesSnasphotProp . load(it) }
194+ nativesSnapshotPropF . withInputStream { nativesSnapshotProp . load(it) }
190195
191- String nativesSnasphot = nativesSnasphotProp . getProperty(" natives.snapshot" );
192- String nativesUrl = PREBUILD_NATIVES_URL . replace(' ${natives.snapshot}' , nativesSnasphot )
196+ String nativesSnapshot = nativesSnapshotProp . getProperty(" natives.snapshot" );
197+ String nativesUrl = PREBUILD_NATIVES_URL . replace(' ${natives.snapshot}' , nativesSnapshot )
193198 println " Use natives snapshot: " + nativesUrl
194199
195- String nativesZipFile = " ${ rootPath} " + File . separator + " build" + File . separator + nativesSnasphot + " -natives.zip"
200+ String nativesZipFile = " ${ rootPath} " + File . separator + " build" + File . separator + nativesSnapshot + " -natives.zip"
196201 String nativesPath = " ${ rootPath} " + File . separator + " build" + File . separator + " native"
197202
198203
@@ -269,7 +274,7 @@ if (skipPrebuildLibraries != "true" && buildNativeProjects != "true") {
269274// }
270275
271276wrapper {
272- gradleVersion = ' 5.6.4 '
277+ gradleVersion = ' 6.9.1 '
273278}
274279
275280
0 commit comments