forked from eclipse-xtext/xtext
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle
45 lines (39 loc) · 1.37 KB
/
settings.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
/*
* This script collects all the projects and categorizes them.
* It adds cross-configuration to the subprojects according to their category.
* All cross-configuration should happen here.
* All other build scripts should only configure their own project.
* This ensures minimum configuration time, which means fast builds.
*/
rootProject.name = 'xtext'
include 'jenkins'
include 'maven'
['plugins', 'tests','intellij', 'web'].each { folder ->
new File(settingsDir, folder).listFiles().findAll {
it.isDirectory() && it.name.startsWith("org.eclipse")
}
.each {
include "${folder}:${it.name}"
}
}
gradle.beforeProject {project ->
project.with {
repositories {
jcenter()
}
apply from: "$rootDir/gradle/versions.gradle"
apply from: "$rootDir/gradle/project-metadata.gradle"
apply from: "$rootDir/gradle/build-server-detection.gradle"
apply from: "$rootDir/gradle/eclipse-settings.gradle"
apply from: "$rootDir/gradle/java-compiler-settings.gradle"
apply from: "$rootDir/gradle/dependency-hygiene.gradle"
def isEclipsePlugin = project.file('build.properties').exists()
if (isEclipsePlugin) {
apply from: "${rootDir}/gradle/eclipse-plugin-project.gradle"
} else if (path.startsWith(':web:')) {
apply from: "$rootDir/gradle/web-project.gradle"
} else if (path.startsWith(':intellij')) {
apply from: "$rootDir/gradle/intellij-project.gradle"
}
}
}