<lambda>null1buildscript { 2 val snapshotSuffix = if (hasProperty("release")) { 3 // We're still tagging releases as betas until we have more thorough 4 // test automation. 5 "-beta-1" 6 } else { 7 "-SNAPSHOT" 8 } 9 10 extra.apply { 11 set("snapshotSuffix", snapshotSuffix) 12 } 13 } 14 15 group = "com.android" 16 version = "1.0.0${extra.get("snapshotSuffix")}" 17 <lambda>null18repositories { 19 mavenCentral() 20 google() 21 } 22 <lambda>null23tasks.register("release") { 24 dependsOn(project.getTasksByName("test", true)) 25 dependsOn(project.getTasksByName("distZip", true)) 26 } 27