Skip to content

Commit

Permalink
Bump dependencies and fix Xpp3DoomBuilder
Browse files Browse the repository at this point in the history
Xpp3Doom no longer supports 'getParent()' codehaus-plexus/plexus-xml@0bcfeb7
  • Loading branch information
abelsromero committed Dec 31, 2023
1 parent e27c64b commit 52448fc
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
14 changes: 13 additions & 1 deletion asciidoctor-maven-commons/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,22 @@
<version>${maven.project.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-api-xml</artifactId>
<version>4.0.0-alpha-10</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-xml-impl</artifactId>
<version>4.0.0-alpha-10</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId>
<version>${plexus.utils.version}</version>
<version>4.0.0</version>
<scope>compile</scope>
</dependency>
</dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ public class Xpp3DoomBuilder {

private Xpp3Dom rootNode;
private Xpp3Dom currentNode;
private Xpp3Dom parentNode;

private Xpp3DoomBuilder(String name) {
rootNode = currentNode = new Xpp3Dom(name);
Expand All @@ -26,6 +27,7 @@ public static Xpp3DoomBuilder logHandler() {
public Xpp3DoomBuilder addChild(String name) {
final Xpp3Dom newNode = new Xpp3Dom(name);
currentNode.addChild(newNode);
parentNode = currentNode;
currentNode = newNode;
return this;
}
Expand All @@ -42,12 +44,13 @@ public Xpp3DoomBuilder addChild(String name, String... values) {
currentNode.addChild(newNode);
}
}
parentNode = currentNode;
currentNode = newNode;
return this;
}

public Xpp3DoomBuilder parent() {
currentNode = currentNode.getParent();
currentNode = parentNode;
return this;
}

Expand Down
2 changes: 1 addition & 1 deletion asciidoctor-maven-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-annotations</artifactId>
<version>${maven.plugin.plugin.version}</version>
<version>3.10.2</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.java.version>11</project.java.version>
<maven.project.version>3.9.1</maven.project.version>
<maven.project.version>4.0.0-alpha-10</maven.project.version>
<asciidoctorj.version>2.5.11</asciidoctorj.version>
<jruby.version>9.4.5.0</jruby.version>
</properties>
Expand Down

0 comments on commit 52448fc

Please sign in to comment.