Skip to content

Commit c0cf2da

Browse files
committed
undo changes
1 parent 04e40ff commit c0cf2da

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

plugin-maven/src/test/java/com/diffplug/spotless/maven/MavenIntegrationHarness.java

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016-2025 DiffPlug
2+
* Copyright 2016-2024 DiffPlug
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -46,8 +46,6 @@
4646
import com.diffplug.spotless.ResourceHarness;
4747

4848
public class MavenIntegrationHarness extends ResourceHarness {
49-
50-
protected static final String PATH = "src/main/java/test.java";
5149
/**
5250
* To run tests in the IDE, run {@code gradlew :plugin-maven:changelogPrint}, then
5351
* put the last version it prints into {@code SPOTLESS_MAVEN_VERSION_IDE}. From now
@@ -215,15 +213,9 @@ protected void writePom(String[] executions, String[] configuration, String[] de
215213
}
216214

217215
protected MavenRunner mavenRunner() throws IOException {
218-
MavenRunner mavenRunner = MavenRunner.create()
216+
return MavenRunner.create()
219217
.withProjectDir(rootFolder())
220218
.withRunner(runner);
221-
System.getProperties().forEach((key, value) -> {
222-
if (key instanceof String && ((String) key).startsWith("spotless") && value instanceof String) {
223-
mavenRunner.withSystemProperty((String) key, (String) value);
224-
}
225-
});
226-
return mavenRunner;
227219
}
228220

229221
private static ProcessRunner runner;

0 commit comments

Comments
 (0)