Skip to content

Commit c440c1f

Browse files
committed
Be more restrictive about which system properties we pass to test tasks
We should only pass system properties starting with `quarkus.test.`. At least until we decide otherwise. This should get the Gradle CI back to green. (cherry picked from commit 4fb743f)
1 parent 4e31624 commit c440c1f

File tree

1 file changed

+3
-3
lines changed
  • devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle

1 file changed

+3
-3
lines changed

devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/QuarkusPlugin.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ public boolean isSatisfiedBy(Task t) {
464464
t.notCompatibleWithConfigurationCache(
465465
"The quarkus-plugin isn't compatible with the configuration cache");
466466

467-
t.setSystemProperties(extractQuarkusSystemProperties());
467+
t.setSystemProperties(extractQuarkusTestSystemProperties());
468468

469469
// Quarkus test configuration action which should be executed before any Quarkus test
470470
// Use anonymous classes in order to leverage task avoidance.
@@ -724,11 +724,11 @@ private Optional<TaskProvider<Task>> getLazyTask(Project project, String name) {
724724
}
725725
}
726726

727-
private static Map<String, Object> extractQuarkusSystemProperties() {
727+
private static Map<String, Object> extractQuarkusTestSystemProperties() {
728728
Properties systemProperties = System.getProperties();
729729
Map<String, Object> quarkusSystemProperties = new HashMap<>();
730730
for (String propertyName : systemProperties.stringPropertyNames()) {
731-
if (!propertyName.startsWith("quarkus.")) {
731+
if (!propertyName.startsWith("quarkus.test.")) {
732732
continue;
733733
}
734734

0 commit comments

Comments
 (0)