Remove the code to create repo with all history archive.
This CL also includes various other build.gradle cleanups
Bug: 62197335
Test: ./gradlew createArchive still works and now it only creates
tip of tree maven repository zip
Change-Id: Ic631e31baff9aa0591ad4abfa6a2ad5253f5c5bd
diff --git a/buildSrc/init.gradle b/buildSrc/init.gradle
index 2cde002..77b086e 100644
--- a/buildSrc/init.gradle
+++ b/buildSrc/init.gradle
@@ -92,7 +92,7 @@
def setupRepoOutAndBuildNumber() {
ext.supportRepoOut = ''
- ext.buildNumber = Integer.toString(ext.extraVersion)
+ ext.buildNumber = "0"
/*
* With the build server you are given two env variables.
@@ -163,7 +163,6 @@
return
}
- // Current SDK is set in studioCompat.gradle.
project.ext.currentSdk = gradle.ext.currentSdk
apply plugin: 'maven'
@@ -199,7 +198,7 @@
exclude "**/R\$*.class"
exclude "**/BuildConfig.class"
destinationDir file(project.distDir)
- archiveName "${project.archivesBaseName}-${v.baseName}-allclasses.jar"
+ archiveName "${project.name}-${v.baseName}-allclasses.jar"
}
def collectJacocoAntPackages = project.tasks.create(
@@ -268,7 +267,6 @@
// Make the mainupload depend on this one.
mainUpload.dependsOn uploadTask
}
-
}
}
@@ -320,15 +318,6 @@
}
}
- project.afterEvaluate {
- // The archivesBaseName isn't available initially, so set it now
- def createZipTask = project.tasks.findByName("createSeparateZip")
- if (createZipTask != null) {
- createZipTask.appendix = archivesBaseName
- createZipTask.from versionDir()
- }
- }
-
project.afterEvaluate { p ->
// remove dependency on the test so that we still get coverage even if some tests fail
p.tasks.findAll { it instanceof JacocoReportTask }.each { task ->