Skip to content

Commit

Permalink
update diff utils
Browse files Browse the repository at this point in the history
  • Loading branch information
xvik committed Nov 26, 2024
1 parent 82e32df commit f435de0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ wrapper {

repositories { mavenLocal(); mavenCentral(); gradlePluginPortal() }
dependencies {
implementation 'io.github.java-diff-utils:java-diff-utils:4.12'
implementation 'io.github.java-diff-utils:java-diff-utils:4.15'

testImplementation('org.spockframework:spock-core:2.3-groovy-3.0') {
exclude group: 'org.codehaus.groovy'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,15 +146,15 @@ POM> Apply default description for maven publication
POM> --------------------------------- Applied direct XML changes for maven publication
\t 16 | <artifactId>javassist</artifactId>
\t 17 | <version>3.16.1-GA</version>
\t 18 | -<scope>runtime<-+<scope>compile<+/scope>
\t 18 | <scope>-runtime-+compile+</scope>
\t
\t 22 | <artifactId>annotations</artifactId>
\t 23 | <version>3.0.0</version>
\t 24 | -<scope>runtime<-+<scope>provided<+/scope>
\t 24 | <scope>-runtime-+provided+</scope>
\t
\t 28 | <artifactId>generics-resolver</artifactId>
\t 29 | <version>2.0.0</version>
\t 30 | -<scope>runtime<-+<scope>compile<+/scope>
\t 30 | <scope>-runtime-+compile+</scope>
\t 31 | + <optional>true</optional>+
\t
\t 38 | </dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ class XmlUtilsTest extends Specification {
<other>vv</other>
</root>
""").replaceAll("\u001B\\[[;\\d]*m", "") == """ 0 | <root>
1 | -<old>dd<-+<some>value2<+/-old>-+some>+
2 | -<some>value<-+<other>vv<+/-some>-+other>+
1 | <-old-+some+>-dd-+value2+</-old-+some+>
2 | <-some-+other+>-value-+vv+</-some-+other+>
"""
}

Expand All @@ -48,8 +48,8 @@ class XmlUtilsTest extends Specification {
<other>vv</other>
</root>
""", '\t').replaceAll("\u001B\\[[;\\d]*m", "") == """\t 0 | <root>
\t 1 | -<old>dd<-+<some>value2<+/-old>-+some>+
\t 2 | -<some>value<-+<other>vv<+/-some>-+other>+"""
\t 1 | <-old-+some+>-dd-+value2+</-old-+some+>
\t 2 | <-some-+other+>-value-+vv+</-some-+other+>"""
}

private Node node(String xml) {
Expand Down

0 comments on commit f435de0

Please sign in to comment.