-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle
46 lines (41 loc) · 1.27 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/**
* Collections of subprojects. Useful for configure blocks: configure(prototypeSubprojects){}
*/
/**
* Prototype subprojects. Detected by being in the 'Prototypes' subfolder
*/
ext.prototypeSubprojects = subprojects.findAll { project ->
project.name.startsWith('Prototype')
}
/**
* Java subprojects. Detected by having the 'src/main/java' or 'src/test/java' folder.
*/
ext.javaSubprojects = allprojects.findAll { project ->
file("$project.projectDir/src/main/java").exists() || file("$project.projectDir/src/test/java").exists()
}
/**
* Eclipse Plugin subprojects. Detected by having 'org.eclipse.pde.PluginNature' in their
* .project file.
*/
ext.eclipseSubprojects = allprojects.findAll { project ->
file("$project.projectDir/.project").with {
exists() && text.contains('org.eclipse.pde.PluginNature')
}
}
allprojects {
repositories {
jcenter()
mavenCentral()
}
apply plugin: BasePlugin
buildscript {
fileTree("$projectDir/buildSrc/src/tasks/gradle/buildscript-dependencies").include('*.gradle').each { file ->
project.apply from: file, to: buildscript
}
}
// import all tasks defined in src/build/groovy
fileTree("$projectDir/buildSrc/src/tasks/gradle").include('*.gradle').sort().each { file ->
project.apply from: file
}
defaultTasks 'build'
}