Yigit Boyar | 88c16ce | 2017-02-08 16:06:14 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2017 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
Sergey Vasilinets | 22b6214 | 2017-11-22 20:32:27 -0800 | [diff] [blame] | 17 | |
Sergey Vasilinets | 22b6214 | 2017-11-22 20:32:27 -0800 | [diff] [blame] | 18 | import android.support.DiffAndDocs |
Aurimas Liutikas | 3196ef1 | 2018-01-02 16:02:50 -0800 | [diff] [blame^] | 19 | import android.support.SupportConfig |
Aurimas Liutikas | 62d3e1d | 2017-11-28 15:28:01 -0800 | [diff] [blame] | 20 | import android.support.gmaven.GMavenVersionChecker |
Yigit Boyar | 88c16ce | 2017-02-08 16:06:14 -0800 | [diff] [blame] | 21 | import com.android.build.gradle.internal.coverage.JacocoReportTask |
| 22 | import com.android.build.gradle.internal.tasks.DeviceProviderInstrumentTestTask |
Aurimas Liutikas | a015004 | 2017-04-21 09:46:12 -0700 | [diff] [blame] | 23 | import org.gradle.api.logging.configuration.ShowStacktrace |
Yigit Boyar | 88c16ce | 2017-02-08 16:06:14 -0800 | [diff] [blame] | 24 | |
Aurimas Liutikas | 419f993 | 2017-12-18 12:53:17 -0800 | [diff] [blame] | 25 | import javax.tools.ToolProvider |
| 26 | |
Yigit Boyar | 88c16ce | 2017-02-08 16:06:14 -0800 | [diff] [blame] | 27 | def supportRoot = ext.supportRootFolder |
| 28 | if (supportRoot == null) { |
| 29 | throw new RuntimeException("variable supportRootFolder is not set. you must set it before" + |
| 30 | " including this script") |
| 31 | } |
| 32 | def init = new Properties() |
| 33 | ext.init = init |
Yigit Boyar | a9ac19d | 2017-09-20 16:11:49 -0700 | [diff] [blame] | 34 | rootProject.ext.versionChecker = new GMavenVersionChecker(rootProject) |
Aurimas Liutikas | 9ab3b4c3 | 2017-04-19 09:33:27 -0700 | [diff] [blame] | 35 | ext.runningInBuildServer = System.env.DIST_DIR != null && System.env.OUT_DIR != null |
Yigit Boyar | 88c16ce | 2017-02-08 16:06:14 -0800 | [diff] [blame] | 36 | |
| 37 | apply from: "${supportRoot}/buildSrc/dependencies.gradle" |
Aurimas Liutikas | 62d3e1d | 2017-11-28 15:28:01 -0800 | [diff] [blame] | 38 | apply from: "${supportRoot}/buildSrc/build_dependencies.gradle" |
Yigit Boyar | 88c16ce | 2017-02-08 16:06:14 -0800 | [diff] [blame] | 39 | |
Sergey Vasilinets | 1638535 | 2017-12-13 16:56:47 -0800 | [diff] [blame] | 40 | def enableDoclavaAndJDiff(p, dacOptions) { |
Yigit Boyar | 88c16ce | 2017-02-08 16:06:14 -0800 | [diff] [blame] | 41 | p.configurations { |
| 42 | doclava |
| 43 | jdiff |
| 44 | } |
| 45 | |
| 46 | p.dependencies { |
Aurimas Liutikas | 419f993 | 2017-12-18 12:53:17 -0800 | [diff] [blame] | 47 | doclava build_libs.doclava |
| 48 | // tools.jar required for com.sun.javadoc |
| 49 | doclava files(((URLClassLoader) ToolProvider.getSystemToolClassLoader()).getURLs()) |
| 50 | jdiff build_libs.jdiff |
Aurimas Liutikas | 62d3e1d | 2017-11-28 15:28:01 -0800 | [diff] [blame] | 51 | jdiff build_libs.xml_parser_apis |
| 52 | jdiff build_libs.xerces_impl |
Yigit Boyar | 88c16ce | 2017-02-08 16:06:14 -0800 | [diff] [blame] | 53 | } |
Sergey Vasilinets | 1638535 | 2017-12-13 16:56:47 -0800 | [diff] [blame] | 54 | def allChecks = DiffAndDocs.configureDiffAndDocs(rootProject, supportRootFolder, dacOptions) |
| 55 | createArchive.dependsOn(allChecks) |
Yigit Boyar | 88c16ce | 2017-02-08 16:06:14 -0800 | [diff] [blame] | 56 | } |
| 57 | |
Aurimas Liutikas | bb78f3f | 2017-06-19 11:30:37 -0700 | [diff] [blame] | 58 | def getFullSdkPath() { |
Aurimas Liutikas | b06771d | 2017-04-20 09:46:49 -0700 | [diff] [blame] | 59 | final String osName = System.getProperty("os.name").toLowerCase(); |
| 60 | final boolean isMacOsX = |
| 61 | osName.contains("mac os x") || osName.contains("darwin") || osName.contains("osx"); |
| 62 | final String platform = isMacOsX ? 'darwin' : 'linux' |
Aurimas Liutikas | bb78f3f | 2017-06-19 11:30:37 -0700 | [diff] [blame] | 63 | return "${repos.prebuiltsRoot}/fullsdk-${platform}" |
| 64 | } |
| 65 | |
| 66 | def setSdkInLocalPropertiesFile() { |
Aurimas Liutikas | 3196ef1 | 2018-01-02 16:02:50 -0800 | [diff] [blame^] | 67 | final File fullSdkPath = file(getFullSdkPath()) |
| 68 | if (fullSdkPath.exists()) { |
| 69 | project.ext.fullSdkPath = fullSdkPath |
Yigit Boyar | 88c16ce | 2017-02-08 16:06:14 -0800 | [diff] [blame] | 70 | File props = file("local.properties") |
Aurimas Liutikas | 3196ef1 | 2018-01-02 16:02:50 -0800 | [diff] [blame^] | 71 | props.write "sdk.dir=${fullSdkPath.getAbsolutePath()}" |
Aurimas Liutikas | 3c66600 | 2017-03-08 19:30:28 -0800 | [diff] [blame] | 72 | ext.usingFullSdk = true |
Yigit Boyar | 88c16ce | 2017-02-08 16:06:14 -0800 | [diff] [blame] | 73 | } else { |
Aurimas Liutikas | 3196ef1 | 2018-01-02 16:02:50 -0800 | [diff] [blame^] | 74 | throw Exception("You are using non ub-supportlib-* checkout. You need to check out " |
| 75 | + "ub-supportlib-* to work on support library. See go/supportlib for details.") |
Yigit Boyar | 88c16ce | 2017-02-08 16:06:14 -0800 | [diff] [blame] | 76 | } |
| 77 | } |
| 78 | |
| 79 | def setupRepoOutAndBuildNumber() { |
Yigit Boyar | ef30066 | 2017-05-01 11:52:07 -0700 | [diff] [blame] | 80 | // common support repo folder which works well for prebuilts. |
Yigit Boyar | 88c16ce | 2017-02-08 16:06:14 -0800 | [diff] [blame] | 81 | ext.supportRepoOut = '' |
Aurimas Liutikas | 76542da | 2017-06-29 17:00:29 -0700 | [diff] [blame] | 82 | ext.buildNumber = "0" |
Yigit Boyar | 88c16ce | 2017-02-08 16:06:14 -0800 | [diff] [blame] | 83 | /* |
| 84 | * With the build server you are given two env variables. |
| 85 | * The OUT_DIR is a temporary directory you can use to put things during the build. |
| 86 | * The DIST_DIR is where you want to save things from the build. |
| 87 | * |
| 88 | * The build server will copy the contents of DIST_DIR to somewhere and make it available. |
| 89 | */ |
Yigit Boyar | 7bfacb7 | 2017-03-02 14:27:41 -0800 | [diff] [blame] | 90 | if (ext.runningInBuildServer) { |
Yigit Boyar | 88c16ce | 2017-02-08 16:06:14 -0800 | [diff] [blame] | 91 | buildDir = new File(System.env.OUT_DIR + '/gradle/frameworks/support/build') |
| 92 | .getCanonicalFile() |
| 93 | project.ext.distDir = new File(System.env.DIST_DIR).getCanonicalFile() |
| 94 | |
| 95 | // the build server does not pass the build number so we infer it from the last folder of |
| 96 | // the dist path. |
| 97 | ext.buildNumber = project.ext.distDir.getName() |
Aurimas Liutikas | a015004 | 2017-04-21 09:46:12 -0700 | [diff] [blame] | 98 | |
| 99 | // the build server should always print out full stack traces for any failures. |
| 100 | gradle.startParameter.showStacktrace = ShowStacktrace.ALWAYS |
Yigit Boyar | 88c16ce | 2017-02-08 16:06:14 -0800 | [diff] [blame] | 101 | } else { |
| 102 | buildDir = file("${ext.supportRootFolder}/../../out/host/gradle/frameworks/support/build") |
| 103 | project.ext.distDir = new File("${ext.supportRootFolder}/../../out/dist") |
| 104 | } |
| 105 | subprojects { |
| 106 | // Change buildDir first so that all plugins pick up the new value. |
| 107 | project.buildDir = new File("$project.parent.buildDir/../$project.name/build") |
| 108 | } |
| 109 | ext.supportRepoOut = new File(buildDir, 'support_repo') |
| 110 | ext.testApkDistOut = ext.distDir |
Yigit Boyar | 7bfacb7 | 2017-03-02 14:27:41 -0800 | [diff] [blame] | 111 | ext.testResultsDistDir = new File(distDir, "host-test-reports") |
Yigit Boyar | 88c16ce | 2017-02-08 16:06:14 -0800 | [diff] [blame] | 112 | ext.docsDir = new File(buildDir, 'javadoc') |
| 113 | } |
| 114 | |
Aurimas Liutikas | 38e8f4d9 | 2017-06-16 08:31:03 -0700 | [diff] [blame] | 115 | def configureBuildOnServer() { |
| 116 | def buildOnServerTask = rootProject.tasks.create("buildOnServer") |
| 117 | rootProject.tasks.whenTaskAdded { task -> |
Aurimas Liutikas | 212905f | 2017-10-09 15:28:28 -0700 | [diff] [blame] | 118 | if ("createArchive".equals(task.name) || "distDocs".equals(task.name)) { |
Aurimas Liutikas | 38e8f4d9 | 2017-06-16 08:31:03 -0700 | [diff] [blame] | 119 | buildOnServerTask.dependsOn task |
| 120 | } |
| 121 | } |
| 122 | |
| 123 | subprojects { |
| 124 | project.tasks.whenTaskAdded { task -> |
| 125 | if ("assembleErrorProne".equals(task.name) || "assembleAndroidTest".equals(task.name)) { |
| 126 | buildOnServerTask.dependsOn task |
| 127 | } |
| 128 | } |
| 129 | } |
Aurimas Liutikas | 7cf3497 | 2017-12-18 09:27:47 -0800 | [diff] [blame] | 130 | buildOnServerTask.dependsOn createJacocoAntUberJarTask() |
| 131 | } |
| 132 | |
| 133 | def createJacocoAntUberJarTask() { |
| 134 | def myJacoco = project.configurations.create('myJacoco') |
| 135 | project.dependencies.add('myJacoco', build_libs.jacoco_ant) |
| 136 | |
| 137 | return project.tasks.create( |
| 138 | name: "JacocoAntUberJar", |
| 139 | type: Jar) { |
| 140 | inputs.files myJacoco |
| 141 | from { |
| 142 | myJacoco |
| 143 | .resolvedConfiguration |
| 144 | .resolvedArtifacts.collect{ zipTree(it.getFile()) }} { |
| 145 | // exclude all the signatures the jar might have |
| 146 | exclude "META-INF/*.SF" |
| 147 | exclude "META-INF/*.DSA" |
| 148 | exclude "META-INF/*.RSA" |
| 149 | } |
| 150 | destinationDir file(project.distDir) |
| 151 | archiveName "jacocoant.jar" |
| 152 | } |
Aurimas Liutikas | 38e8f4d9 | 2017-06-16 08:31:03 -0700 | [diff] [blame] | 153 | } |
| 154 | |
Yigit Boyar | 88c16ce | 2017-02-08 16:06:14 -0800 | [diff] [blame] | 155 | def configureSubProjects() { |
| 156 | // lint every library |
| 157 | def lintTask = project.tasks.create("lint") |
| 158 | subprojects { |
Aurimas Liutikas | 6509a1a | 2017-05-09 16:25:43 -0700 | [diff] [blame] | 159 | repos.addMavenRepositories(repositories) |
| 160 | |
Yigit Boyar | 88c16ce | 2017-02-08 16:06:14 -0800 | [diff] [blame] | 161 | // Only modify Android projects. |
Aurimas Liutikas | 6319e4c | 2017-12-18 21:08:02 -0800 | [diff] [blame] | 162 | if (project.name.equals('noto-emoji-compat')) { |
Yigit Boyar | 7bfacb7 | 2017-03-02 14:27:41 -0800 | [diff] [blame] | 163 | // disable tests and return |
| 164 | project.tasks.whenTaskAdded { task -> |
| 165 | if (task instanceof org.gradle.api.tasks.testing.Test) { |
| 166 | task.enabled = false |
| 167 | } |
| 168 | } |
| 169 | return |
| 170 | } |
Yigit Boyar | 88c16ce | 2017-02-08 16:06:14 -0800 | [diff] [blame] | 171 | |
Yigit Boyar | 88c16ce | 2017-02-08 16:06:14 -0800 | [diff] [blame] | 172 | project.plugins.whenPluginAdded { plugin -> |
| 173 | def isAndroidLibrary = "com.android.build.gradle.LibraryPlugin" |
| 174 | .equals(plugin.class.name) |
| 175 | def isAndroidApp = "com.android.build.gradle.AppPlugin".equals(plugin.class.name) |
| 176 | def isJavaLibrary = "org.gradle.api.plugins.JavaPlugin".equals(plugin.class.name) |
| 177 | |
| 178 | if (isAndroidLibrary || isAndroidApp) { |
Yigit Boyar | 88c16ce | 2017-02-08 16:06:14 -0800 | [diff] [blame] | 179 | // Enable code coverage for debug builds only if we are not running inside the IDE, |
| 180 | // since enabling coverage reports breaks the method parameter resolution in the IDE |
| 181 | // debugger. |
| 182 | project.android.buildTypes.debug.testCoverageEnabled = |
Sergey Vasilinets | ac8e72b | 2017-04-26 15:55:17 -0700 | [diff] [blame] | 183 | !project.hasProperty('android.injected.invoked.from.ide') |
Yigit Boyar | 88c16ce | 2017-02-08 16:06:14 -0800 | [diff] [blame] | 184 | |
| 185 | // Copy the class files in a jar to be later used to generate code coverage report |
| 186 | project.android.testVariants.all { v -> |
| 187 | // check if the variant has any source files |
| 188 | // and test coverage is enabled |
| 189 | if (v.buildType.testCoverageEnabled |
| 190 | && v.sourceSets.any { !it.java.sourceFiles.isEmpty() }) { |
| 191 | def jarifyTask = project.tasks.create( |
| 192 | name: "package${v.name.capitalize()}ClassFilesForCoverageReport", |
| 193 | type: Jar) { |
| 194 | from v.testedVariant.javaCompile.destinationDir |
| 195 | exclude "**/R.class" |
| 196 | exclude "**/R\$*.class" |
| 197 | exclude "**/BuildConfig.class" |
| 198 | destinationDir file(project.distDir) |
Aurimas Liutikas | 76542da | 2017-06-29 17:00:29 -0700 | [diff] [blame] | 199 | archiveName "${project.name}-${v.baseName}-allclasses.jar" |
Yigit Boyar | 88c16ce | 2017-02-08 16:06:14 -0800 | [diff] [blame] | 200 | } |
Aurimas Liutikas | 21b7fce | 2017-06-23 09:52:08 -0700 | [diff] [blame] | 201 | |
Yigit Boyar | 88c16ce | 2017-02-08 16:06:14 -0800 | [diff] [blame] | 202 | jarifyTask.dependsOn v.getJavaCompiler() |
Aurimas Liutikas | 7cf3497 | 2017-12-18 09:27:47 -0800 | [diff] [blame] | 203 | v.assemble.dependsOn jarifyTask |
Yigit Boyar | 88c16ce | 2017-02-08 16:06:14 -0800 | [diff] [blame] | 204 | } |
| 205 | } |
| 206 | |
| 207 | // Enforce NewApi lint check as fatal. |
Yigit Boyar | 88c16ce | 2017-02-08 16:06:14 -0800 | [diff] [blame] | 208 | project.android.lintOptions.fatal 'NewApi' |
Aurimas Liutikas | 6c62570 | 2017-09-20 14:35:47 -0700 | [diff] [blame] | 209 | lintTask.dependsOn {project.lint} |
Yigit Boyar | 88c16ce | 2017-02-08 16:06:14 -0800 | [diff] [blame] | 210 | } |
| 211 | |
| 212 | if (isAndroidLibrary || isJavaLibrary) { |
| 213 | // Add library to the aggregate dependency report. |
| 214 | task allDeps(type: DependencyReportTask) {} |
Yigit Boyar | 88c16ce | 2017-02-08 16:06:14 -0800 | [diff] [blame] | 215 | |
Aurimas Liutikas | 6509a1a | 2017-05-09 16:25:43 -0700 | [diff] [blame] | 216 | project.afterEvaluate { |
| 217 | Upload uploadTask = (Upload) project.tasks.uploadArchives; |
| 218 | uploadTask.repositories.mavenDeployer { |
Aurimas Liutikas | 279780d | 2017-08-09 14:03:59 -0700 | [diff] [blame] | 219 | repository(url: uri("$rootProject.ext.supportRepoOut")) |
| 220 | setUniqueVersion(true) |
Aurimas Liutikas | 6509a1a | 2017-05-09 16:25:43 -0700 | [diff] [blame] | 221 | } |
| 222 | |
| 223 | // Before the upload, make sure the repo is ready. |
| 224 | uploadTask.dependsOn rootProject.tasks.prepareRepo |
| 225 | |
Aurimas Liutikas | 6509a1a | 2017-05-09 16:25:43 -0700 | [diff] [blame] | 226 | // Make the mainupload depend on this one. |
| 227 | mainUpload.dependsOn uploadTask |
Yigit Boyar | 88c16ce | 2017-02-08 16:06:14 -0800 | [diff] [blame] | 228 | } |
Yigit Boyar | 88c16ce | 2017-02-08 16:06:14 -0800 | [diff] [blame] | 229 | } |
| 230 | } |
| 231 | |
Yigit Boyar | 7bfacb7 | 2017-03-02 14:27:41 -0800 | [diff] [blame] | 232 | // Copy instrumentation test APKs and app APKs into the dist dir |
| 233 | // For test apks, they are uploaded only if we have java test sources. |
| 234 | // For regular app apks, they are uploaded only if they have java sources. |
| 235 | project.tasks.whenTaskAdded { task -> |
| 236 | if (task.name.startsWith("packageDebug")) { |
| 237 | def testApk = task.name.contains("AndroidTest") |
| 238 | task.doLast { |
| 239 | def source = testApk ? project.android.sourceSets.androidTest |
| 240 | : project.android.sourceSets.main |
Yigit Boyar | e606d6d | 2017-09-07 12:37:36 -0700 | [diff] [blame] | 241 | def hasKotlinSources = false |
| 242 | if (source.hasProperty('kotlin')) { |
| 243 | if (!source.kotlin.files.isEmpty()) { |
| 244 | hasKotlinSources = true |
| 245 | } else { |
| 246 | // kotlin files does not show in java sources due to the *.java filter |
| 247 | // so we need to check them manually |
| 248 | hasKotlinSources = source.java.sourceDirectoryTrees.any { |
| 249 | !fileTree(dir: it.dir, include:'**/*.kt').files.isEmpty() |
| 250 | } |
| 251 | } |
| 252 | } |
| 253 | def hasSourceCode = !source.java.sourceFiles.isEmpty() || hasKotlinSources |
| 254 | if (task.hasProperty("outputDirectory") && (hasSourceCode || !testApk)) { |
Yigit Boyar | 7bfacb7 | 2017-03-02 14:27:41 -0800 | [diff] [blame] | 255 | copy { |
Aurimas Liutikas | ef3b492 | 2017-06-28 10:44:59 -0700 | [diff] [blame] | 256 | from(task.outputDirectory) |
| 257 | include '*.apk' |
Yigit Boyar | 7bfacb7 | 2017-03-02 14:27:41 -0800 | [diff] [blame] | 258 | into(rootProject.ext.testApkDistOut) |
| 259 | rename { String fileName -> |
Hyundo Moon | 9938e17 | 2017-07-26 20:51:11 +0900 | [diff] [blame] | 260 | // Exclude media-compat-test-* modules from existing support library |
| 261 | // presubmit tests. |
| 262 | if (fileName.contains("media-compat-test")) { |
| 263 | fileName.replace("-debug-androidTest", "") |
Yigit Boyar | 96a0fcd | 2017-08-25 18:18:28 -0700 | [diff] [blame] | 264 | } else { |
| 265 | // multiple modules may have the same name so prefix the name with |
| 266 | // the module's path to ensure it is unique. |
| 267 | // e.g. palette-v7-debug-androidTest.apk becomes |
| 268 | // support-palette-v7_palette-v7-debug-androidTest.apk |
| 269 | "${project.getPath().replace(':', '-').substring(1)}_${fileName}" |
Hyundo Moon | 9938e17 | 2017-07-26 20:51:11 +0900 | [diff] [blame] | 270 | } |
Yigit Boyar | 7bfacb7 | 2017-03-02 14:27:41 -0800 | [diff] [blame] | 271 | } |
| 272 | } |
| 273 | } |
| 274 | } |
| 275 | } |
| 276 | } |
| 277 | |
| 278 | // copy host side test results to DIST |
| 279 | project.tasks.whenTaskAdded { task -> |
| 280 | if (task instanceof org.gradle.api.tasks.testing.Test) { |
| 281 | def junitReport = task.reports.junitXml |
| 282 | if (junitReport.enabled) { |
| 283 | def zipTask = project.tasks.create(name : "zipResultsOf${task.name.capitalize()}", type : Zip) { |
| 284 | destinationDir(testResultsDistDir) |
Yigit Boyar | 278676d | 2017-03-10 15:29:11 -0800 | [diff] [blame] | 285 | // first one is always :, drop it. |
| 286 | archiveName("${project.getPath().split(":").join("_").substring(1)}.zip") |
Yigit Boyar | 7bfacb7 | 2017-03-02 14:27:41 -0800 | [diff] [blame] | 287 | } |
| 288 | if (project.rootProject.ext.runningInBuildServer) { |
| 289 | task.ignoreFailures = true |
| 290 | } |
| 291 | task.finalizedBy zipTask |
| 292 | task.doFirst { |
| 293 | zipTask.from(junitReport.destination) |
| 294 | } |
| 295 | } |
| 296 | } |
| 297 | } |
| 298 | |
Yigit Boyar | 88c16ce | 2017-02-08 16:06:14 -0800 | [diff] [blame] | 299 | project.afterEvaluate { p -> |
| 300 | // remove dependency on the test so that we still get coverage even if some tests fail |
| 301 | p.tasks.findAll { it instanceof JacocoReportTask }.each { task -> |
| 302 | def toBeRemoved = new ArrayList() |
| 303 | def dependencyList = task.taskDependencies.values |
| 304 | dependencyList.each { dep -> |
| 305 | if (dep instanceof String) { |
| 306 | def t = tasks.findByName(dep) |
| 307 | if (t instanceof DeviceProviderInstrumentTestTask) { |
| 308 | toBeRemoved.add(dep) |
| 309 | task.mustRunAfter(t) |
| 310 | } |
| 311 | } |
| 312 | } |
| 313 | toBeRemoved.each { dep -> |
| 314 | dependencyList.remove(dep) |
| 315 | } |
| 316 | } |
| 317 | } |
| 318 | } |
| 319 | } |
| 320 | |
| 321 | def setupRelease() { |
| 322 | apply from: "${ext.supportRootFolder}/buildSrc/release.gradle" |
| 323 | } |
| 324 | |
Yigit Boyar | 88c16ce | 2017-02-08 16:06:14 -0800 | [diff] [blame] | 325 | ext.init.enableDoclavaAndJDiff = this.&enableDoclavaAndJDiff |
| 326 | ext.init.setSdkInLocalPropertiesFile = this.&setSdkInLocalPropertiesFile |
| 327 | ext.init.setupRepoOutAndBuildNumber = this.&setupRepoOutAndBuildNumber |
| 328 | ext.init.setupRelease = this.&setupRelease |
Aurimas Liutikas | 38e8f4d9 | 2017-06-16 08:31:03 -0700 | [diff] [blame] | 329 | ext.init.configureSubProjects = this.&configureSubProjects |
Yigit Boyar | e1bbf71 | 2017-03-08 13:52:37 -0800 | [diff] [blame] | 330 | ext.init.configureBuildOnServer = this.&configureBuildOnServer |