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 1b39b62 commit 162ae2cCopy full SHA for 162ae2c
spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/it/run-fork/verify.groovy
@@ -1,6 +1,21 @@
1
+import java.lang.reflect.Method;
2
+
3
import static org.junit.Assert.assertTrue
4
5
+def boolean isJava13OrLater() {
6
+ for (Method method : String.class.getMethods()) {
7
+ if (method.getName().equals("stripIndent")) {
8
+ return true;
9
+ }
10
11
+ return false;
12
+}
13
14
def file = new File(basedir, "build.log")
15
assertTrue file.text.contains("I haz been run from '$basedir'")
-assertTrue file.text.contains("JVM argument(s): -Xverify:none -XX:TieredStopAtLevel=1")
-
16
+if (isJava13OrLater()) {
17
+ assertTrue file.text.contains("JVM argument(s): -XX:TieredStopAtLevel=1")
18
19
+else {
20
+ assertTrue file.text.contains("JVM argument(s): -Xverify:none -XX:TieredStopAtLevel=1")
21
0 commit comments