aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-scanner-engine
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2019-06-27 11:18:24 +0200
committersonartech <sonartech@sonarsource.com>2019-06-28 08:45:57 +0200
commitb7721297e932179f5e6537d4fbab326c1fdd6c46 (patch)
tree8170580579505582d2388ac16b0be6d902ca9595 /sonar-scanner-engine
parentab644c260ca81e0c7af7620d2ea427ea5c2083b5 (diff)
downloadsonarqube-b7721297e932179f5e6537d4fbab326c1fdd6c46.tar.gz
sonarqube-b7721297e932179f5e6537d4fbab326c1fdd6c46.zip
SONAR-12002 Fail startup of SonarQube server if JRE < 11
Diffstat (limited to 'sonar-scanner-engine')
-rw-r--r--sonar-scanner-engine/src/main/java/org/sonar/scanner/bootstrap/GlobalContainer.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-scanner-engine/src/main/java/org/sonar/scanner/bootstrap/GlobalContainer.java b/sonar-scanner-engine/src/main/java/org/sonar/scanner/bootstrap/GlobalContainer.java
index 0076875aa49..87f69aad2a8 100644
--- a/sonar-scanner-engine/src/main/java/org/sonar/scanner/bootstrap/GlobalContainer.java
+++ b/sonar-scanner-engine/src/main/java/org/sonar/scanner/bootstrap/GlobalContainer.java
@@ -83,7 +83,7 @@ public class GlobalContainer extends ComponentContainer {
try {
String.class.getMethod("isBlank");
} catch (NoSuchMethodException e) {
- throw new IllegalStateException("SonarScanner requires Java 11+ to run");
+ LOG.warn("SonarScanner will require Java 11+ to run starting in SonarQube 8.x");
}
}