From aeefaaa6dddc592188d7793153767c8f376fe8b7 Mon Sep 17 00:00:00 2001 From: twogee Date: Wed, 30 Oct 2019 21:14:47 +0100 Subject: [PATCH 1/3] Java 8: clean up build files, bump tool and dependency versions --- build-release.xml | 2 +- build.xml | 54 ++++++++++++++-------------------------------- version.properties | 2 +- 3 files changed, 18 insertions(+), 40 deletions(-) diff --git a/build-release.xml b/build-release.xml index 656a10e14..d9068874b 100644 --- a/build-release.xml +++ b/build-release.xml @@ -480,7 +480,7 @@ - diff --git a/build.xml b/build.xml index fedc0f02d..59122e809 100644 --- a/build.xml +++ b/build.xml @@ -520,7 +520,7 @@ - @@ -595,7 +595,7 @@ - @@ -637,26 +637,9 @@ - - - - - - - - - - - - - - - - - - + + + + - + - - + + diff --git a/version.properties b/version.properties index 8d7c7d17b..96a0e9fd2 100644 --- a/version.properties +++ b/version.properties @@ -32,7 +32,7 @@ target.ivy.bundle.version.qualifier=alpha_ apache-ant.version=1.9.14 ant-contrib.version=1.0b3 bouncycastle.version=1.64 -commons-vfs2.version=2.2 +commons-vfs2.version=2.4.1 hamcrest.version=1.3 httpclient.version=4.5.10 jacoco.version=0.8.5 From 2aaf01bbb706439d225c70786055932c283cda51 Mon Sep 17 00:00:00 2001 From: twogee Date: Wed, 30 Oct 2019 21:15:58 +0100 Subject: [PATCH 2/3] Java 8: migrate to asciidoctor 1.6.2 and fix a typo --- asciidoc/release-notes.adoc | 2 +- .../src/org/apache/ivy/asciidoc/JiraMacro.java | 10 +++------- build-release.xml | 4 ++-- 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/asciidoc/release-notes.adoc b/asciidoc/release-notes.adoc index 80b16a2a5..023574dde 100644 --- a/asciidoc/release-notes.adoc +++ b/asciidoc/release-notes.adoc @@ -74,7 +74,7 @@ Here is the list of people who have contributed source code and documentation up * Gintautas Grigelionis * Xavier Hanin * Nicolas Lalevée -* Jan Matèrne +* Jan Matèrne * Jaikiran Pai * Jon Schneider * Gilles Scokart diff --git a/asciidoc/templates/extensions/src/org/apache/ivy/asciidoc/JiraMacro.java b/asciidoc/templates/extensions/src/org/apache/ivy/asciidoc/JiraMacro.java index d6c13068d..8346ec732 100644 --- a/asciidoc/templates/extensions/src/org/apache/ivy/asciidoc/JiraMacro.java +++ b/asciidoc/templates/extensions/src/org/apache/ivy/asciidoc/JiraMacro.java @@ -20,21 +20,17 @@ import java.util.Map; import java.util.HashMap; -import org.asciidoctor.ast.AbstractBlock; +import org.asciidoctor.ast.ContentNode; import org.asciidoctor.extension.InlineMacroProcessor; public class JiraMacro extends InlineMacroProcessor { - public JiraMacro(String macroName, Map config) { - super(macroName, config); - } - @Override - public String process(AbstractBlock parent, String target, Map attributes) { + public String process(ContentNode parent, String target, Map attributes) { Map options = new HashMap(); options.put("type", ":link"); options.put("target", "https://issues.apache.org/jira/browse/" + target); - return createInline(parent, "anchor", target, attributes, options).convert(); + return createPhraseNode(parent, "anchor", target, attributes, options).convert(); } } diff --git a/build-release.xml b/build-release.xml index d9068874b..06bf388a3 100644 --- a/build-release.xml +++ b/build-release.xml @@ -168,7 +168,7 @@ - + @@ -182,7 +182,7 @@ - + From 5df17dfb26e18f71daa446d7c4ebad0d402a3c2a Mon Sep 17 00:00:00 2001 From: twogee Date: Wed, 30 Oct 2019 23:19:45 +0100 Subject: [PATCH 3/3] Update Checkstyle --- build.xml | 2 +- src/etc/checkstyle/checkstyle-config | 36 +++++++++++++--------------- 2 files changed, 18 insertions(+), 20 deletions(-) diff --git a/build.xml b/build.xml index 59122e809..547b97e81 100644 --- a/build.xml +++ b/build.xml @@ -595,7 +595,7 @@ - diff --git a/src/etc/checkstyle/checkstyle-config b/src/etc/checkstyle/checkstyle-config index 06c739a6a..de90ca82f 100644 --- a/src/etc/checkstyle/checkstyle-config +++ b/src/etc/checkstyle/checkstyle-config @@ -28,6 +28,16 @@ + + + + + + + + + + @@ -36,7 +46,7 @@ - + @@ -60,11 +70,6 @@ - - - - - @@ -121,29 +126,22 @@ - + - - - - - + + + + + - - - - - - -