From 017db84cb640f1ef6dac17ea851e6b5e4efa6127 Mon Sep 17 00:00:00 2001 From: Taylor Smock Date: Wed, 29 May 2024 14:16:34 -0600 Subject: [PATCH] Use maven instead of ivy for dependency management Signed-off-by: Taylor Smock --- build.xml | 30 +++++++++- ivy.xml | 12 ---- pom.xml | 57 ++++++++++++------- .../maproulette/markdown/SelectParser.java | 6 +- 4 files changed, 68 insertions(+), 37 deletions(-) delete mode 100644 ivy.xml diff --git a/build.xml b/build.xml index ff5953b..2d5fb98 100644 --- a/build.xml +++ b/build.xml @@ -1,5 +1,5 @@ - + @@ -20,7 +20,33 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ivy.xml b/ivy.xml deleted file mode 100644 index 8c57f07..0000000 --- a/ivy.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - diff --git a/pom.xml b/pom.xml index 7ff2d01..414594e 100644 --- a/pom.xml +++ b/pom.xml @@ -17,7 +17,7 @@ org.openstreetmap.josm josm - 18746 + 18905 provided @@ -27,21 +27,21 @@ test - com.github.tomakehurst - wiremock-jre8 - 2.35.0 + org.wiremock + wiremock + 3.6.0 test org.junit.jupiter junit-jupiter-api - 5.9.2 + 5.10.2 test org.junit.jupiter junit-jupiter-params - 5.9.2 + 5.10.2 test @@ -50,28 +50,22 @@ 1.49.a test - - com.google.code.findbugs - jsr305 - 3.0.2 - provided - org.apache.commons commons-jcs3-core - 3.1 + 3.2 provided - javax.json - javax.json-api - 1.1.4 + jakarta.json + jakarta.json-api + 2.1.3 provided org.commonmark commonmark - 0.21.0 + 0.22.0 compile @@ -80,7 +74,7 @@ org.apache.maven.plugins maven-compiler-plugin - 3.10.1 + 3.13.0 17 @@ -88,11 +82,11 @@ com.diffplug.spotless spotless-maven-plugin - 2.30.0 + 2.43.0 - 4.21.0 + 4.21 ${project.basedir}/../00_core_tools/eclipse/formatter.xml @@ -109,6 +103,29 @@ + + org.apache.maven.plugins + maven-enforcer-plugin + 3.4.1 + + + enforce-versions + + enforce + + + + + 3.6.3 + + + 17 + + + + + + \ No newline at end of file diff --git a/src/main/java/org/openstreetmap/josm/plugins/maproulette/markdown/SelectParser.java b/src/main/java/org/openstreetmap/josm/plugins/maproulette/markdown/SelectParser.java index cdd79fa..074dd3c 100644 --- a/src/main/java/org/openstreetmap/josm/plugins/maproulette/markdown/SelectParser.java +++ b/src/main/java/org/openstreetmap/josm/plugins/maproulette/markdown/SelectParser.java @@ -7,7 +7,7 @@ import java.util.TreeMap; import java.util.regex.Pattern; -import org.commonmark.internal.util.Parsing; +import org.commonmark.text.Characters; import org.commonmark.node.AbstractVisitor; import org.commonmark.node.CustomNode; import org.commonmark.node.Node; @@ -82,8 +82,8 @@ private static class SelectNode extends CustomNode { * @param selectBlock The full select block */ SelectNode(String selectBlock) { - final var startDefault = Parsing.find('"', selectBlock, 0) + 1; - final var endDefault = Parsing.find('"', selectBlock, startDefault); + final var startDefault = Characters.find('"', selectBlock, 0) + 1; + final var endDefault = Characters.find('"', selectBlock, startDefault); final var valueMatcher = Pattern.compile("values=\"([^\"]*)").matcher(selectBlock); final var nameMatcher = Pattern.compile("name=\"([^\"]*)").matcher(selectBlock); if (nameMatcher.find()) {