-
Notifications
You must be signed in to change notification settings - Fork 102
/
Copy pathboot4.properties
29 lines (24 loc) · 1.01 KB
/
boot4.properties
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
// This file contains the versions of Spring etc to work with a Jakarta-based system
ext {
// Our shipped version - should usually match the Spring Boot Version but
// there may be reasons to make it different
mqStarterVersion = '4.0.0-M1'
// Direct Dependencies - give versions here
springVersion = '6.2.3'
springBootVersion = '3.4.3'
pooledJmsVersion = '3.1.7'
jUnitVersion = '4.13.2'
// MQ client has a 'jakarta' name
mqJar = 'com.ibm.mq.jakarta.client'
// Base level is Java 17 for Spring Boot 4
javaSourceCompatibility = JavaVersion.VERSION_17
javaTargetCompatibility = JavaVersion.VERSION_17
}
println("Using boot4.properties")
/*
* Make sure we're using Java 17 which is the base level for Spring Boot 4 (as well as 3).
*/
println("Running build with Java version " + JavaVersion.current())
if(JavaVersion.current() < javaSourceCompatibility){
throw new GradleException("This build must be run with java " + javaSourceCompatibility + " or later. Current JDK is " + JavaVersion.current())
}