-
Notifications
You must be signed in to change notification settings - Fork 395
/
settings.gradle
80 lines (72 loc) · 2.19 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
pluginManagement {
repositories {
mavenCentral()
gradlePluginPortal()
maven { url 'https://repo.spring.io/release' }
if (version.contains('-')) {
maven { url 'https://repo.spring.io/milestone' }
}
if (version.endsWith('-SNAPSHOT')) {
maven { url 'https://repo.spring.io/snapshot' }
}
}
plugins {
id 'com.gradle.enterprise' version "$gradleEnterpriseVersion"
id 'io.spring.ge.conventions' version "$springGeConventionsVersion"
}
}
plugins {
id "com.gradle.enterprise"
id "io.spring.ge.conventions"
}
rootProject.name = 'spring-shell'
settings.gradle.projectsLoaded {
gradleEnterprise {
buildScan {
def buildDir = settings.gradle.rootProject.getBuildDir()
buildDir.mkdirs()
new File(buildDir, "build-scan-uri.txt").text = "build scan not generated"
buildScanPublished { scan ->
buildDir.mkdirs()
new File(buildDir, "build-scan-uri.txt").text = "<${scan.buildScanUri}|build scan>\n"
}
}
}
}
include 'spring-shell-autoconfigure'
include 'spring-shell-core'
include 'spring-shell-core-test-support'
include 'spring-shell-management'
include 'spring-shell-dependencies'
include 'spring-shell-docs'
include 'spring-shell-standard'
include 'spring-shell-standard-commands'
include 'spring-shell-table'
include 'spring-shell-test'
include 'spring-shell-test-autoconfigure'
def ffm = settings.properties.hasProperty('includeFfm') && settings.properties.property('includeFfm').asBoolean()
file("${rootDir}/spring-shell-starters").eachDirMatch(~/spring-shell-starter.*/) {
if((!it.name.endsWith('ffm') && !ffm) || ffm) { // skipping
include "spring-shell-starters:${it.name}"
}
}
file("${rootDir}/spring-shell-samples").eachDirMatch(~/spring-shell-sample.*/) {
if((!it.name.endsWith('ffm') && !ffm) || ffm) { // skipping
include "spring-shell-samples:${it.name}"
}
}
rootProject.children.each { project ->
if (project.name == 'spring-shell-starters') {
project.children.each { subproject ->
subproject.buildFileName = "${subproject.name}.gradle"
}
}
else if (project.name == 'spring-shell-samples') {
project.children.each { subproject ->
subproject.buildFileName = "${subproject.name}.gradle"
}
}
else {
project.buildFileName = "${project.name}.gradle"
}
}