-
Notifications
You must be signed in to change notification settings - Fork 102
/
Copy pathsettings.gradle
28 lines (26 loc) · 1.47 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
// Switch which subproject to pull in based on the BootVersion environment variable
// Boot3 is the default. The project name is the same regardless of version though.
rootProject.name = 'mq-jms-spring'
// We want to use the same module name for all builds, but just with different
// versions. So we rename the project from its default which would be based on the directory name.
if (System.getenv('BOOTVERSION') == null ) {
// This default clause is used when working inside, say, Eclipse where the environment variable
// is not set. Real builds will use one of the following sections.
println("Including Default (BOOT3) subproject")
include ':mq-jms-spring-boot-starter'
project(":mq-jms-spring-boot-starter").name="mq-jms-spring-boot-starter"
} else if (System.getenv('BOOTVERSION') == 'boot4') {
println("Including BOOT4 subproject")
include ':mq-boot4-spring-boot-starter'
project(":mq-boot4-spring-boot-starter").name="mq-jms-spring-boot-starter"
} else if (System.getenv('BOOTVERSION') == 'boot3') {
println("Including BOOT3 subproject")
include ':mq-boot3-spring-boot-starter'
project(":mq-boot3-spring-boot-starter").name="mq-jms-spring-boot-starter"
} else if (System.getenv('BOOTVERSION') == 'boot2') {
println("Including BOOT2 subproject")
include ':mq-boot2-spring-boot-starter'
project(":mq-boot2-spring-boot-starter").name="mq-jms-spring-boot-starter"
} else {
throw new GradleException("Unrecognised value for BOOTVERSION environment variable");
}