-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
29 lines (24 loc) · 954 Bytes
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
version '1.0-SNAPSHOT'
apply plugin: 'java'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
}
tasks.addRule("integrationTestFor-<SampleName>") { String taskName ->
if (taskName.startsWith("integrationTestFor-")) {
File projectDir = new File(rootProject.projectDir, 'SampleGradle/app')
tasks.create(taskName, GradleBuild) {
dir = projectDir
buildFile = new File(projectDir, 'build.gradle')
tasks = ['clean', 'check']
startParameter.buildCacheEnabled = false
startParameter.configureOnDemand = false
startParameter.setParallelProjectExecutionEnabled(false)
startParameter.projectProperties['android.enableBuildScriptClasspathCheck'] = 'false'
startParameter.projectProperties['android.enableIncrementalDesugaring'] = 'false'
}
}
}