-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #434 from lread/lread-move-to-deps-edn
Switch from lein to clojure tools cli
- Loading branch information
Showing
34 changed files
with
163 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,8 +22,8 @@ jobs: | |
~/.m2/repository | ||
~/.deps.clj | ||
~/.gitlibs | ||
key: cljdeps-${{ hashFiles('project.clj, bb.edn') }} | ||
restore-keys: ${{ runner.os }}-cljdeps- | ||
key: cljdeps-${{ hashFiles('deps.edn', 'bb.edn') }} | ||
restore-keys: cljdeps- | ||
|
||
- name: "Setup Java" | ||
uses: actions/setup-java@v3 | ||
|
@@ -35,13 +35,10 @@ jobs: | |
uses: DeLaGuardo/[email protected] | ||
with: | ||
bb: 'latest' | ||
lein: 'latest' | ||
|
||
# This assumes downloaded deps are same for all OSes | ||
- name: Bring down deps | ||
run: | | ||
lein deps | ||
bb --version | ||
run: bb download-deps | ||
|
||
- id: set-tests | ||
name: Set test var for matrix | ||
|
@@ -69,8 +66,8 @@ jobs: | |
~/.m2/repository | ||
~/.deps.clj | ||
~/.gitlibs | ||
key: cljdeps-${{ hashFiles('project.clj, bb.edn') }} | ||
restore-keys: ${{ runner.os }}-cljdeps- | ||
key: cljdeps-${{ hashFiles('deps.edn', 'bb.edn') }} | ||
restore-keys: cljdeps- | ||
|
||
- name: "Setup Java" | ||
uses: actions/setup-java@v3 | ||
|
@@ -82,7 +79,6 @@ jobs: | |
uses: DeLaGuardo/[email protected] | ||
with: | ||
bb: 'latest' | ||
lein: 'latest' | ||
|
||
- name: Tools versions | ||
run: bb tools-versions | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{:paths ["src"] | ||
:deps {org.clojure/clojure {:mvn/version "1.9.0"} ;; min clojure version | ||
babashka/fs {:mvn/version "0.1.6"} | ||
clj-http/clj-http {:mvn/version "3.10.1"} | ||
cheshire/cheshire {:mvn/version "5.9.0"} | ||
org.clojure/tools.cli {:mvn/version "1.0.194"} | ||
org.clojure/tools.logging {:mvn/version "0.3.1"}} | ||
:aliases | ||
{:1.11 {:replace-deps {org.clojure/clojure {:mvn/version "1.11.1"}}} | ||
:debug {:extra-paths ["env/dev/resources"]} | ||
:test {:extra-paths ["test" "env/test/resources"] | ||
:extra-deps {io.github.cognitect-labs/test-runner {:git/tag "v0.5.1" :git/sha "dfb30dd"} | ||
ch.qos.logback/logback-classic {:mvn/version "1.3.0-alpha16"}} | ||
:main-opts ["-m" "cognitect.test-runner"]}}} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<configuration> | ||
<!-- Stop output INFO at start --> | ||
<statusListener class="ch.qos.logback.core.status.NopStatusListener"/> | ||
|
||
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> | ||
<encoder> | ||
<pattern>%date %-5level %logger{36} - %message%n</pattern> | ||
</encoder> | ||
</appender> | ||
|
||
<logger name="etaoin" level="debug" additivity="false"> | ||
<appender-ref ref="STDOUT"/> | ||
</logger> | ||
|
||
<root level="info"> | ||
<appender-ref ref="STDOUT"/> | ||
</root> | ||
|
||
</configuration> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<configuration> | ||
<!-- Stop output INFO at start --> | ||
<statusListener class="ch.qos.logback.core.status.NopStatusListener"/> | ||
|
||
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> | ||
<encoder> | ||
<pattern>%date %-5level %logger{36} - %message%n</pattern> | ||
</encoder> | ||
</appender> | ||
|
||
<logger name="etaoin" level="info" additivity="false"> | ||
<appender-ref ref="STDOUT"/> | ||
</logger> | ||
|
||
<root level="info"> | ||
<appender-ref ref="STDOUT"/> | ||
</root> | ||
|
||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<name>etaoin</name> | ||
<description>Pure Clojure Webdriver protocol implementation</description> | ||
<url>https://github.com/clj-commons/etaoin</url> | ||
<licenses> | ||
<license> | ||
<name>Eclipse Public License</name> | ||
<url>http://www.eclipse.org/legal/epl-v10.html</url> | ||
</license> | ||
</licenses> | ||
<scm> | ||
<url>https://github.com/clj-commons/etaoin</url> | ||
<connection>scm:git:git://github.com/clj-commons/etaoin.git</connection> | ||
<developerConnection>scm:git:ssh://[email protected]/clj-commons/etaoin.git</developerConnection> | ||
</scm> | ||
<properties> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
</properties> | ||
<repositories> | ||
<repository> | ||
<id>clojars</id> | ||
<url>https://repo.clojars.org/</url> | ||
</repository> | ||
</repositories> | ||
<distributionManagement> | ||
<repository> | ||
<id>clojars</id> | ||
<name>Clojars repository</name> | ||
<url>https://clojars.org/repo</url> | ||
</repository> | ||
</distributionManagement> | ||
</project> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
(ns download-deps | ||
(:require [clojure.edn :as edn] | ||
[helper.main :as main] | ||
[helper.shell :as shell] | ||
[lread.status-line :as status])) | ||
|
||
;; clojure has a -P command, but to bring down all deps we need to specify all aliases | ||
;; bb deps will be brought down just from running bb (which assumedly is how this code is run) | ||
|
||
(defn -main [& args] | ||
(when (main/doc-arg-opt args) | ||
(let [aliases (->> "deps.edn" | ||
slurp | ||
edn/read-string | ||
:aliases | ||
keys)] | ||
;; one at a time because aliases with :replace-deps will... well... you know. | ||
(status/line :detail "Bring down default deps") | ||
(shell/clojure "-P") | ||
(doseq [a aliases] | ||
(status/line :detail "Bring down deps for alias: %s" a) | ||
(shell/clojure "-P" (str "-M" a)))))) |
Oops, something went wrong.