Skip to content

Commit 4b0b5c2

Browse files
committed
Ensure that building test apps produces Java 17 bytecode
See spring-projectsgh-41980
1 parent 4258953 commit 4b0b5c2

File tree

5 files changed

+25
-0
lines changed
  • spring-boot-tests/spring-boot-integration-tests
    • spring-boot-launch-script-tests/spring-boot-launch-script-tests-app
    • spring-boot-loader-classic-tests/spring-boot-loader-classic-tests-app
    • spring-boot-loader-tests
    • spring-boot-server-tests/spring-boot-server-tests-app

5 files changed

+25
-0
lines changed

spring-boot-tests/spring-boot-integration-tests/spring-boot-launch-script-tests/spring-boot-launch-script-tests-app/build.gradle

+5
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ plugins {
55

66
apply plugin: "io.spring.dependency-management"
77

8+
java {
9+
sourceCompatibility = '17'
10+
targetCompatibility = '17'
11+
}
12+
813
repositories {
914
maven { url "file:${rootDir}/../docker-test-maven-repository"}
1015
mavenCentral()

spring-boot-tests/spring-boot-integration-tests/spring-boot-loader-classic-tests/spring-boot-loader-classic-tests-app/build.gradle

+5
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ plugins {
55

66
apply plugin: "io.spring.dependency-management"
77

8+
java {
9+
sourceCompatibility = '17'
10+
targetCompatibility = '17'
11+
}
12+
813
repositories {
914
maven { url "file:${rootDir}/../docker-test-maven-repository"}
1015
mavenCentral()

spring-boot-tests/spring-boot-integration-tests/spring-boot-loader-tests/spring-boot-loader-tests-app/build.gradle

+5
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ plugins {
55

66
apply plugin: "io.spring.dependency-management"
77

8+
java {
9+
sourceCompatibility = '17'
10+
targetCompatibility = '17'
11+
}
12+
813
repositories {
914
maven { url "file:${rootDir}/../docker-test-maven-repository"}
1015
mavenCentral()

spring-boot-tests/spring-boot-integration-tests/spring-boot-loader-tests/spring-boot-loader-tests-signed-jar/build.gradle

+5
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ plugins {
77

88
apply plugin: "io.spring.dependency-management"
99

10+
java {
11+
sourceCompatibility = '17'
12+
targetCompatibility = '17'
13+
}
14+
1015
repositories {
1116
maven { url "file:${rootDir}/../docker-test-maven-repository"}
1217
mavenCentral()

spring-boot-tests/spring-boot-integration-tests/spring-boot-server-tests/spring-boot-server-tests-app/build.gradle

+5
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ plugins {
99

1010
apply plugin: "io.spring.dependency-management"
1111

12+
java {
13+
sourceCompatibility = '17'
14+
targetCompatibility = '17'
15+
}
16+
1217
repositories {
1318
maven { url "file:${rootDir}/../test-repository"}
1419
mavenCentral()

0 commit comments

Comments
 (0)