blob: f217598157e52bad59633ec2117f282e531f5a0f [file] [log] [blame]
buildscript {
val snapshotSuffix = if (hasProperty("release")) {
// We're still tagging releases as betas until we have more thorough
// test automation.
"-beta-1"
} else {
"-SNAPSHOT"
}
extra.apply {
set("snapshotSuffix", snapshotSuffix)
}
}
group = "com.android"
version = "1.0.0${extra.get("snapshotSuffix")}"
plugins {
distribution
}
repositories {
mavenCentral()
jcenter()
google()
}
distributions {
main {
contents {
from("${rootProject.buildDir}/repository")
include("**/*.aar")
include("**/*.pom")
}
}
}
tasks {
distZip {
dependsOn(project.getTasksByName("publish", true))
}
}
tasks.register("release") {
dependsOn(project.getTasksByName("test", true))
dependsOn(":distZip")
}