-
Notifications
You must be signed in to change notification settings - Fork 86
#784 Switch to new Sonatype deployment #785
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| # | ||
| # Copyright 2022 ABSA Group Limited | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
| # | ||
|
|
||
| name: Release2 | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
|
|
||
| defaults: | ||
| run: | ||
| shell: bash | ||
|
|
||
| jobs: | ||
| publish: | ||
| runs-on: ubuntu-22.04 | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
| - uses: actions/[email protected] | ||
| with: | ||
| distribution: temurin | ||
| java-version: 8 | ||
| cache: sbt | ||
| - name: Build and release to Sonatype and Maven Central | ||
| run: sbt ci-release | ||
| env: | ||
| PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }} | ||
| PGP_SECRET: ${{ secrets.PGP_SECRET }} | ||
| SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | ||
| SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| sbt.version=1.10.11 | ||
| sbt.version=1.11.6 |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,9 +1,9 @@ | ||||||||||||||||||||||||||||||||
| addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.2.1") | ||||||||||||||||||||||||||||||||
| addSbtPlugin("com.github.sbt" % "sbt-release" % "1.1.0") | ||||||||||||||||||||||||||||||||
| addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.6.0") | ||||||||||||||||||||||||||||||||
| addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.2.0") | ||||||||||||||||||||||||||||||||
| addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.15.0") | ||||||||||||||||||||||||||||||||
| addSbtPlugin("io.get-coursier" % "sbt-shading" % "2.1.5") | ||||||||||||||||||||||||||||||||
| addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.11.1") | ||||||||||||||||||||||||||||||||
| addSbtPlugin("com.eed3si9n" % "sbt-projectmatrix" % "0.9.2") | ||||||||||||||||||||||||||||||||
| addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.6.0") | ||||||||||||||||||||||||||||||||
| addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.2.0") | ||||||||||||||||||||||||||||||||
| addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.15.0") | ||||||||||||||||||||||||||||||||
| addSbtPlugin("io.get-coursier" % "sbt-shading" % "2.1.5") | ||||||||||||||||||||||||||||||||
|
Comment on lines
+1
to
+6
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missing sbt-dynver: ci-release won’t produce proper release versions from tags. You removed version.sbt; without sbt-dynver, version defaults to 0.1.0-SNAPSHOT, so ci-release will only publish snapshots. Add dynver so tags drive release versions. (github.com) Apply: +addSbtPlugin("com.github.sbt" % "sbt-dynver" % "5.1.0")
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.11.1")
addSbtPlugin("com.eed3si9n" % "sbt-projectmatrix" % "0.9.2")
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.6.0")
addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.2.0")
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.15.0")
addSbtPlugin("io.get-coursier" % "sbt-shading" % "2.1.5")📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| addDependencyTreePlugin | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Trigger releases on tags to publish non-SNAPSHOTs.
ci-release expects tag-driven versions (with dynver). Add a push tag trigger so “vX.Y.Z” runs a release. (github.com)
📝 Committable suggestion
🤖 Prompt for AI Agents