From 700409e16d365b9276289ddb1a9735273bb1954d Mon Sep 17 00:00:00 2001 From: liquidz Date: Fri, 19 Mar 2021 06:09:55 +0900 Subject: [PATCH 1/4] Fix reflection warnings --- src/antq/diff/java.clj | 14 ++++++++++++-- src/antq/ver/java.clj | 10 +++++++++- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/src/antq/diff/java.clj b/src/antq/diff/java.clj index b74703ce..4e3c6b9e 100644 --- a/src/antq/diff/java.clj +++ b/src/antq/diff/java.clj @@ -7,6 +7,13 @@ [antq.util.url :as u.url] [clojure.string :as str]) (:import + (org.eclipse.aether + DefaultRepositorySystemSession + RepositorySystem) + (org.eclipse.aether.artifact + Artifact) + (org.eclipse.aether.repository + RemoteRepository) (org.eclipse.aether.resolution ArtifactRequest))) @@ -24,12 +31,15 @@ [{:keys [name version] :as dep}] (try (let [opts (u.mvn/dep->opts dep) - {:keys [system session artifact remote-repos]} (u.mvn/repository-system name version opts) + {:keys [^RepositorySystem system + ^DefaultRepositorySystemSession session + ^Artifact artifact + remote-repos]} (u.mvn/repository-system name version opts) req (doto (ArtifactRequest.) (.setArtifact artifact) (.setRepositories remote-repos))] (some-> (.resolveArtifact system session req) - (.getRepository) + ^RemoteRepository (.getRepository) (.getUrl))) ;; Skip showing diff URL when fetching repository URL is failed (catch Exception _ nil))) diff --git a/src/antq/ver/java.clj b/src/antq/ver/java.clj index 525dd132..733c42ae 100644 --- a/src/antq/ver/java.clj +++ b/src/antq/ver/java.clj @@ -4,12 +4,20 @@ [antq.ver :as ver] [version-clj.core :as version]) (:import + (org.eclipse.aether + DefaultRepositorySystemSession + RepositorySystem) + (org.eclipse.aether.artifact + Artifact) (org.eclipse.aether.resolution VersionRangeRequest))) (defn get-versions [name opts] - (let [{:keys [system session artifact remote-repos]} (u.mvn/repository-system name "[0,)" opts) + (let [{:keys [^RepositorySystem system + ^DefaultRepositorySystemSession session + ^Artifact artifact + remote-repos]} (u.mvn/repository-system name "[0,)" opts) req (doto (VersionRangeRequest.) (.setArtifact artifact) (.setRepositories remote-repos))] From 0ac594bf691a92ae0e8660afecfea81262cae354 Mon Sep 17 00:00:00 2001 From: liquidz Date: Fri, 19 Mar 2021 06:12:03 +0900 Subject: [PATCH 2/4] Bump rewrite-clj to 1.0.591-alpha --- deps.edn | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deps.edn b/deps.edn index 790749ce..9956cd2a 100644 --- a/deps.edn +++ b/deps.edn @@ -8,7 +8,7 @@ cheshire/cheshire {:mvn/version "5.10.0"} clj-commons/clj-yaml {:mvn/version "0.7.106"} version-clj/version-clj {:mvn/version "2.0.1"} - rewrite-clj/rewrite-clj {:mvn/version "1.0.579-alpha"}} + rewrite-clj/rewrite-clj {:mvn/version "1.0.591-alpha"}} :aliases {:1.8 diff --git a/pom.xml b/pom.xml index 67ed8d62..5cecd83e 100644 --- a/pom.xml +++ b/pom.xml @@ -37,7 +37,7 @@ rewrite-clj rewrite-clj - 1.0.579-alpha + 1.0.591-alpha org.clojure From 74e8513b6ef7ed70a174fb93278c32677a2bfa1d Mon Sep 17 00:00:00 2001 From: liquidz Date: Fri, 19 Mar 2021 06:14:54 +0900 Subject: [PATCH 3/4] Update changelogs --- CHANGELOG.adoc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index 292295ec..541cc1da 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -1,6 +1,13 @@ All notable changes to this project will be documented in this file. This change log follows the conventions of http://keepachangelog.com/[keepachangelog.com]. == Unreleased (dev) +// {{{ +=== Changed +* Bumped rewrite-clj to 1.0.591-alpha. + +=== Fixed +* Fixed some reflection warnings. +// }}} == 0.12.1 (2021-03-17) // {{{ From 51d6144c8dd56ea06eaab2087bd345fac51c05f6 Mon Sep 17 00:00:00 2001 From: liquidz Date: Fri, 19 Mar 2021 06:15:54 +0900 Subject: [PATCH 4/4] ver 0.12.2 --- CHANGELOG.adoc | 2 ++ pom.xml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index 541cc1da..fd66bca0 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -1,6 +1,8 @@ All notable changes to this project will be documented in this file. This change log follows the conventions of http://keepachangelog.com/[keepachangelog.com]. == Unreleased (dev) + +== 0.12.2 (2021-03-19) // {{{ === Changed * Bumped rewrite-clj to 1.0.591-alpha. diff --git a/pom.xml b/pom.xml index 5cecd83e..cefcf8c8 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.github.liquidz antq - 0.12.1 + 0.12.2 antq Point out your outdated dependencies https://github.com/liquidz/antq