summaryrefslogtreecommitdiff
path: root/supportBundle.gradle
diff options
context:
space:
mode:
authorYigit Boyar <yboyar@google.com>2015-10-30 16:28:34 -0700
committerYigit Boyar <yboyar@google.com>2015-11-04 12:04:29 -0800
commitd437f7eeb199ed9bf9fb9bed664258dbbcd87130 (patch)
treea39cdeb4bc302a8ae307312dd3e88dea98cef341 /supportBundle.gradle
parentf3322decde1932026b8c2dd4d367348175a2a7ea (diff)
downloaddata-binding-d437f7eeb199ed9bf9fb9bed664258dbbcd87130.tar.gz
Use publish from android build tools
This CL removes data binding's bintray plugin and starts using the tools project. It can be uploaded to bintray only from tools project. databinding.properties file still reference rc3. We'll change it when rc5 is public. Change-Id: Id5801e488ae30cf0003372b5ae94f01306fbfa99
Diffstat (limited to 'supportBundle.gradle')
-rw-r--r--supportBundle.gradle11
1 files changed, 6 insertions, 5 deletions
diff --git a/supportBundle.gradle b/supportBundle.gradle
index 44d18f2f..94e20ad2 100644
--- a/supportBundle.gradle
+++ b/supportBundle.gradle
@@ -35,13 +35,16 @@ if (System.env.DIST_DIR != null && System.env.OUT_DIR != null) {
project.ext.distDir = file('../../out/dist')
}
project.ext.distDir.mkdirs()
-
ext.supportRepoOut = new File(buildDir, 'support_repo')
// Main task called by the build server.
task(createArchive) << {
}
+createArchive.doLast {
+ println "support repo out ${project.ext.supportRepoOut}"
+ println "dist dir ${project.ext.distDir}"
+}
// upload anchor for subprojects to upload their artifacts
// to the local repo.
@@ -56,10 +59,9 @@ task createRepository(type: Zip, dependsOn: mainUpload) {
baseName = String.format("sdk-repo-linux-m2repository-%s", project.ext.buildNumber)
}
createArchive.dependsOn createRepository
-
// prepare repository with older versions
task unzipRepo(type: Copy) {
- from "$rootDir/../../prebuilts/maven_repo/android"
+ from "${dataBindingConfig.externalPrebuiltsBase}/maven_repo/android"
into project.ext.supportRepoOut
}
@@ -111,7 +113,6 @@ Extra.NameDisplay=Android Support Repository\n\
Archive.Os=ANY\n\
Pkg.Revision=${project.ext.extraVersion}.0.0\n\
Extra.VendorId=android"
-
Files.write(sourceProp, new File(project.ext.supportRepoOut, 'source.properties'), Charsets.UTF_8)
}
createSourceProp.dependsOn unzipRepo
@@ -129,4 +130,4 @@ task(bundleSupportLib) << {
}
createRepository.dependsOn prepareRepo
createRepository.dependsOn unzipRepo
-unzipRepo.dependsOn bundleSupportLib
+createRepository.dependsOn bundleSupportLib