Skip to content

Commit

Permalink
Lein + Maven
Browse files Browse the repository at this point in the history
  • Loading branch information
wavejumper committed Jan 14, 2025
1 parent c728ffa commit 7b4b394
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 18 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@ jobs:
uses: DeLaGuardo/[email protected]
with:
lein: 'latest'
- name: "Build JAR files"
run: lein uberjar
- name: "Generate pom.xml"
run: lein pom
run: lein +mvn-deploy pom
- name: Set up Maven Central Repository
uses: actions/setup-java@v4
with:
Expand Down
24 changes: 9 additions & 15 deletions project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -48,25 +48,19 @@
[:goals [:goal "sign"]]])}]]
:uberjar {:prep-tasks ["clean" "javac" "compile"]
:aot :all}
:classifiers [["sources" {:source-paths ^:replace []
:java-source-paths ^:replace ["src/java"]
:resource-paths ^:replace ["javadoc"]}]
["javadoc" {:source-paths ^:replace []
:java-source-paths ^:replace []
:resource-paths ^:replace ["javadoc"]}]]
:profiles {:kaocha {:dependencies [[lambdaisland/kaocha "1.91.1392"]]}
:dev {:resource-paths ["dev-resources"]
:plugins [[lein-cljfmt "0.9.2"]]
:dependencies [[org.slf4j/slf4j-api "2.0.16"]
[ch.qos.logback/logback-classic "1.3.14"]
[cheshire "5.13.0" :exclusions [com.fasterxml.jackson.core/jackson-databind]]
[clj-kondo "2024.09.27"]]}
:smoke {:pedantic? :abort}}
:profiles {:mvn-deploy {:resource-paths ["src/clojure"]}
:kaocha {:dependencies [[lambdaisland/kaocha "1.91.1392"]]}
:dev {:resource-paths ["dev-resources"]
:plugins [[lein-cljfmt "0.9.2"]]
:dependencies [[org.slf4j/slf4j-api "2.0.16"]
[ch.qos.logback/logback-classic "1.3.14"]
[cheshire "5.13.0" :exclusions [com.fasterxml.jackson.core/jackson-databind]]
[clj-kondo "2024.09.27"]]}
:smoke {:pedantic? :abort}}
:aliases {"kaocha" ["with-profile" "+kaocha" "run" "-m" "kaocha.runner"]
"kondo" ["with-profile" "+smoke" "run" "-m" "clj-kondo.main" "--lint" "src"]
"fmt" ["with-profile" "+smoke" "cljfmt" "check"]
"fmtfix" ["with-profile" "+smoke" "cljfmt" "fix"]}
:javac-options ["-target" "1.8" "-source" "1.8" "-Xlint:-options"]
:java-source-paths ["src/java"]
:resource-paths ["src/clojure"]
:source-paths ["src/clojure"])

0 comments on commit 7b4b394

Please sign in to comment.