Skip to content

Commit

Permalink
Merge pull request #10 from factorhouse/maven-deploy-action-tweaks
Browse files Browse the repository at this point in the history
Release action tweaks
  • Loading branch information
wavejumper authored Jan 7, 2025
2 parents 36e88ff + 39c6cf5 commit 44b3f78
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 8 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,23 @@ jobs:
uses: DeLaGuardo/[email protected]
with:
lein: 'latest'
- name: "Build JAR files"
run: lein uberjar
- name: "Generate pom.xml"
run: lein pom
- name: Set up Maven Central Repository
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
server-id: ossrh
server-id: central
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
gpg-private-key: ${{ secrets.GPG_SIGNING_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
- name: Publish package
run: mvn --batch-mode deploy
run: mvn --batch-mode -Dsource=11 -Dtarget=11 -Dmaven.compiler.source=11 -Dmaven.compiler.target=11 deploy
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_SIGNING_KEY_PASSPHRASE }}
25 changes: 20 additions & 5 deletions project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,25 @@
[com.cognitect/transit-clj "1.0.333"]
[org.clojure/tools.logging "1.3.0"]
[org.apache.kafka/kafka-streams "3.7.1" :scope "provided"]]
:pom-plugins [[org.sonatype.central/central-publishing-maven-plugin "0.6.0"
{:extensions "true"
:configuration [:publishingServerId "central"]}]
[org.apache.maven.plugins/maven-source-plugin "3.3.1"
{:executions ([:execution
[:id "attach-sources"]
[:goals [:goal "jar-no-fork"]]])}]
[org.apache.maven.plugins/maven-javadoc-plugin "3.11.2"
{:executions ([:execution
[:id "attach-javadocs"]
[:goals [:goal "jar"]]])}]
[org.apache.maven.plugins/maven-gpg-plugin "3.2.7"
{:configuration [:gpgArguments
([:arg "--pinentry-mode"]
[:arg "loopback"])]
:executions ([:execution
[:id "sign-artifacts"]
[:phase "verify"]
[:goals [:goal "sign"]]])}]]
:uberjar {:prep-tasks ["clean" "javac" "compile"]
:aot :all}
:classifiers [["sources" {:source-paths ^:replace []
Expand All @@ -49,8 +68,4 @@
"fmtfix" ["with-profile" "+smoke" "cljfmt" "fix"]}
:javac-options ["-target" "1.8" "-source" "1.8" "-Xlint:-options"]
:java-source-paths ["src/java"]
:source-paths ["src/clojure"]
:deploy-repositories [["releases" {:url "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
:creds :gpg}
"snapshots" {:url "https://s01.oss.sonatype.org/content/repositories/snapshots/"
:creds :gpg}]])
:source-paths ["src/clojure"])

0 comments on commit 44b3f78

Please sign in to comment.