• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download

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