We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 506ee17 commit 9a6f5d4Copy full SHA for 9a6f5d4
instrumentation/spring/spring-boot-autoconfigure/build.gradle.kts
@@ -114,6 +114,9 @@ if (latestDepTest) {
114
}
115
116
117
+val testJavaVersion = gradle.startParameter.projectProperties["testJavaVersion"]?.let(JavaVersion::toVersion)
118
+val testSpring3 = (testJavaVersion == null || testJavaVersion.compareTo(JavaVersion.VERSION_17) >= 0)
119
+
120
testing {
121
suites {
122
val testLogbackAppender by registering(JvmTestSuite::class) {
@@ -204,6 +207,10 @@ tasks {
204
207
options.release.set(17)
205
208
206
209
210
+ named<Test>("testSpring3") {
211
+ isEnabled = testSpring3
212
+ }
213
214
withType(Jar::class) {
215
from(sourceSets["javaSpring3"].output)
216
0 commit comments