Skip to content

Commit

Permalink
lein-convert
Browse files Browse the repository at this point in the history
- Convert from deps to lein project.
  • Loading branch information
wdhowe committed Mar 27, 2024
1 parent dc00689 commit c13dc6b
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 132 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/clojure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,16 @@ jobs:
os: [ubuntu-latest]

container:
image: clojure:openjdk-${{ matrix.jdk_version }}-tools-deps
image: clojure:openjdk-${{ matrix.jdk_version }}-lein

steps:
- uses: actions/checkout@v4
- name: Version
run: clj --version
- name: Prepare Deps
run: clj -P
- name: Test, Write POM, Build
run: clj -T:build jar
- uses: actions/checkout@v2
- name: Info
run: lein version
- name: Package
run: |
lein deps
lein compile
lein uberjar
- name: Tests
run: lein test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
.clj-kondo/
/.cpcache/
*.jar
/.lein-*
.lsp/
/.nrepl-port
pom.xml
Expand Down
105 changes: 0 additions & 105 deletions build.clj

This file was deleted.

21 changes: 2 additions & 19 deletions deps.edn
Original file line number Diff line number Diff line change
@@ -1,23 +1,6 @@
{;; Dependencies
:deps {org.clojure/clojure {:mvn/version "1.11.1"}
:deps {org.clojure/clojure {:mvn/version "1.11.2"}
org.clojure/core.async {:mvn/version "1.6.681"}}

;; File system paths
:paths ["src" "resources"]

;; clj cli aliases
:aliases
{;; See build.clj for details of the :build alias.
:build {:deps {io.github.clojure/tools.build {:mvn/version "0.9.6"}
slipset/deps-deploy {:mvn/version "0.2.2"}}
:ns-default build}

;; Run tests: clj -X:test
:test {:extra-paths ["test"]
:extra-deps {org.clojure/test.check {:mvn/version "1.1.1"}
io.github.cognitect-labs/test-runner {:git/tag "v0.5.1" :git/sha "dfb30dd"}}
:exec-fn cognitect.test-runner.api/test}

;; Upgrade outdated deps: clj -M:outdated :upgrade true
:outdated {:deps {com.github.liquidz/antq {:mvn/version "RELEASE"}}
:main-opts ["-m" "antq.core"]}}}
:paths ["src"]}
17 changes: 17 additions & 0 deletions project.clj
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
(defproject clj-contrib "0.1.0"

;;; Project Metadata
:description "A library of functions to enhance clojure.core."
:url "https://github.com/wdhowe/clj-contrib"
:license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0"
:url "https://www.eclipse.org/legal/epl-2.0/"}

;;; Dependencies, Plugins
:dependencies [[org.clojure/clojure "1.11.2"]
[org.clojure/core.async "1.6.681"]]

;;; Profiles
:profiles {:uberjar {:aot :all}}

;;; Running Project Code
:repl-options {:init-ns clj-contrib.core})

0 comments on commit c13dc6b

Please sign in to comment.