This is an automated email from the ASF dual-hosted git repository.
elharo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-artifact-plugin.git
The following commit(s) were added to refs/heads/master by this push:
new 0517f21 Make test platform independent (#240)
0517f21 is described below
commit 0517f2111c7dff1cd02ef781047d62ae616bf102
Author: Elliotte Rusty Harold <[email protected]>
AuthorDate: Thu Nov 5 11:49:08 2026 +0000
Make test platform independent (#240)
* Make test platform independent
* spotless
---
.../buildinfo/NotReproduciblePluginsDocumentationTest.java | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git
a/src/test/java/org/apache/maven/plugins/artifact/buildinfo/NotReproduciblePluginsDocumentationTest.java
b/src/test/java/org/apache/maven/plugins/artifact/buildinfo/NotReproduciblePluginsDocumentationTest.java
index e1d2d6c..b6ab242 100644
---
a/src/test/java/org/apache/maven/plugins/artifact/buildinfo/NotReproduciblePluginsDocumentationTest.java
+++
b/src/test/java/org/apache/maven/plugins/artifact/buildinfo/NotReproduciblePluginsDocumentationTest.java
@@ -30,7 +30,6 @@ import org.junit.jupiter.api.Test;
* adn generated from {@code src/test/resources/plugin-issues.apt}.
*/
class NotReproduciblePluginsDocumentationTest {
- private static final String LS = System.lineSeparator();
@Test
void basic() throws Exception {
@@ -42,10 +41,10 @@ class NotReproduciblePluginsDocumentationTest {
pluginIssuesApt = new File(targetDirectory, pluginIssuesApt.getName());
StringBuilder sb = new StringBuilder(content);
- sb.append(LS);
+ sb.append("\n");
sb.append(
"*---------+-------------------------------------------------------------------+-------+--------------+"
- + LS);
+ + "\n");
sb.append(
"| | <<plugin>>
| <<minimum version>> | <<comments>>");
String groupId = null;
@@ -56,9 +55,9 @@ class NotReproduciblePluginsDocumentationTest {
continue;
}
if (!line.startsWith("#")) {
- sb.append(LS
+ sb.append("\n"
+
"*--------+--------------------------------------------------------------------+-------+--------------+"
- + LS);
+ + "\n");
int index = line.indexOf('=');
String plugin = line.substring(0, index);
String status = line.substring(index + 1);
@@ -98,9 +97,9 @@ class NotReproduciblePluginsDocumentationTest {
}
}
}
- sb.append(LS
+ sb.append("\n"
+
"*----------+------------------------------------------------------------------+-------+--------------+"
- + LS);
+ + "\n");
Files.write(pluginIssuesApt.toPath(),
sb.toString().getBytes(StandardCharsets.UTF_8));
}