-
Notifications
You must be signed in to change notification settings - Fork 102
/
settings.gradle
17 lines (15 loc) · 860 Bytes
/
settings.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Switch which subproject to pull in based on the JmsVersion environment variable
// JMS2 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 both JMS2 and JMS3, but just with different
// versions. So we rename the project from its default which would be based on the directory name.
if (System.getenv('JMSVERSION') == 'jms3' || System.getenv('JMSVERSION') == null ) {
println("Including JMS3 subproject")
include ':mq-jms-spring-boot-starter'
// Rename not strictly necessary here, but it makes it clearer
project(":mq-jms-spring-boot-starter").name="mq-jms-spring-boot-starter"
} else {
println("Including JMS2 subproject")
include ':mq-jms2-spring-boot-starter'
project(":mq-jms2-spring-boot-starter").name="mq-jms-spring-boot-starter"
}