@@ -10,9 +10,9 @@ buildscript {
1010 }
1111 }
1212 dependencies {
13- classpath ' com .android.tools. build:gradle:4.2.0 '
14- classpath ' me.tatarka: gradle-retrolambda:3.7.1 '
15- classpath " gradle.plugin.com.github. spotbugs.snom:spotbugs- gradle-plugin:4.5.1 "
13+ classpath libs . android. build. gradle
14+ classpath libs . gradle. retrolambda
15+ classpath libs . spotbugs. gradle. plugin
1616 }
1717}
1818
@@ -49,6 +49,7 @@ subprojects {
4949 // Currently we only warn about issues and try to fix them as we go, but those aren't mission critical.
5050 spotbugs {
5151 ignoreFailures = true
52+ toolVersion = ' 4.8.6'
5253 }
5354
5455 tasks. withType(com.github.spotbugs.snom.SpotBugsTask ) {
@@ -74,23 +75,23 @@ task libDist(dependsOn: subprojects.build, description: 'Builds and copies the e
7475 subprojects. each {project ->
7576 if (! project. hasProperty(' mainClassName' )){
7677 project. tasks. withType(Jar ). each {archiveTask ->
77- if (archiveTask. classifier == " sources" ){
78+ if (archiveTask. archiveClassifier == " sources" ){
7879 copy {
7980 from archiveTask. archivePath
8081 into sourceFolder
81- rename {project. name + ' -' + archiveTask. classifier + ' .' + archiveTask. extension }
82+ rename {project. name + ' -' + archiveTask. archiveClassifier + ' .' + archiveTask. archiveExtension }
8283 }
83- } else if (archiveTask. classifier == " javadoc" ){
84+ } else if (archiveTask. archiveClassifier == " javadoc" ){
8485 copy {
8586 from archiveTask. archivePath
8687 into javadocFolder
87- rename {project. name + ' -' + archiveTask. classifier + ' .' + archiveTask. extension }
88+ rename {project. name + ' -' + archiveTask. archiveClassifier + ' .' + archiveTask. archiveExtension }
8889 }
8990 } else {
9091 copy {
9192 from archiveTask. archivePath
9293 into libFolder
93- rename {project. name + ' .' + archiveTask. extension }
94+ rename {project. name + ' .' + archiveTask. archiveExtension }
9495 }
9596 }
9697 }
@@ -114,7 +115,7 @@ task createZipDistribution(type:Zip,dependsOn:["dist","libDist"], description:"P
114115task copyLibs (type : Copy ){
115116// description 'Copies the engine dependencies to build/libDist'
116117 from {
117- subprojects* . configurations* . compile * . copyRecursive({ ! (it instanceof ProjectDependency ); })* . resolve()
118+ subprojects* . configurations* . implementation * . copyRecursive({ ! (it instanceof ProjectDependency ); })* . resolve()
118119 }
119120
120121 into " $buildDir /libDist/lib-ext" // buildDir.path + '/' + libsDirName + '/lib'
@@ -245,50 +246,8 @@ if (skipPrebuildLibraries != "true" && buildNativeProjects != "true") {
245246 }
246247}
247248
248-
249- // class IncrementalReverseTask extends DefaultTask {
250- // @InputDirectory
251- // def File inputDir
252- //
253- // @OutputDirectory
254- // def File outputDir
255- //
256- // @Input
257- // def inputProperty
258- //
259- // @TaskAction
260- // void execute(IncrementalTaskInputs inputs) {
261- // println inputs.incremental ? "CHANGED inputs considered out of date" : "ALL inputs considered out of date"
262- // inputs.outOfDate { change ->
263- // println "out of date: ${change.file.name}"
264- // def targetFile = new File(outputDir, change.file.name)
265- // targetFile.text = change.file.text.reverse()
266- // }
267- //
268- // inputs.removed { change ->
269- // println "removed: ${change.file.name}"
270- // def targetFile = new File(outputDir, change.file.name)
271- // targetFile.delete()
272- // }
273- // }
274- // }
275-
276- // allprojects {
277- // tasks.withType(JavaExec) {
278- // enableAssertions = true // false by default
279- // }
280- // tasks.withType(Test) {
281- // enableAssertions = true // true by default
282- // }
283- // }
284-
285- wrapper {
286- gradleVersion = ' 7.6.4'
287- }
288-
289-
290249retrolambda {
291250 javaVersion JavaVersion . VERSION_1_7
292251 incremental true
293252 jvmArgs ' -noverify'
294- }
253+ }
0 commit comments