From 1a9d89e25523518f84c4a7fdaae45992d1bcb6e2 Mon Sep 17 00:00:00 2001 From: Aaron Bedra Date: Mon, 4 Jun 2012 12:44:48 -0500 Subject: [PATCH 01/52] Updating README to reflect current version. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 442d5d2..031e9d3 100644 --- a/README.md +++ b/README.md @@ -11,12 +11,12 @@ Classpath is available in Maven central. Add it to your Maven project's `pom.xm org.clojure java.classpath - 0.1.0 + 0.2.0 or your leiningen project.clj: - [org.clojure/java.classpath "0.1.0"] + [org.clojure/java.classpath "0.2.0"] Please note the changelog below. From c561c4850abaa569bc970c1fa008641764159889 Mon Sep 17 00:00:00 2001 From: Andy Fingerhut Date: Sun, 28 Oct 2012 16:18:39 -0700 Subject: [PATCH 02/52] CLASSPATH-3: Eliminate one use of reflection in java.classpath Signed-off-by: Stuart Sierra --- src/main/clojure/clojure/java/classpath.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/clojure/clojure/java/classpath.clj b/src/main/clojure/clojure/java/classpath.clj index 4dfe713..01802ea 100644 --- a/src/main/clojure/clojure/java/classpath.clj +++ b/src/main/clojure/clojure/java/classpath.clj @@ -62,7 +62,7 @@ loader-classpath (take-while identity - (iterate #(.getParent %) classloader))))) + (iterate #(.getParent ^ClassLoader %) classloader))))) ([] (classpath (clojure.lang.RT/baseLoader)))) (defn classpath-directories From 0f45c0a6a39584463fe69c08895cf974ed518b14 Mon Sep 17 00:00:00 2001 From: Stuart Sierra Date: Sun, 28 Oct 2012 21:09:03 -0400 Subject: [PATCH 03/52] Update POM: deprecated property, contrib base POM version * POM property 'artifactId' is depracted, replaced with 'project.artifactId' * Clojure contrib parent POM version updated to 0.0.26 --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 426cc38..4f94b25 100644 --- a/pom.xml +++ b/pom.xml @@ -2,12 +2,12 @@ 4.0.0 java.classpath 0.2.1-SNAPSHOT - ${artifactId} + ${project.artifactId} org.clojure pom.contrib - 0.0.21 + 0.0.26 From 5b6a17a268d6e3eb34cf9e690ba0bbb61e9fceb8 Mon Sep 17 00:00:00 2001 From: Tim McCormack Date: Fri, 11 Jan 2013 16:08:01 -0500 Subject: [PATCH 04/52] CLASSPATH-4: Use io/as-file instead of treating URL as file path Signed-off-by: Stuart Sierra --- src/main/clojure/clojure/java/classpath.clj | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/clojure/clojure/java/classpath.clj b/src/main/clojure/clojure/java/classpath.clj index 01802ea..21328ac 100644 --- a/src/main/clojure/clojure/java/classpath.clj +++ b/src/main/clojure/clojure/java/classpath.clj @@ -50,9 +50,7 @@ "Returns a sequence of File paths from a classloader." [loader] (when (instance? java.net.URLClassLoader loader) - (map - #(java.io.File. (.getPath ^java.net.URL %)) - (.getURLs ^java.net.URLClassLoader loader)))) + (map io/as-file (.getURLs ^java.net.URLClassLoader loader)))) (defn classpath "Returns a sequence of File objects of the elements on the classpath." From 94d36fca11f6540e7507ab571ee5e0caa4aa24c4 Mon Sep 17 00:00:00 2001 From: "Hudson @ build.clojure.org" Date: Fri, 18 Jan 2013 09:00:35 -0600 Subject: [PATCH 05/52] [maven-release-plugin] prepare release java.classpath-0.2.1 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 4f94b25..414ba85 100644 --- a/pom.xml +++ b/pom.xml @@ -1,7 +1,7 @@ 4.0.0 java.classpath - 0.2.1-SNAPSHOT + 0.2.1 ${project.artifactId} From c6c5ee22d9229b2c93f2f59c7a47e53919e2ee97 Mon Sep 17 00:00:00 2001 From: "Hudson @ build.clojure.org" Date: Fri, 18 Jan 2013 09:00:35 -0600 Subject: [PATCH 06/52] [maven-release-plugin] prepare for next development iteration --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 414ba85..2565b8e 100644 --- a/pom.xml +++ b/pom.xml @@ -1,7 +1,7 @@ 4.0.0 java.classpath - 0.2.1 + 0.2.2-SNAPSHOT ${project.artifactId} From c468d14c144f95d03dba5692a564b8927cba2cd4 Mon Sep 17 00:00:00 2001 From: Sean Corfield Date: Sat, 7 Sep 2013 14:16:26 -0700 Subject: [PATCH 07/52] Update parent pom to 0.1.2 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 2565b8e..e283ebe 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ org.clojure pom.contrib - 0.0.26 + 0.1.2 From 0b3401cc97fcd68b7d095312e49ed0952c1a1a04 Mon Sep 17 00:00:00 2001 From: Stuart Sierra Date: Tue, 7 Jan 2014 17:51:43 -0500 Subject: [PATCH 08/52] CLASSPATH-5: extensible protocol to other classloaders Original patch by Jim Crossley --- src/main/clojure/clojure/java/classpath.clj | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/main/clojure/clojure/java/classpath.clj b/src/main/clojure/clojure/java/classpath.clj index 21328ac..e96c2d4 100644 --- a/src/main/clojure/clojure/java/classpath.clj +++ b/src/main/clojure/clojure/java/classpath.clj @@ -22,6 +22,15 @@ (java.util.jar JarFile JarEntry) (java.net URL URLClassLoader))) +(defprotocol URLClasspath + (urls [loader] + "Returns a sequence of java.net.URL objects representing locations + which this classloader will search for classes and resources.")) + +(extend-type java.net.URLClassLoader + URLClasspath + (urls [loader] (seq (.getURLs loader)))) + (defn jar-file? "Returns true if file is a normal file with a .jar or .JAR extension." [f] @@ -49,8 +58,7 @@ (defn loader-classpath "Returns a sequence of File paths from a classloader." [loader] - (when (instance? java.net.URLClassLoader loader) - (map io/as-file (.getURLs ^java.net.URLClassLoader loader)))) + (map io/as-file (urls loader))) (defn classpath "Returns a sequence of File objects of the elements on the classpath." From a78ac60522bef864c5d22aab8eb89091ccb40222 Mon Sep 17 00:00:00 2001 From: Stuart Sierra Date: Wed, 8 Jan 2014 08:52:49 -0500 Subject: [PATCH 09/52] README: add release info, usage, change log --- README.md | 107 +++++++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 97 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 031e9d3..dcfba2d 100644 --- a/README.md +++ b/README.md @@ -1,27 +1,114 @@ # java.classpath +Examine the Java classpath from Clojure programs. -## Usage +## Releases and Dependency Information + +Latest stable release is [0.2.1](https://github.com/clojure/java.classpath/tree/java.classpath-0.2.1) -### "Installation" +[Leiningen](http://leiningen.org/) dependency information: -Classpath is available in Maven central. Add it to your Maven project's `pom.xml`: + [org.clojure/java.classpath "0.2.1"] + +[Maven](http://maven.apache.org/) dependency information: org.clojure java.classpath - 0.2.0 + 0.2.1 -or your leiningen project.clj: +[Gradle](http://www.gradle.org/) dependency information: + + compile "org.clojure:java.classpath:0.2.1" + +Other versions: + +* [All Released Versions](http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.clojure%22%20AND%20a%3A%22java.classpath%22) + +* [Development SNAPSHOTs](https://oss.sonatype.org/index.html#nexus-search;gav~org.clojure~java.classpath~~~) + +* [How to get Development SNAPSHOTs](http://dev.clojure.org/display/doc/Maven+Settings+and+Repositories) + +Releases are published to the [Maven Central Repository](http://search.maven.org/) + +Development SNAPSHOTs are published to the [Sonatype Open-Source Repository](https://oss.sonatype.org/) + + +## Usage + +See the [API Documentation](http://clojure.github.com/java.classpath/) + +Examples: + +```clojure +(require '[clojure.java.classpath :as cp]) + +(cp/classpath) +;; (# # ...) +``` + +The `classpath` function returns a sequence of java.io.File objects +representing all JAR files and directories on the classpath. It +defaults to using the classpath of Clojure's base +[ClassLoader](http://docs.oracle.com/javase/7/docs/api/java/lang/ClassLoader.html). + +`classpath` also takes a ClassLoader as an optional argument. + +Alternatively, the `system-classpath` function returns a sequence of +java.io.File objects parsed from the `java.class.path` Java system +property. + +If you are using an environment which provides its own ClassLoader +implementation, such as a Java application server, you can extend the +protocol `URLClasspath` to support it. Refer to the source for +details. + + +## Change Log + +* Development version 0.2.2-SNAPSHOT, current Git `master` branch + * Enhancement [CLASSPATH-5]: extensible protocol to other classloaders +* Release 0.2.1 on 2013-Jan-18 + * Fix [CLASSPATH-4]: Use io/as-file instead of treating URL as file path + * Fix [CLASSPATH-3]: Eliminate reflection +* Release 0.2.0 on 2011-Sep-15 + * Fix [CLASSPATH-1] & [CLASSPATH-2]: return classpath from all parent classloaders +* Release 0.1.2 on 2011-Sep-06 + * Use both java.class.path and Clojure's ClassLoader +* Release 0.1.1 on 2011-Apr-28 + * Eliminate relection +* Release 0.1.0 on 2011-Apr-22 + * Migrated from `clojure.contrib.classpath` and `clojure.contrib.jar` + in legacy [clojure-contrib](https://github.com/clojure/clojure-contrib) + +[CLASSPATH-5]: http://dev.clojure.org/jira/browse/CLASSPATH-5 +[CLASSPATH-4]: http://dev.clojure.org/jira/browse/CLASSPATH-4 +[CLASSPATH-3]: http://dev.clojure.org/jira/browse/CLASSPATH-3 +[CLASSPATH-2]: http://dev.clojure.org/jira/browse/CLASSPATH-2 +[CLASSPATH-1]: http://dev.clojure.org/jira/browse/CLASSPATH-1 + + +## Developer Information + +* [GitHub project](https://github.com/clojure/java.classpath) + +* [Bug Tracker](http://dev.clojure.org/jira/browse/CLASSPATH) + +* [Continuous Integration](http://build.clojure.org/job/java.classpath/) - [org.clojure/java.classpath "0.2.0"] +* [Compatibility Test Matrix](http://build.clojure.org/job/java.classpath-test-matrix/) -Please note the changelog below. -## License -Copyright Rich Hickey, Stuart Sierra, and contributors. +## Copyright and License -Licensed under the EPL. (See the file epl.html.) +Copyright (c) 2013 Rich Hickey, Stuart Sierra, and contributors. All +rights reserved. The use and distribution terms for this software are +covered by the Eclipse Public License 1.0 +(http://opensource.org/licenses/eclipse-1.0.php) which can be found in +the file epl.html at the root of this distribution. By using this +software in any fashion, you are agreeing to be bound by the terms of +this license. You must not remove this notice, or any other, from this +software. From 6e2566b20705a7a4d57121b5912e6cea59811823 Mon Sep 17 00:00:00 2001 From: Stuart Sierra Date: Fri, 10 Jan 2014 12:19:34 -0500 Subject: [PATCH 10/52] README: add links to releas tags & contributing instructions --- README.md | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index dcfba2d..03162a2 100644 --- a/README.md +++ b/README.md @@ -5,13 +5,13 @@ Examine the Java classpath from Clojure programs. ## Releases and Dependency Information -Latest stable release is [0.2.1](https://github.com/clojure/java.classpath/tree/java.classpath-0.2.1) +Latest stable release is [0.2.1] -[Leiningen](http://leiningen.org/) dependency information: +[Leiningen] dependency information: [org.clojure/java.classpath "0.2.1"] -[Maven](http://maven.apache.org/) dependency information: +[Maven] dependency information: org.clojure @@ -19,10 +19,14 @@ Latest stable release is [0.2.1](https://github.com/clojure/java.classpath/tree/ 0.2.1 -[Gradle](http://www.gradle.org/) dependency information: +[Gradle] dependency information: compile "org.clojure:java.classpath:0.2.1" +[Leiningen]: http://leiningen.org/ +[Maven]: http://maven.apache.org/ +[Gradle]: http://www.gradle.org/ + Other versions: * [All Released Versions](http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.clojure%22%20AND%20a%3A%22java.classpath%22) @@ -70,16 +74,16 @@ details. * Development version 0.2.2-SNAPSHOT, current Git `master` branch * Enhancement [CLASSPATH-5]: extensible protocol to other classloaders -* Release 0.2.1 on 2013-Jan-18 +* Release [0.2.1] on 2013-Jan-18 * Fix [CLASSPATH-4]: Use io/as-file instead of treating URL as file path * Fix [CLASSPATH-3]: Eliminate reflection -* Release 0.2.0 on 2011-Sep-15 +* Release [0.2.0] on 2011-Sep-15 * Fix [CLASSPATH-1] & [CLASSPATH-2]: return classpath from all parent classloaders -* Release 0.1.2 on 2011-Sep-06 +* Release [0.1.2] on 2011-Sep-06 * Use both java.class.path and Clojure's ClassLoader -* Release 0.1.1 on 2011-Apr-28 +* Release [0.1.1] on 2011-Apr-28 * Eliminate relection -* Release 0.1.0 on 2011-Apr-22 +* Release [0.1.0] on 2011-Apr-22 * Migrated from `clojure.contrib.classpath` and `clojure.contrib.jar` in legacy [clojure-contrib](https://github.com/clojure/clojure-contrib) @@ -89,11 +93,19 @@ details. [CLASSPATH-2]: http://dev.clojure.org/jira/browse/CLASSPATH-2 [CLASSPATH-1]: http://dev.clojure.org/jira/browse/CLASSPATH-1 +[0.2.1]: https://github.com/clojure/java.classpath/tree/java.classpath-0.2.1 +[0.2.0]: https://github.com/clojure/java.classpath/tree/java.classpath-0.2.0 +[0.1.2]: https://github.com/clojure/java.classpath/tree/java.classpath-0.1.2 +[0.1.1]: https://github.com/clojure/java.classpath/tree/java.classpath-0.1.1 +[0.1.0]: https://github.com/clojure/java.classpath/tree/java.classpath-0.1.0 + ## Developer Information * [GitHub project](https://github.com/clojure/java.classpath) +* [How to contribute](http://dev.clojure.org/display/community/Contributing) + * [Bug Tracker](http://dev.clojure.org/jira/browse/CLASSPATH) * [Continuous Integration](http://build.clojure.org/job/java.classpath/) From dab86a2c59acf32cfe6b7fe13bd877274ca998ef Mon Sep 17 00:00:00 2001 From: Stuart Sierra Date: Fri, 10 Jan 2014 12:23:56 -0500 Subject: [PATCH 11/52] Update README for 0.2.2 release --- README.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 03162a2..5512406 100644 --- a/README.md +++ b/README.md @@ -5,23 +5,23 @@ Examine the Java classpath from Clojure programs. ## Releases and Dependency Information -Latest stable release is [0.2.1] +Latest stable release is [0.2.2] [Leiningen] dependency information: - [org.clojure/java.classpath "0.2.1"] + [org.clojure/java.classpath "0.2.2"] [Maven] dependency information: org.clojure java.classpath - 0.2.1 + 0.2.2 [Gradle] dependency information: - compile "org.clojure:java.classpath:0.2.1" + compile "org.clojure:java.classpath:0.2.2" [Leiningen]: http://leiningen.org/ [Maven]: http://maven.apache.org/ @@ -72,7 +72,8 @@ details. ## Change Log -* Development version 0.2.2-SNAPSHOT, current Git `master` branch +* Development version 0.2.3-SNAPSHOT, current Git `master` branch +* Release [0.2.2] on 2014-Jan-10 * Enhancement [CLASSPATH-5]: extensible protocol to other classloaders * Release [0.2.1] on 2013-Jan-18 * Fix [CLASSPATH-4]: Use io/as-file instead of treating URL as file path From e221725032e8b96b84c93cd47f216da2400c53c0 Mon Sep 17 00:00:00 2001 From: "Hudson @ build.clojure.org" Date: Fri, 10 Jan 2014 11:24:28 -0600 Subject: [PATCH 12/52] [maven-release-plugin] prepare release java.classpath-0.2.2 --- pom.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index e283ebe..9bebed3 100644 --- a/pom.xml +++ b/pom.xml @@ -1,7 +1,7 @@ 4.0.0 java.classpath - 0.2.2-SNAPSHOT + 0.2.2 ${project.artifactId} @@ -20,5 +20,6 @@ scm:git:git@github.com:clojure/java.classpath.git scm:git:git@github.com:clojure/java.classpath.git git@github.com:clojure/java.classpath.git + java.classpath-0.2.2 From 94cc5f2de883dcf37a2e84cf048ace7a2859ca28 Mon Sep 17 00:00:00 2001 From: "Hudson @ build.clojure.org" Date: Fri, 10 Jan 2014 11:24:28 -0600 Subject: [PATCH 13/52] [maven-release-plugin] prepare for next development iteration --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 9bebed3..da32692 100644 --- a/pom.xml +++ b/pom.xml @@ -1,7 +1,7 @@ 4.0.0 java.classpath - 0.2.2 + 0.2.3-SNAPSHOT ${project.artifactId} @@ -20,6 +20,6 @@ scm:git:git@github.com:clojure/java.classpath.git scm:git:git@github.com:clojure/java.classpath.git git@github.com:clojure/java.classpath.git - java.classpath-0.2.2 + HEAD From 52fda9ee88f15615f52928ff2f154e441d59fb19 Mon Sep 17 00:00:00 2001 From: Stuart Sierra Date: Fri, 10 Jan 2014 12:25:34 -0500 Subject: [PATCH 14/52] README: add link to 0.2.2 release tag --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 5512406..0550fe0 100644 --- a/README.md +++ b/README.md @@ -94,6 +94,7 @@ details. [CLASSPATH-2]: http://dev.clojure.org/jira/browse/CLASSPATH-2 [CLASSPATH-1]: http://dev.clojure.org/jira/browse/CLASSPATH-1 +[0.2.2]: https://github.com/clojure/java.classpath/tree/java.classpath-0.2.2 [0.2.1]: https://github.com/clojure/java.classpath/tree/java.classpath-0.2.1 [0.2.0]: https://github.com/clojure/java.classpath/tree/java.classpath-0.2.0 [0.1.2]: https://github.com/clojure/java.classpath/tree/java.classpath-0.1.2 From 6c741c9ca586b4479f63ca18978119cb953a4f46 Mon Sep 17 00:00:00 2001 From: Sean Corfield Date: Tue, 20 May 2014 19:24:36 -0700 Subject: [PATCH 15/52] Add CONTRIBUTING.md --- CONTRIBUTING.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 CONTRIBUTING.md diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..021a2ea --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,14 @@ +This is a [Clojure contrib] project. + +Under the Clojure contrib [guidelines], this project cannot accept +pull requests. All patches must be submitted via [JIRA]. + +See [Contributing] and the [FAQ] on the Clojure development [wiki] for +more information on how to contribute. + +[Clojure contrib]: http://dev.clojure.org/display/doc/Clojure+Contrib +[Contributing]: http://dev.clojure.org/display/community/Contributing +[FAQ]: http://dev.clojure.org/display/community/Contributing+FAQ +[JIRA]: http://dev.clojure.org/jira/browse/CLASSPATH +[guidelines]: http://dev.clojure.org/display/community/Guidelines+for+Clojure+Contrib+committers +[wiki]: http://dev.clojure.org/ From 39854b7f9751f99b49a0644aa611d18f0c07dfe6 Mon Sep 17 00:00:00 2001 From: Stuart Sierra Date: Sat, 24 Oct 2015 12:35:31 -0400 Subject: [PATCH 16/52] CLASSPATH-7 Check loader satisfies URLClasspath In some environments, the classloader hierarchy may contain classloaders which do not inherit from java.net.URLClassLoader and which cannot be extended to the clojure.java.classpath/URLClasspath protocol. To prevent exceptions in these environments, check that classloaders satisfy the protocol before calling .urls. See http://dev.clojure.org/jira/browse/CLASSPATH-7 --- src/main/clojure/clojure/java/classpath.clj | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main/clojure/clojure/java/classpath.clj b/src/main/clojure/clojure/java/classpath.clj index e96c2d4..adcf2de 100644 --- a/src/main/clojure/clojure/java/classpath.clj +++ b/src/main/clojure/clojure/java/classpath.clj @@ -31,6 +31,14 @@ URLClasspath (urls [loader] (seq (.getURLs loader)))) +(defn get-urls + "Returns a sequence of java.net.URL objects used by this + classloader, or nil if the classloader does not sastify the + URLClasspath protocol." + [loader] + (when (satisfies? URLClasspath loader) + (urls loader))) + (defn jar-file? "Returns true if file is a normal file with a .jar or .JAR extension." [f] @@ -58,7 +66,7 @@ (defn loader-classpath "Returns a sequence of File paths from a classloader." [loader] - (map io/as-file (urls loader))) + (map io/as-file (get-urls loader))) (defn classpath "Returns a sequence of File objects of the elements on the classpath." From 9ea68a9b56c01adc6b5516d951703f6421bc4c48 Mon Sep 17 00:00:00 2001 From: Stuart Sierra Date: Fri, 6 Nov 2015 14:19:43 -0500 Subject: [PATCH 17/52] Split out change log from README --- CHANGES.md | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ README.md | 34 ++------------------------------- 2 files changed, 58 insertions(+), 32 deletions(-) create mode 100644 CHANGES.md diff --git a/CHANGES.md b/CHANGES.md new file mode 100644 index 0000000..11e8e76 --- /dev/null +++ b/CHANGES.md @@ -0,0 +1,56 @@ +# java.classpath Change Log + + +## 0.2.x series + +Latest development version is 0.2.3-SNAPSHOT, current Git `master` branch + +### Release [0.2.2] on 2014-Jan-10 + +* Enhancement [CLASSPATH-5]: extensible protocol to other classloaders + +### Release [0.2.1] on 2013-Jan-18 + +* Fix [CLASSPATH-4]: Use io/as-file instead of treating URL as file path + +* Fix [CLASSPATH-3]: Eliminate reflection + +### Release [0.2.0] on 2011-Sep-15 + +* Fix [CLASSPATH-1] & [CLASSPATH-2]: return classpath from all parent classloaders + + + +## 0.1.x series + +### Release [0.1.2] on 2011-Sep-06 + +* Use both java.class.path and Clojure's ClassLoader + +### Release [0.1.1] on 2011-Apr-28 + +* Eliminate relection + +### Release [0.1.0] on 2011-Apr-22 + +* Migrated from `clojure.contrib.classpath` and `clojure.contrib.jar` + in legacy [clojure-contrib](https://github.com/clojure/clojure-contrib) + + + +[CLASSPATH-7]: http://dev.clojure.org/jira/browse/CLASSPATH-7 +[CLASSPATH-6]: http://dev.clojure.org/jira/browse/CLASSPATH-6 +[CLASSPATH-5]: http://dev.clojure.org/jira/browse/CLASSPATH-5 +[CLASSPATH-4]: http://dev.clojure.org/jira/browse/CLASSPATH-4 +[CLASSPATH-3]: http://dev.clojure.org/jira/browse/CLASSPATH-3 +[CLASSPATH-2]: http://dev.clojure.org/jira/browse/CLASSPATH-2 +[CLASSPATH-1]: http://dev.clojure.org/jira/browse/CLASSPATH-1 + +[0.2.3]: https://github.com/clojure/java.classpath/tree/java.classpath-0.2.3 +[0.2.2]: https://github.com/clojure/java.classpath/tree/java.classpath-0.2.2 +[0.2.1]: https://github.com/clojure/java.classpath/tree/java.classpath-0.2.1 +[0.2.0]: https://github.com/clojure/java.classpath/tree/java.classpath-0.2.0 +[0.1.2]: https://github.com/clojure/java.classpath/tree/java.classpath-0.1.2 +[0.1.1]: https://github.com/clojure/java.classpath/tree/java.classpath-0.1.1 +[0.1.0]: https://github.com/clojure/java.classpath/tree/java.classpath-0.1.0 + diff --git a/README.md b/README.md index 0550fe0..beb7b71 100644 --- a/README.md +++ b/README.md @@ -70,40 +70,10 @@ protocol `URLClasspath` to support it. Refer to the source for details. -## Change Log - -* Development version 0.2.3-SNAPSHOT, current Git `master` branch -* Release [0.2.2] on 2014-Jan-10 - * Enhancement [CLASSPATH-5]: extensible protocol to other classloaders -* Release [0.2.1] on 2013-Jan-18 - * Fix [CLASSPATH-4]: Use io/as-file instead of treating URL as file path - * Fix [CLASSPATH-3]: Eliminate reflection -* Release [0.2.0] on 2011-Sep-15 - * Fix [CLASSPATH-1] & [CLASSPATH-2]: return classpath from all parent classloaders -* Release [0.1.2] on 2011-Sep-06 - * Use both java.class.path and Clojure's ClassLoader -* Release [0.1.1] on 2011-Apr-28 - * Eliminate relection -* Release [0.1.0] on 2011-Apr-22 - * Migrated from `clojure.contrib.classpath` and `clojure.contrib.jar` - in legacy [clojure-contrib](https://github.com/clojure/clojure-contrib) - -[CLASSPATH-5]: http://dev.clojure.org/jira/browse/CLASSPATH-5 -[CLASSPATH-4]: http://dev.clojure.org/jira/browse/CLASSPATH-4 -[CLASSPATH-3]: http://dev.clojure.org/jira/browse/CLASSPATH-3 -[CLASSPATH-2]: http://dev.clojure.org/jira/browse/CLASSPATH-2 -[CLASSPATH-1]: http://dev.clojure.org/jira/browse/CLASSPATH-1 - -[0.2.2]: https://github.com/clojure/java.classpath/tree/java.classpath-0.2.2 -[0.2.1]: https://github.com/clojure/java.classpath/tree/java.classpath-0.2.1 -[0.2.0]: https://github.com/clojure/java.classpath/tree/java.classpath-0.2.0 -[0.1.2]: https://github.com/clojure/java.classpath/tree/java.classpath-0.1.2 -[0.1.1]: https://github.com/clojure/java.classpath/tree/java.classpath-0.1.1 -[0.1.0]: https://github.com/clojure/java.classpath/tree/java.classpath-0.1.0 - - ## Developer Information +* [Change log](CHANGES.md) + * [GitHub project](https://github.com/clojure/java.classpath) * [How to contribute](http://dev.clojure.org/display/community/Contributing) From 6e0f2bf88cbe1063aa891ac2470f8fe2fd3a027c Mon Sep 17 00:00:00 2001 From: Stuart Sierra Date: Fri, 6 Nov 2015 14:22:50 -0500 Subject: [PATCH 18/52] Prepare README/CHANGES for 0.2.3 release --- CHANGES.md | 6 +++++- README.md | 8 ++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 11e8e76..437a93c 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -3,7 +3,11 @@ ## 0.2.x series -Latest development version is 0.2.3-SNAPSHOT, current Git `master` branch +Latest development version is 0.2.4-SNAPSHOT, current Git `master` branch + +### Release [0.2.3] on 2015-Nov-06 + +* Fix [CLASSPATH-7]: ignore classloaders which do not implement URLClasspath ### Release [0.2.2] on 2014-Jan-10 diff --git a/README.md b/README.md index beb7b71..3a303f7 100644 --- a/README.md +++ b/README.md @@ -5,23 +5,23 @@ Examine the Java classpath from Clojure programs. ## Releases and Dependency Information -Latest stable release is [0.2.2] +Latest stable release is 0.2.3 [Leiningen] dependency information: - [org.clojure/java.classpath "0.2.2"] + [org.clojure/java.classpath "0.2.3"] [Maven] dependency information: org.clojure java.classpath - 0.2.2 + 0.2.3 [Gradle] dependency information: - compile "org.clojure:java.classpath:0.2.2" + compile "org.clojure:java.classpath:0.2.3" [Leiningen]: http://leiningen.org/ [Maven]: http://maven.apache.org/ From 7f8416a7c08ad948b7d94f36dee148de24eb4bc7 Mon Sep 17 00:00:00 2001 From: "Hudson @ build.clojure.org" Date: Fri, 6 Nov 2015 13:23:41 -0600 Subject: [PATCH 19/52] [maven-release-plugin] prepare release java.classpath-0.2.3 --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index da32692..32ac3df 100644 --- a/pom.xml +++ b/pom.xml @@ -1,7 +1,7 @@ 4.0.0 java.classpath - 0.2.3-SNAPSHOT + 0.2.3 ${project.artifactId} @@ -20,6 +20,6 @@ scm:git:git@github.com:clojure/java.classpath.git scm:git:git@github.com:clojure/java.classpath.git git@github.com:clojure/java.classpath.git - HEAD + java.classpath-0.2.3 From b8b619d27c8ce44658216d84d6e1b33a9505ae12 Mon Sep 17 00:00:00 2001 From: "Hudson @ build.clojure.org" Date: Fri, 6 Nov 2015 13:23:42 -0600 Subject: [PATCH 20/52] [maven-release-plugin] prepare for next development iteration --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 32ac3df..80391f6 100644 --- a/pom.xml +++ b/pom.xml @@ -1,7 +1,7 @@ 4.0.0 java.classpath - 0.2.3 + 0.2.4-SNAPSHOT ${project.artifactId} @@ -20,6 +20,6 @@ scm:git:git@github.com:clojure/java.classpath.git scm:git:git@github.com:clojure/java.classpath.git git@github.com:clojure/java.classpath.git - java.classpath-0.2.3 + HEAD From 23e1126893264d11834f3b868a7969e923b7f03d Mon Sep 17 00:00:00 2001 From: puredanger Date: Mon, 24 Oct 2016 15:40:41 -0500 Subject: [PATCH 21/52] exclude epl.html from language detection --- .gitattributes | 1 + 1 file changed, 1 insertion(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..375901d --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +epl.html linguist-documentation From d61292c3ecedae7f5665191dac53ec2945f8c861 Mon Sep 17 00:00:00 2001 From: Alex Miller Date: Tue, 13 Dec 2016 09:03:45 -0600 Subject: [PATCH 22/52] Update parent pom version --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 80391f6..1f166fa 100644 --- a/pom.xml +++ b/pom.xml @@ -2,12 +2,12 @@ 4.0.0 java.classpath 0.2.4-SNAPSHOT - ${project.artifactId} + java.classpath org.clojure pom.contrib - 0.1.2 + 0.2.0 From 66f1feb1797e57dd2500e45cd023dd8638f8fd0e Mon Sep 17 00:00:00 2001 From: Alex Miller Date: Tue, 21 Mar 2017 22:03:43 -0500 Subject: [PATCH 23/52] Update parent pom --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 1f166fa..f017eec 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ org.clojure pom.contrib - 0.2.0 + 0.2.2 From 0e87f2cfe9e691ab13b698e78a7b2d882613f10a Mon Sep 17 00:00:00 2001 From: Alex Miller Date: Fri, 5 Jan 2018 11:35:48 -0600 Subject: [PATCH 24/52] add deps.edn --- .gitignore | 1 + deps.edn | 1 + 2 files changed, 2 insertions(+) create mode 100644 deps.edn diff --git a/.gitignore b/.gitignore index eb5a316..5818281 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ target +.cpcache/ diff --git a/deps.edn b/deps.edn new file mode 100644 index 0000000..3ffcee7 --- /dev/null +++ b/deps.edn @@ -0,0 +1 @@ +{:paths ["src/main/clojure"]} From cdb35c0e738cc601f34e686a8046752bf1a8692b Mon Sep 17 00:00:00 2001 From: Stuart Sierra Date: Sat, 10 Mar 2018 11:56:08 -0500 Subject: [PATCH 25/52] Set development version to 0.3.0-SNAPSHOT In preparation for fixes related to Java 9: https://dev.clojure.org/jira/browse/CLASSPATH-8 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index f017eec..8cd186e 100644 --- a/pom.xml +++ b/pom.xml @@ -1,7 +1,7 @@ 4.0.0 java.classpath - 0.2.4-SNAPSHOT + 0.3.0-SNAPSHOT java.classpath From c10fc96a8ff98db4eb925a13ef0f5135ad8dacc6 Mon Sep 17 00:00:00 2001 From: Stuart Sierra Date: Sat, 10 Mar 2018 12:00:29 -0500 Subject: [PATCH 26/52] CLASSPATH-8: fallback to java.class.path on Java 9 Starting with Java 9, the default class loader is no longer an instance of URLClassLoader, so `classpath` returned an empty sequence. The strategy of using URLClassLoader started with release [0.2.0] to accommodate Java application containers (see [CLASSPATH-1] and [CLASSPATH-2]). After this change, application containers based on URLClassLoader should still work as expected. On Java 9 without an application container, it appears that the `java.class.path` system property is the only way to get the classpath. While this is essentially a bugfix for Java 9 compatibility, it is a change in behavior, hence the version change from 0.2 to 0.3. --- src/main/clojure/clojure/java/classpath.clj | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/main/clojure/clojure/java/classpath.clj b/src/main/clojure/clojure/java/classpath.clj index adcf2de..67a9bd5 100644 --- a/src/main/clojure/clojure/java/classpath.clj +++ b/src/main/clojure/clojure/java/classpath.clj @@ -69,7 +69,12 @@ (map io/as-file (get-urls loader))) (defn classpath - "Returns a sequence of File objects of the elements on the classpath." + "Returns a sequence of File objects of the elements on the + classpath. Defaults to searching for instances of + java.net.URLClassLoader in the classloader hierarchy above + clojure.lang.RT/baseLoader or the given classloader. If no + URLClassloader can be found, as on Java 9, falls back to the + 'java.class'path' system property." ([classloader] (distinct (mapcat @@ -77,7 +82,9 @@ (take-while identity (iterate #(.getParent ^ClassLoader %) classloader))))) - ([] (classpath (clojure.lang.RT/baseLoader)))) + ([] + (or (seq (classpath (clojure.lang.RT/baseLoader))) + (system-classpath)))) (defn classpath-directories "Returns a sequence of File objects for the directories on classpath." From 1be43c53359c1d73536f1379ecbb5703713e5485 Mon Sep 17 00:00:00 2001 From: Stuart Sierra Date: Sat, 10 Mar 2018 12:39:46 -0500 Subject: [PATCH 27/52] CHANGES: Update for 0.3.0-SNAPSHOT and CLASSPATH-8 --- CHANGES.md | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 437a93c..10ece50 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,9 +1,26 @@ # java.classpath Change Log +## 0.3.x series -## 0.2.x series +### 0.3.0-SNAPSHOT, current development version + +* Fix [CLASSPATH-8]: empty classpath returned on Java 9. + +Starting with Java 9, the default class loader is no longer an +instance of URLClassLoader, so `classpath` returned an empty sequence. +The strategy of using URLClassLoader started with release [0.2.0] to +accommodate Java application containers (see [CLASSPATH-1] and +[CLASSPATH-2]). After this change, application containers based on +URLClassLoader should still work as expected. -Latest development version is 0.2.4-SNAPSHOT, current Git `master` branch +On Java 9 without an application container, it appears that the +`java.class.path` system property is the only way to get the +classpath. While this is essentially a bugfix for Java 9 +compatibility, it is a change in behavior, hence the version change +from 0.2 to 0.3. + + +## 0.2.x series ### Release [0.2.3] on 2015-Nov-06 From 16a72c15f6dde9af1e2674dc9e0f196ad60b06d1 Mon Sep 17 00:00:00 2001 From: Stuart Sierra Date: Sun, 6 May 2018 13:47:59 -0400 Subject: [PATCH 28/52] Update CHANGES, README for 0.3.0 release --- CHANGES.md | 4 +++- README.md | 13 +++++++++---- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 10ece50..8959ea7 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -2,7 +2,7 @@ ## 0.3.x series -### 0.3.0-SNAPSHOT, current development version +### Release [0.3.0] on 2018-May-06 * Fix [CLASSPATH-8]: empty classpath returned on Java 9. @@ -59,6 +59,7 @@ from 0.2 to 0.3. +[CLASSPATH-8]: http://dev.clojure.org/jira/browse/CLASSPATH-8 [CLASSPATH-7]: http://dev.clojure.org/jira/browse/CLASSPATH-7 [CLASSPATH-6]: http://dev.clojure.org/jira/browse/CLASSPATH-6 [CLASSPATH-5]: http://dev.clojure.org/jira/browse/CLASSPATH-5 @@ -67,6 +68,7 @@ from 0.2 to 0.3. [CLASSPATH-2]: http://dev.clojure.org/jira/browse/CLASSPATH-2 [CLASSPATH-1]: http://dev.clojure.org/jira/browse/CLASSPATH-1 +[0.3.0]: https://github.com/clojure/java.classpath/tree/java.classpath-0.3.0 [0.2.3]: https://github.com/clojure/java.classpath/tree/java.classpath-0.2.3 [0.2.2]: https://github.com/clojure/java.classpath/tree/java.classpath-0.2.2 [0.2.1]: https://github.com/clojure/java.classpath/tree/java.classpath-0.2.1 diff --git a/README.md b/README.md index 3a303f7..0951b90 100644 --- a/README.md +++ b/README.md @@ -5,23 +5,23 @@ Examine the Java classpath from Clojure programs. ## Releases and Dependency Information -Latest stable release is 0.2.3 +Latest stable release is 0.3.0 [Leiningen] dependency information: - [org.clojure/java.classpath "0.2.3"] + [org.clojure/java.classpath "0.3.0"] [Maven] dependency information: org.clojure java.classpath - 0.2.3 + 0.3.0 [Gradle] dependency information: - compile "org.clojure:java.classpath:0.2.3" + compile "org.clojure:java.classpath:0.3.0" [Leiningen]: http://leiningen.org/ [Maven]: http://maven.apache.org/ @@ -69,6 +69,11 @@ implementation, such as a Java application server, you can extend the protocol `URLClasspath` to support it. Refer to the source for details. +**Starting with version 0.3.0**, the `classpath` function will fall +back to the `java.class.path` system property if the parent +ClassLoader is not an instance of [URLClassLoader](https://docs.oracle.com/javase/9/docs/api/java/net/URLClassLoader.html), +which is true for Java 9 and later. + ## Developer Information From 977d3eb192cf0600902143dde995bae469c40cca Mon Sep 17 00:00:00 2001 From: "Hudson @ build.clojure.org" Date: Sun, 6 May 2018 12:51:05 -0500 Subject: [PATCH 29/52] [maven-release-plugin] prepare release java.classpath-0.3.0 --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 8cd186e..52fd1e5 100644 --- a/pom.xml +++ b/pom.xml @@ -1,7 +1,7 @@ 4.0.0 java.classpath - 0.3.0-SNAPSHOT + 0.3.0 java.classpath @@ -20,6 +20,6 @@ scm:git:git@github.com:clojure/java.classpath.git scm:git:git@github.com:clojure/java.classpath.git git@github.com:clojure/java.classpath.git - HEAD + java.classpath-0.3.0 From bc8992ec34df03c4a33d8d17f7543d5711de6308 Mon Sep 17 00:00:00 2001 From: "Hudson @ build.clojure.org" Date: Sun, 6 May 2018 12:51:05 -0500 Subject: [PATCH 30/52] [maven-release-plugin] prepare for next development iteration --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 52fd1e5..d9a8375 100644 --- a/pom.xml +++ b/pom.xml @@ -1,7 +1,7 @@ 4.0.0 java.classpath - 0.3.0 + 0.3.1-SNAPSHOT java.classpath @@ -20,6 +20,6 @@ scm:git:git@github.com:clojure/java.classpath.git scm:git:git@github.com:clojure/java.classpath.git git@github.com:clojure/java.classpath.git - java.classpath-0.3.0 + HEAD From 68f972cd47adcc248d205265ae352ca4caaa117a Mon Sep 17 00:00:00 2001 From: Sean Corfield Date: Sun, 28 Apr 2019 15:33:13 -0700 Subject: [PATCH 31/52] Update links in CONTRIBUTING.md --- CONTRIBUTING.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 021a2ea..658ea8e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -3,12 +3,10 @@ This is a [Clojure contrib] project. Under the Clojure contrib [guidelines], this project cannot accept pull requests. All patches must be submitted via [JIRA]. -See [Contributing] and the [FAQ] on the Clojure development [wiki] for +See [Contributing] on the Clojure website for more information on how to contribute. -[Clojure contrib]: http://dev.clojure.org/display/doc/Clojure+Contrib -[Contributing]: http://dev.clojure.org/display/community/Contributing -[FAQ]: http://dev.clojure.org/display/community/Contributing+FAQ +[Clojure contrib]: https://clojure.org/community/contrib_libs +[Contributing]: https://clojure.org/community/contributing [JIRA]: http://dev.clojure.org/jira/browse/CLASSPATH -[guidelines]: http://dev.clojure.org/display/community/Guidelines+for+Clojure+Contrib+committers -[wiki]: http://dev.clojure.org/ +[guidelines]: https://clojure.org/community/contrib_howto From ecb4fa8c7df390be0d8700779da0075a456d798e Mon Sep 17 00:00:00 2001 From: "Hudson @ build.clojure.org" Date: Tue, 18 Feb 2020 12:27:59 -0600 Subject: [PATCH 32/52] [maven-release-plugin] prepare release java.classpath-1.0.0 --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index d9a8375..dabab64 100644 --- a/pom.xml +++ b/pom.xml @@ -1,7 +1,7 @@ 4.0.0 java.classpath - 0.3.1-SNAPSHOT + 1.0.0 java.classpath @@ -20,6 +20,6 @@ scm:git:git@github.com:clojure/java.classpath.git scm:git:git@github.com:clojure/java.classpath.git git@github.com:clojure/java.classpath.git - HEAD + java.classpath-1.0.0 From b53c3aaaa3d9a36e52c4368c7db9e861ce8c2853 Mon Sep 17 00:00:00 2001 From: "Hudson @ build.clojure.org" Date: Tue, 18 Feb 2020 12:27:59 -0600 Subject: [PATCH 33/52] [maven-release-plugin] prepare for next development iteration --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index dabab64..6eddb2a 100644 --- a/pom.xml +++ b/pom.xml @@ -1,7 +1,7 @@ 4.0.0 java.classpath - 1.0.0 + 1.1.0-SNAPSHOT java.classpath @@ -20,6 +20,6 @@ scm:git:git@github.com:clojure/java.classpath.git scm:git:git@github.com:clojure/java.classpath.git git@github.com:clojure/java.classpath.git - java.classpath-1.0.0 + HEAD From 51e5ed2658991aa7cbb0a1104e7a58b55c16da87 Mon Sep 17 00:00:00 2001 From: Alex Miller Date: Tue, 18 Feb 2020 12:35:38 -0600 Subject: [PATCH 34/52] update release --- CHANGES.md | 7 +++++++ README.md | 12 +++++++----- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 8959ea7..81150c5 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,11 @@ # java.classpath Change Log +## 1.0.x series + +### Release [1.0.0] on 2020-Feb-18 + +* No changes from previous + ## 0.3.x series ### Release [0.3.0] on 2018-May-06 @@ -68,6 +74,7 @@ from 0.2 to 0.3. [CLASSPATH-2]: http://dev.clojure.org/jira/browse/CLASSPATH-2 [CLASSPATH-1]: http://dev.clojure.org/jira/browse/CLASSPATH-1 +[1.0.0]: https://github.com/clojure/java.classpath/tree/java.classpath-1.0.0 [0.3.0]: https://github.com/clojure/java.classpath/tree/java.classpath-0.3.0 [0.2.3]: https://github.com/clojure/java.classpath/tree/java.classpath-0.2.3 [0.2.2]: https://github.com/clojure/java.classpath/tree/java.classpath-0.2.2 diff --git a/README.md b/README.md index 0951b90..d4988ed 100644 --- a/README.md +++ b/README.md @@ -5,23 +5,25 @@ Examine the Java classpath from Clojure programs. ## Releases and Dependency Information -Latest stable release is 0.3.0 +This project follows the version scheme MAJOR.MINOR.PATCH where each component provides some relative indication of the size of the change, but does not follow semantic versioning. In general, all changes endeavor to be non-breaking (by moving to new names rather than by breaking existing names). + +Latest stable release is 1.0.0 [Leiningen] dependency information: - [org.clojure/java.classpath "0.3.0"] + [org.clojure/java.classpath "1.0.0"] [Maven] dependency information: org.clojure java.classpath - 0.3.0 + 1.0.0 [Gradle] dependency information: - compile "org.clojure:java.classpath:0.3.0" + compile "org.clojure:java.classpath:1.0.0" [Leiningen]: http://leiningen.org/ [Maven]: http://maven.apache.org/ @@ -93,7 +95,7 @@ which is true for Java 9 and later. ## Copyright and License -Copyright (c) 2013 Rich Hickey, Stuart Sierra, and contributors. All +Copyright (c) 2013-2020 Rich Hickey, Stuart Sierra, and contributors. All rights reserved. The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php) which can be found in From 9568d29c490170099f963388c649d121a8c74a6d Mon Sep 17 00:00:00 2001 From: Alex Miller Date: Thu, 18 Jun 2020 13:06:10 -0500 Subject: [PATCH 35/52] add LICENSE text file --- LICENSE | 205 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 205 insertions(+) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..e246f6a --- /dev/null +++ b/LICENSE @@ -0,0 +1,205 @@ +Eclipse Public License - v 1.0 + +THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC +LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM +CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT. + +1. DEFINITIONS + +"Contribution" means: + +a) in the case of the initial Contributor, the initial code and documentation + distributed under this Agreement, and +b) in the case of each subsequent Contributor: + i) changes to the Program, and + ii) additions to the Program; + + where such changes and/or additions to the Program originate from and are + distributed by that particular Contributor. A Contribution 'originates' + from a Contributor if it was added to the Program by such Contributor + itself or anyone acting on such Contributor's behalf. Contributions do not + include additions to the Program which: (i) are separate modules of + software distributed in conjunction with the Program under their own + license agreement, and (ii) are not derivative works of the Program. + +"Contributor" means any person or entity that distributes the Program. + +"Licensed Patents" mean patent claims licensable by a Contributor which are +necessarily infringed by the use or sale of its Contribution alone or when +combined with the Program. + +"Program" means the Contributions distributed in accordance with this +Agreement. + +"Recipient" means anyone who receives the Program under this Agreement, +including all Contributors. + +2. GRANT OF RIGHTS + a) Subject to the terms of this Agreement, each Contributor hereby grants + Recipient a non-exclusive, worldwide, royalty-free copyright license to + reproduce, prepare derivative works of, publicly display, publicly + perform, distribute and sublicense the Contribution of such Contributor, + if any, and such derivative works, in source code and object code form. + b) Subject to the terms of this Agreement, each Contributor hereby grants + Recipient a non-exclusive, worldwide, royalty-free patent license under + Licensed Patents to make, use, sell, offer to sell, import and otherwise + transfer the Contribution of such Contributor, if any, in source code and + object code form. This patent license shall apply to the combination of + the Contribution and the Program if, at the time the Contribution is + added by the Contributor, such addition of the Contribution causes such + combination to be covered by the Licensed Patents. The patent license + shall not apply to any other combinations which include the Contribution. + No hardware per se is licensed hereunder. + c) Recipient understands that although each Contributor grants the licenses + to its Contributions set forth herein, no assurances are provided by any + Contributor that the Program does not infringe the patent or other + intellectual property rights of any other entity. Each Contributor + disclaims any liability to Recipient for claims brought by any other + entity based on infringement of intellectual property rights or + otherwise. As a condition to exercising the rights and licenses granted + hereunder, each Recipient hereby assumes sole responsibility to secure + any other intellectual property rights needed, if any. For example, if a + third party patent license is required to allow Recipient to distribute + the Program, it is Recipient's responsibility to acquire that license + before distributing the Program. + d) Each Contributor represents that to its knowledge it has sufficient + copyright rights in its Contribution, if any, to grant the copyright + license set forth in this Agreement. + +3. REQUIREMENTS + +A Contributor may choose to distribute the Program in object code form under +its own license agreement, provided that: + + a) it complies with the terms and conditions of this Agreement; and + b) its license agreement: + i) effectively disclaims on behalf of all Contributors all warranties + and conditions, express and implied, including warranties or + conditions of title and non-infringement, and implied warranties or + conditions of merchantability and fitness for a particular purpose; + ii) effectively excludes on behalf of all Contributors all liability for + damages, including direct, indirect, special, incidental and + consequential damages, such as lost profits; + iii) states that any provisions which differ from this Agreement are + offered by that Contributor alone and not by any other party; and + iv) states that source code for the Program is available from such + Contributor, and informs licensees how to obtain it in a reasonable + manner on or through a medium customarily used for software exchange. + +When the Program is made available in source code form: + + a) it must be made available under this Agreement; and + b) a copy of this Agreement must be included with each copy of the Program. + Contributors may not remove or alter any copyright notices contained + within the Program. + +Each Contributor must identify itself as the originator of its Contribution, +if +any, in a manner that reasonably allows subsequent Recipients to identify the +originator of the Contribution. + +4. COMMERCIAL DISTRIBUTION + +Commercial distributors of software may accept certain responsibilities with +respect to end users, business partners and the like. While this license is +intended to facilitate the commercial use of the Program, the Contributor who +includes the Program in a commercial product offering should do so in a manner +which does not create potential liability for other Contributors. Therefore, +if a Contributor includes the Program in a commercial product offering, such +Contributor ("Commercial Contributor") hereby agrees to defend and indemnify +every other Contributor ("Indemnified Contributor") against any losses, +damages and costs (collectively "Losses") arising from claims, lawsuits and +other legal actions brought by a third party against the Indemnified +Contributor to the extent caused by the acts or omissions of such Commercial +Contributor in connection with its distribution of the Program in a commercial +product offering. The obligations in this section do not apply to any claims +or Losses relating to any actual or alleged intellectual property +infringement. In order to qualify, an Indemnified Contributor must: +a) promptly notify the Commercial Contributor in writing of such claim, and +b) allow the Commercial Contributor to control, and cooperate with the +Commercial Contributor in, the defense and any related settlement +negotiations. The Indemnified Contributor may participate in any such claim at +its own expense. + +For example, a Contributor might include the Program in a commercial product +offering, Product X. That Contributor is then a Commercial Contributor. If +that Commercial Contributor then makes performance claims, or offers +warranties related to Product X, those performance claims and warranties are +such Commercial Contributor's responsibility alone. Under this section, the +Commercial Contributor would have to defend claims against the other +Contributors related to those performance claims and warranties, and if a +court requires any other Contributor to pay any damages as a result, the +Commercial Contributor must pay those damages. + +5. NO WARRANTY + +EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON AN +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR +IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, +NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each +Recipient is solely responsible for determining the appropriateness of using +and distributing the Program and assumes all risks associated with its +exercise of rights under this Agreement , including but not limited to the +risks and costs of program errors, compliance with applicable laws, damage to +or loss of data, programs or equipment, and unavailability or interruption of +operations. + +6. DISCLAIMER OF LIABILITY + +EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY +CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION +LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE +EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY +OF SUCH DAMAGES. + +7. GENERAL + +If any provision of this Agreement is invalid or unenforceable under +applicable law, it shall not affect the validity or enforceability of the +remainder of the terms of this Agreement, and without further action by the +parties hereto, such provision shall be reformed to the minimum extent +necessary to make such provision valid and enforceable. + +If Recipient institutes patent litigation against any entity (including a +cross-claim or counterclaim in a lawsuit) alleging that the Program itself +(excluding combinations of the Program with other software or hardware) +infringes such Recipient's patent(s), then such Recipient's rights granted +under Section 2(b) shall terminate as of the date such litigation is filed. + +All Recipient's rights under this Agreement shall terminate if it fails to +comply with any of the material terms or conditions of this Agreement and does +not cure such failure in a reasonable period of time after becoming aware of +such noncompliance. If all Recipient's rights under this Agreement terminate, +Recipient agrees to cease use and distribution of the Program as soon as +reasonably practicable. However, Recipient's obligations under this Agreement +and any licenses granted by Recipient relating to the Program shall continue +and survive. + +Everyone is permitted to copy and distribute copies of this Agreement, but in +order to avoid inconsistency the Agreement is copyrighted and may only be +modified in the following manner. The Agreement Steward reserves the right to +publish new versions (including revisions) of this Agreement from time to +time. No one other than the Agreement Steward has the right to modify this +Agreement. The Eclipse Foundation is the initial Agreement Steward. The +Eclipse Foundation may assign the responsibility to serve as the Agreement +Steward to a suitable separate entity. Each new version of the Agreement will +be given a distinguishing version number. The Program (including +Contributions) may always be distributed subject to the version of the +Agreement under which it was received. In addition, after a new version of the +Agreement is published, Contributor may elect to distribute the Program +(including its Contributions) under the new version. Except as expressly +stated in Sections 2(a) and 2(b) above, Recipient receives no rights or +licenses to the intellectual property of any Contributor under this Agreement, +whether expressly, by implication, estoppel or otherwise. All rights in the +Program not expressly granted under this Agreement are reserved. + +This Agreement is governed by the laws of the State of New York and the +intellectual property laws of the United States of America. No party to this +Agreement will bring a legal action under this Agreement more than one year +after the cause of action arose. Each party waives its rights to a jury trial in +any resulting litigation. + + From 4ac9ac9c1de57ee98e14405c0f754add8dc31d40 Mon Sep 17 00:00:00 2001 From: Sean Corfield Date: Tue, 1 Sep 2020 13:39:29 -0700 Subject: [PATCH 36/52] Add CLI/deps.edn dependency information --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index d4988ed..583e108 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,11 @@ This project follows the version scheme MAJOR.MINOR.PATCH where each component p Latest stable release is 1.0.0 +[CLI/`deps.edn`](https://clojure.org/reference/deps_and_cli) dependency information: +```clojure +org.clojure/java.classpath {:mvn/version "1.0.0"} +``` + [Leiningen] dependency information: [org.clojure/java.classpath "1.0.0"] From 425064641db5c62508fec4f6e4109d672f61cb2a Mon Sep 17 00:00:00 2001 From: Alex Miller Date: Wed, 20 Jan 2021 15:31:08 -0600 Subject: [PATCH 37/52] update to latest parent pom --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 6eddb2a..ac3dcc0 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ org.clojure pom.contrib - 0.2.2 + 1.0.0 From ee7c89238cd77deaa6e400ca6b790780b151cf38 Mon Sep 17 00:00:00 2001 From: Alex Miller Date: Thu, 18 Feb 2021 09:05:22 -0600 Subject: [PATCH 38/52] update old links --- CHANGES.md | 16 ++++++++-------- CONTRIBUTING.md | 2 +- README.md | 35 +++++++++++++---------------------- 3 files changed, 22 insertions(+), 31 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 81150c5..aa12337 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -65,14 +65,14 @@ from 0.2 to 0.3. -[CLASSPATH-8]: http://dev.clojure.org/jira/browse/CLASSPATH-8 -[CLASSPATH-7]: http://dev.clojure.org/jira/browse/CLASSPATH-7 -[CLASSPATH-6]: http://dev.clojure.org/jira/browse/CLASSPATH-6 -[CLASSPATH-5]: http://dev.clojure.org/jira/browse/CLASSPATH-5 -[CLASSPATH-4]: http://dev.clojure.org/jira/browse/CLASSPATH-4 -[CLASSPATH-3]: http://dev.clojure.org/jira/browse/CLASSPATH-3 -[CLASSPATH-2]: http://dev.clojure.org/jira/browse/CLASSPATH-2 -[CLASSPATH-1]: http://dev.clojure.org/jira/browse/CLASSPATH-1 +[CLASSPATH-8]: https://clojure.atlassian.net/browse/CLASSPATH-8 +[CLASSPATH-7]: https://clojure.atlassian.net/browse/CLASSPATH-7 +[CLASSPATH-6]: https://clojure.atlassian.net/browse/CLASSPATH-6 +[CLASSPATH-5]: https://clojure.atlassian.net/browse/CLASSPATH-5 +[CLASSPATH-4]: https://clojure.atlassian.net/browse/CLASSPATH-4 +[CLASSPATH-3]: https://clojure.atlassian.net/browse/CLASSPATH-3 +[CLASSPATH-2]: https://clojure.atlassian.net/browse/CLASSPATH-2 +[CLASSPATH-1]: https://clojure.atlassian.net/browse/CLASSPATH-1 [1.0.0]: https://github.com/clojure/java.classpath/tree/java.classpath-1.0.0 [0.3.0]: https://github.com/clojure/java.classpath/tree/java.classpath-0.3.0 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 658ea8e..82dfaec 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -8,5 +8,5 @@ more information on how to contribute. [Clojure contrib]: https://clojure.org/community/contrib_libs [Contributing]: https://clojure.org/community/contributing -[JIRA]: http://dev.clojure.org/jira/browse/CLASSPATH +[JIRA]: https://clojure.atlassian.net/browse/CLASSPATH [guidelines]: https://clojure.org/community/contrib_howto diff --git a/README.md b/README.md index 583e108..1184bf5 100644 --- a/README.md +++ b/README.md @@ -30,26 +30,24 @@ org.clojure/java.classpath {:mvn/version "1.0.0"} compile "org.clojure:java.classpath:1.0.0" -[Leiningen]: http://leiningen.org/ -[Maven]: http://maven.apache.org/ -[Gradle]: http://www.gradle.org/ +[Leiningen]: https://leiningen.org/ +[Maven]: https://maven.apache.org/ +[Gradle]: https://www.gradle.org/ Other versions: -* [All Released Versions](http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.clojure%22%20AND%20a%3A%22java.classpath%22) - +* [All Released Versions](https://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.clojure%22%20AND%20a%3A%22java.classpath%22) * [Development SNAPSHOTs](https://oss.sonatype.org/index.html#nexus-search;gav~org.clojure~java.classpath~~~) +* [How to get Development SNAPSHOTs](https://clojure.org/releases/downloads#_using_clojure_snapshot_releases) -* [How to get Development SNAPSHOTs](http://dev.clojure.org/display/doc/Maven+Settings+and+Repositories) - -Releases are published to the [Maven Central Repository](http://search.maven.org/) +Releases are published to the [Maven Central Repository](https://search.maven.org/) Development SNAPSHOTs are published to the [Sonatype Open-Source Repository](https://oss.sonatype.org/) ## Usage -See the [API Documentation](http://clojure.github.com/java.classpath/) +See the [API Documentation](https://clojure.github.io/java.classpath/) Examples: @@ -63,7 +61,7 @@ Examples: The `classpath` function returns a sequence of java.io.File objects representing all JAR files and directories on the classpath. It defaults to using the classpath of Clojure's base -[ClassLoader](http://docs.oracle.com/javase/7/docs/api/java/lang/ClassLoader.html). +[ClassLoader](https://docs.oracle.com/javase/8/docs/api/java/lang/ClassLoader.html). `classpath` also takes a ClassLoader as an optional argument. @@ -85,25 +83,18 @@ which is true for Java 9 and later. ## Developer Information * [Change log](CHANGES.md) - * [GitHub project](https://github.com/clojure/java.classpath) - -* [How to contribute](http://dev.clojure.org/display/community/Contributing) - -* [Bug Tracker](http://dev.clojure.org/jira/browse/CLASSPATH) - -* [Continuous Integration](http://build.clojure.org/job/java.classpath/) - -* [Compatibility Test Matrix](http://build.clojure.org/job/java.classpath-test-matrix/) - - +* [How to contribute](https://clojure.org/community/contributing) +* [Bug Tracker](https://clojure.atlassian.net/browse/CLASSPATH) +* [Continuous Integration](https://build.clojure.org/job/java.classpath/) +* [Compatibility Test Matrix](https://build.clojure.org/job/java.classpath-test-matrix/) ## Copyright and License Copyright (c) 2013-2020 Rich Hickey, Stuart Sierra, and contributors. All rights reserved. The use and distribution terms for this software are covered by the Eclipse Public License 1.0 -(http://opensource.org/licenses/eclipse-1.0.php) which can be found in +(https://opensource.org/licenses/eclipse-1.0.php) which can be found in the file epl.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this From c93196693a1705421d88c30120fb773941414c90 Mon Sep 17 00:00:00 2001 From: Alex Miller Date: Thu, 15 Apr 2021 15:57:26 -0500 Subject: [PATCH 39/52] update parent pom version to latest --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index ac3dcc0..5fa4222 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ org.clojure pom.contrib - 1.0.0 + 1.1.0 From 63de0102b3145f01adf7287a575dcf61e898cabf Mon Sep 17 00:00:00 2001 From: Alex Miller Date: Fri, 26 May 2023 15:19:55 -0500 Subject: [PATCH 40/52] add actions --- .github/workflows/release.yml | 19 +++++++++++++++++++ .github/workflows/snapshot.yml | 8 ++++++++ .github/workflows/test.yml | 7 +++++++ README.md | 5 ++--- 4 files changed, 36 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/release.yml create mode 100644 .github/workflows/snapshot.yml create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..e2718bd --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,19 @@ +name: Release on demand + +on: + workflow_dispatch: + inputs: + releaseVersion: + description: "Version to release" + required: true + snapshotVersion: + description: "Snapshot version after release" + required: true + +jobs: + call-release: + uses: clojure/build.ci/.github/workflows/release.yml@master + with: + releaseVersion: ${{ github.event.inputs.releaseVersion }} + snapshotVersion: ${{ github.event.inputs.snapshotVersion }} + secrets: inherit \ No newline at end of file diff --git a/.github/workflows/snapshot.yml b/.github/workflows/snapshot.yml new file mode 100644 index 0000000..2472957 --- /dev/null +++ b/.github/workflows/snapshot.yml @@ -0,0 +1,8 @@ +name: Snapshot on demand + +on: [workflow_dispatch] + +jobs: + call-snapshot: + uses: clojure/build.ci/.github/workflows/snapshot.yml@master + secrets: inherit diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..1fa127c --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,7 @@ +name: Test + +on: [push] + +jobs: + call-test: + uses: clojure/build.ci/.github/workflows/test.yml@master diff --git a/README.md b/README.md index 1184bf5..126b05f 100644 --- a/README.md +++ b/README.md @@ -86,12 +86,11 @@ which is true for Java 9 and later. * [GitHub project](https://github.com/clojure/java.classpath) * [How to contribute](https://clojure.org/community/contributing) * [Bug Tracker](https://clojure.atlassian.net/browse/CLASSPATH) -* [Continuous Integration](https://build.clojure.org/job/java.classpath/) -* [Compatibility Test Matrix](https://build.clojure.org/job/java.classpath-test-matrix/) +* [Continuous Integration](https://github.com/clojure/java.classpath/actions/workflows/test.yml) ## Copyright and License -Copyright (c) 2013-2020 Rich Hickey, Stuart Sierra, and contributors. All +Copyright (c) 2013-2023 Rich Hickey, Stuart Sierra, and contributors. All rights reserved. The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (https://opensource.org/licenses/eclipse-1.0.php) which can be found in From 78ee577828075137668825715450d3235510c9f8 Mon Sep 17 00:00:00 2001 From: JarrodCTaylor Date: Wed, 16 Aug 2023 12:37:01 -0500 Subject: [PATCH 41/52] Added github action to build api docs --- .github/workflows/doc-build.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .github/workflows/doc-build.yml diff --git a/.github/workflows/doc-build.yml b/.github/workflows/doc-build.yml new file mode 100644 index 0000000..99470cc --- /dev/null +++ b/.github/workflows/doc-build.yml @@ -0,0 +1,10 @@ +name: Build API Docs + +on: + workflow_dispatch: + +jobs: + call-doc-build-workflow: + uses: clojure/build.ci/.github/workflows/doc-build.yml@master + with: + project: clojure/java.classpath From d3a9417b2a64740a3192927bcfe2c55e5c100552 Mon Sep 17 00:00:00 2001 From: JarrodCTaylor Date: Wed, 30 Aug 2023 22:22:46 -0500 Subject: [PATCH 42/52] Fix EPL license link --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 126b05f..b9e80d1 100644 --- a/README.md +++ b/README.md @@ -93,7 +93,7 @@ which is true for Java 9 and later. Copyright (c) 2013-2023 Rich Hickey, Stuart Sierra, and contributors. All rights reserved. The use and distribution terms for this software are covered by the Eclipse Public License 1.0 -(https://opensource.org/licenses/eclipse-1.0.php) which can be found in +(https://opensource.org/license/epl-1-0/) which can be found in the file epl.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this From c114fe8f1be769d70da9dc2d13856b839811aae5 Mon Sep 17 00:00:00 2001 From: Alex Miller Date: Mon, 19 Feb 2024 13:39:40 -0600 Subject: [PATCH 43/52] update parent pom --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 5fa4222..512124b 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ org.clojure pom.contrib - 1.1.0 + 1.2.0 From 9b485e1de18f53a8e251a4648ec7f2270ad2c629 Mon Sep 17 00:00:00 2001 From: clojure-build Date: Mon, 19 Feb 2024 19:40:47 +0000 Subject: [PATCH 44/52] [maven-release-plugin] prepare release v1.1.0 --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 512124b..7ca3e96 100644 --- a/pom.xml +++ b/pom.xml @@ -1,7 +1,7 @@ 4.0.0 java.classpath - 1.1.0-SNAPSHOT + 1.1.0 java.classpath @@ -20,6 +20,6 @@ scm:git:git@github.com:clojure/java.classpath.git scm:git:git@github.com:clojure/java.classpath.git git@github.com:clojure/java.classpath.git - HEAD + v1.1.0 From cf3d6b00ce2f62196fdfa6b78bb7eef0d5310426 Mon Sep 17 00:00:00 2001 From: clojure-build Date: Mon, 19 Feb 2024 19:40:48 +0000 Subject: [PATCH 45/52] [maven-release-plugin] prepare for next development iteration --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 7ca3e96..3cba0b6 100644 --- a/pom.xml +++ b/pom.xml @@ -1,7 +1,7 @@ 4.0.0 java.classpath - 1.1.0 + 1.1.1-SNAPSHOT java.classpath @@ -20,6 +20,6 @@ scm:git:git@github.com:clojure/java.classpath.git scm:git:git@github.com:clojure/java.classpath.git git@github.com:clojure/java.classpath.git - v1.1.0 + HEAD From 9899226071e7f8747b7a479d52a215d0c945ad6d Mon Sep 17 00:00:00 2001 From: Alex Miller Date: Mon, 19 Feb 2024 13:46:12 -0600 Subject: [PATCH 46/52] update for release --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index b9e80d1..725986f 100644 --- a/README.md +++ b/README.md @@ -7,28 +7,28 @@ Examine the Java classpath from Clojure programs. This project follows the version scheme MAJOR.MINOR.PATCH where each component provides some relative indication of the size of the change, but does not follow semantic versioning. In general, all changes endeavor to be non-breaking (by moving to new names rather than by breaking existing names). -Latest stable release is 1.0.0 +Latest stable release is 1.1.0 -[CLI/`deps.edn`](https://clojure.org/reference/deps_and_cli) dependency information: +[CLI/`deps.edn`](https://clojure.org/reference/deps_edn) dependency information: ```clojure -org.clojure/java.classpath {:mvn/version "1.0.0"} +org.clojure/java.classpath {:mvn/version "1.1.0"} ``` [Leiningen] dependency information: - [org.clojure/java.classpath "1.0.0"] + [org.clojure/java.classpath "1.1.0"] [Maven] dependency information: org.clojure java.classpath - 1.0.0 + 1.1.0 [Gradle] dependency information: - compile "org.clojure:java.classpath:1.0.0" + compile "org.clojure:java.classpath:1.1.0" [Leiningen]: https://leiningen.org/ [Maven]: https://maven.apache.org/ @@ -90,7 +90,7 @@ which is true for Java 9 and later. ## Copyright and License -Copyright (c) 2013-2023 Rich Hickey, Stuart Sierra, and contributors. All +Copyright (c) Rich Hickey, Stuart Sierra, and contributors. All rights reserved. The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (https://opensource.org/license/epl-1-0/) which can be found in From 20adee48dd84fd180580e0a88038aeb013b8d609 Mon Sep 17 00:00:00 2001 From: Alex Miller Date: Fri, 30 May 2025 15:05:07 -0500 Subject: [PATCH 47/52] update to new parent pom --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 3cba0b6..ad05efa 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ org.clojure pom.contrib - 1.2.0 + 1.3.0 From b60ffc64023ce0ca7af736ce6529ef89c50b206b Mon Sep 17 00:00:00 2001 From: Fogus Date: Tue, 21 Oct 2025 08:18:04 -0400 Subject: [PATCH 48/52] Add project description to pom.xml Added a description for the project in pom.xml. --- pom.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/pom.xml b/pom.xml index ad05efa..0f6ef3f 100644 --- a/pom.xml +++ b/pom.xml @@ -3,6 +3,7 @@ java.classpath 1.1.1-SNAPSHOT java.classpath + Examine the Java classpath from Clojure programs. org.clojure From ec80fe6e72023ee69e869dd67c58ca943119361d Mon Sep 17 00:00:00 2001 From: Alex Miller Date: Tue, 30 Dec 2025 16:05:09 -0600 Subject: [PATCH 49/52] update permissions in workflows --- .github/workflows/doc-build.yml | 3 +++ .github/workflows/release.yml | 3 +++ .github/workflows/snapshot.yml | 3 +++ .github/workflows/test.yml | 3 +++ 4 files changed, 12 insertions(+) diff --git a/.github/workflows/doc-build.yml b/.github/workflows/doc-build.yml index 99470cc..ddfa08e 100644 --- a/.github/workflows/doc-build.yml +++ b/.github/workflows/doc-build.yml @@ -1,5 +1,8 @@ name: Build API Docs +permissions: + contents: write + on: workflow_dispatch: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e2718bd..286cf95 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,5 +1,8 @@ name: Release on demand +permissions: + contents: write + on: workflow_dispatch: inputs: diff --git a/.github/workflows/snapshot.yml b/.github/workflows/snapshot.yml index 2472957..9fdad8c 100644 --- a/.github/workflows/snapshot.yml +++ b/.github/workflows/snapshot.yml @@ -1,5 +1,8 @@ name: Snapshot on demand +permissions: + contents: read + on: [workflow_dispatch] jobs: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1fa127c..2cc441a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,5 +1,8 @@ name: Test +permissions: + contents: read + on: [push] jobs: From 4d796760beb421cb93218c0fdf8ef07723dd331b Mon Sep 17 00:00:00 2001 From: Alex Miller Date: Tue, 30 Dec 2025 16:07:13 -0600 Subject: [PATCH 50/52] update to latest parent pom --- CHANGES.md | 7 +++++++ README.md | 10 +++++----- pom.xml | 2 +- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index aa12337..c9e2a2a 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,11 @@ # java.classpath Change Log +## 1.1.x series + +### Release [1.1.1] on 2025-Dec-30 + +* Update parent pom + ## 1.0.x series ### Release [1.0.0] on 2020-Feb-18 @@ -74,6 +80,7 @@ from 0.2 to 0.3. [CLASSPATH-2]: https://clojure.atlassian.net/browse/CLASSPATH-2 [CLASSPATH-1]: https://clojure.atlassian.net/browse/CLASSPATH-1 +[1.1.1]: https://github.com/clojure/java.classpath/tree/java.classpath-1.1.1 [1.0.0]: https://github.com/clojure/java.classpath/tree/java.classpath-1.0.0 [0.3.0]: https://github.com/clojure/java.classpath/tree/java.classpath-0.3.0 [0.2.3]: https://github.com/clojure/java.classpath/tree/java.classpath-0.2.3 diff --git a/README.md b/README.md index 725986f..5bf8960 100644 --- a/README.md +++ b/README.md @@ -7,28 +7,28 @@ Examine the Java classpath from Clojure programs. This project follows the version scheme MAJOR.MINOR.PATCH where each component provides some relative indication of the size of the change, but does not follow semantic versioning. In general, all changes endeavor to be non-breaking (by moving to new names rather than by breaking existing names). -Latest stable release is 1.1.0 +Latest stable release is 1.1.1 [CLI/`deps.edn`](https://clojure.org/reference/deps_edn) dependency information: ```clojure -org.clojure/java.classpath {:mvn/version "1.1.0"} +org.clojure/java.classpath {:mvn/version "1.1.1"} ``` [Leiningen] dependency information: - [org.clojure/java.classpath "1.1.0"] + [org.clojure/java.classpath "1.1.1"] [Maven] dependency information: org.clojure java.classpath - 1.1.0 + 1.1.1 [Gradle] dependency information: - compile "org.clojure:java.classpath:1.1.0" + compile "org.clojure:java.classpath:1.1.1" [Leiningen]: https://leiningen.org/ [Maven]: https://maven.apache.org/ diff --git a/pom.xml b/pom.xml index 0f6ef3f..3971f7b 100644 --- a/pom.xml +++ b/pom.xml @@ -8,7 +8,7 @@ org.clojure pom.contrib - 1.3.0 + 1.4.0 From c9b561518a2fdc8e2ad9430051f59f59420e2ea3 Mon Sep 17 00:00:00 2001 From: clojure-build Date: Tue, 30 Dec 2025 22:08:32 +0000 Subject: [PATCH 51/52] [maven-release-plugin] prepare release v1.1.1 --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 3971f7b..378e0db 100644 --- a/pom.xml +++ b/pom.xml @@ -1,7 +1,7 @@ 4.0.0 java.classpath - 1.1.1-SNAPSHOT + 1.1.1 java.classpath Examine the Java classpath from Clojure programs. @@ -21,6 +21,6 @@ scm:git:git@github.com:clojure/java.classpath.git scm:git:git@github.com:clojure/java.classpath.git git@github.com:clojure/java.classpath.git - HEAD + v1.1.1 From 9164079d4d24a535e005a1fa58b5a920e56cf13b Mon Sep 17 00:00:00 2001 From: clojure-build Date: Tue, 30 Dec 2025 22:08:32 +0000 Subject: [PATCH 52/52] [maven-release-plugin] prepare for next development iteration --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 378e0db..6946b72 100644 --- a/pom.xml +++ b/pom.xml @@ -1,7 +1,7 @@ 4.0.0 java.classpath - 1.1.1 + 1.1.2-SNAPSHOT java.classpath Examine the Java classpath from Clojure programs. @@ -21,6 +21,6 @@ scm:git:git@github.com:clojure/java.classpath.git scm:git:git@github.com:clojure/java.classpath.git git@github.com:clojure/java.classpath.git - v1.1.1 + HEAD