Skip to content

Commit

Permalink
Merge pull request #74 from liquidz/dev
Browse files Browse the repository at this point in the history
0.13.0
  • Loading branch information
liquidz authored Apr 14, 2021
2 parents 5d514a4 + 91b2298 commit a6e13c6
Show file tree
Hide file tree
Showing 10 changed files with 53 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
- uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: ${{ matrix.java }}
- run: java -version
- uses: DeLaGuardo/setup-clojure@master
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/.cpcache/
.nrepl-port
/target
.clj-kondo/.cache
**/.clj-kondo/.cache
**/.lsp
11 changes: 11 additions & 0 deletions CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@ All notable changes to this project will be documented in this file. This change

== Unreleased (dev)

== 0.13.0 (2021-04-15)
// {{{
=== Added
* https://github.com/liquidz/antq/issues/71[#71]: Added support for https://book.babashka.org/index.html#_bb_edn[bb.edn].

=== Changed
* Bumped tools.deps.alpha to 0.11.910.
* Bumped rewrite-clj to 1.0.605-alpha.
* Bumped deps-deploy to the latest commit.
// }}}

== 0.12.4 (2021-04-02)
// {{{
* Re-release 0.12.3 because it was deployed to clojars with wrong content.
Expand Down
1 change: 1 addition & 0 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ If you'd like to use with 1.7.0 or earlier, please see link:./doc/clojure-1.7.ad
* build.boot (https://boot-clj.com[Boot])
* pom.xml (https://maven.apache.org[Maven])
* .github/workflows/*.yml (https://github.com/features/actions[GitHub Actions])
* bb.edn (https://book.babashka.org/index.html#_bb_edn[Babashka])

== Usage

Expand Down
6 changes: 3 additions & 3 deletions deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
org.clojure/data.xml {:mvn/version "0.2.0-alpha6"}
org.clojure/data.zip {:mvn/version "1.0.0"}
org.clojure/tools.cli {:mvn/version "1.0.206"}
org.clojure/tools.deps.alpha {:mvn/version "0.11.905"}
org.clojure/tools.deps.alpha {:mvn/version "0.11.910"}
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.594-alpha"}}
rewrite-clj/rewrite-clj {:mvn/version "1.0.605-alpha"}}

:aliases
{:1.8
Expand Down Expand Up @@ -43,7 +43,7 @@
:deploy
{:extra-deps {slipset/deps-deploy {;:mvn/version "RELEASE"
:git/url "https://github.com/slipset/deps-deploy"
:sha "49f1da003208d615d52c06164401e6fb3d9ba853"}}
:sha "b4359c5d67ca002d9ed0c4b41b710d7e5a82e3bf"}}
:exec-fn deps-deploy.deps-deploy/deploy
:exec-args {}}

Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.github.liquidz</groupId>
<artifactId>antq</artifactId>
<version>0.12.4</version>
<version>0.13.0</version>
<name>antq</name>
<description>Point out your outdated dependencies</description>
<url>https://github.com/liquidz/antq</url>
Expand Down Expand Up @@ -37,12 +37,12 @@
<dependency>
<groupId>rewrite-clj</groupId>
<artifactId>rewrite-clj</artifactId>
<version>1.0.594-alpha</version>
<version>1.0.605-alpha</version>
</dependency>
<dependency>
<groupId>org.clojure</groupId>
<artifactId>tools.deps.alpha</artifactId>
<version>0.11.905</version>
<version>0.11.910</version>
</dependency>
<dependency>
<groupId>org.clojure</groupId>
Expand Down
4 changes: 3 additions & 1 deletion src/antq/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
(ns antq.core
(:gen-class)
(:require
[antq.dep.babashka :as dep.bb]
[antq.dep.boot :as dep.boot]
[antq.dep.clojure :as dep.clj]
[antq.dep.github-action :as dep.gh-action]
Expand Down Expand Up @@ -188,7 +189,8 @@
(when-not (skip "github-action") (dep.gh-action/load-deps %))
(when-not (skip "pom") (dep.pom/load-deps %))
(when-not (skip "shadow-cljs") (dep.shadow/load-deps %))
(when-not (skip "leiningen") (dep.lein/load-deps %)))
(when-not (skip "leiningen") (dep.lein/load-deps %))
(when-not (skip "babashka") (dep.bb/load-deps %)))
(distinct (:directory options)))))

(defn mark-only-newest-version-flag
Expand Down
15 changes: 15 additions & 0 deletions src/antq/dep/babashka.clj
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
(ns antq.dep.babashka
(:require
[antq.dep.clojure :as dep.clj]
[antq.util.dep :as u.dep]
[clojure.java.io :as io]))

(def ^:private project-file "bb.edn")

(defn load-deps
([] (load-deps "."))
([dir]
(let [file (io/file dir project-file)]
(when (.exists file)
(dep.clj/extract-deps (u.dep/relative-path file)
(slurp file))))))
13 changes: 13 additions & 0 deletions test/antq/dep/babashka_test.clj
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
(ns antq.dep.babashka-test
(:require
[antq.dep.babashka :as sut]
[antq.record :as r]
[clojure.test :as t]))

(t/deftest load-deps-test
(t/is (= [(r/map->Dependency {:type :java
:file "test/resources/dep/bb.edn"
:name "bb/core"
:version "1.0.0"
:project :clojure})]
(sut/load-deps "test/resources/dep"))))
1 change: 1 addition & 0 deletions test/resources/dep/bb.edn
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{:deps {bb/core {:mvn/version "1.0.0"}}}

0 comments on commit a6e13c6

Please sign in to comment.