<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>null18plugins { 19 distribution 20 } 21 <lambda>null22repositories { 23 mavenCentral() 24 jcenter() 25 google() 26 } 27 <lambda>null28distributions { 29 main { 30 contents { 31 from("${rootProject.buildDir}/repository") 32 include("**/*.aar") 33 include("**/*.pom") 34 } 35 } 36 } 37 <lambda>null38tasks { 39 distZip { 40 dependsOn(project.getTasksByName("publish", true)) 41 } 42 } 43 <lambda>null44tasks.register("release") { 45 dependsOn(project.getTasksByName("test", true)) 46 dependsOn(":distZip") 47 } 48