-
Notifications
You must be signed in to change notification settings - Fork 20
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 #43 from mkurz/upgrade
Upgrade to latest sbt-web, use GHA/sbt-ci-release
- Loading branch information
Showing
11 changed files
with
107 additions
and
26 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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Check | ||
|
||
on: | ||
pull_request: | ||
|
||
push: | ||
branches: | ||
- main # Check branch after merge | ||
|
||
concurrency: | ||
# Only run once for latest commit per ref and cancel other (previous) runs. | ||
group: ci-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
tests: | ||
name: Tests | ||
uses: playframework/.github/.github/workflows/cmd.yml@v3 | ||
with: | ||
java: 17, 11, 8 | ||
scala: 2.12.18 | ||
cmd: | | ||
sbt ++$MATRIX_SCALA test ^scripted | ||
finish: | ||
name: Finish | ||
if: github.event_name == 'pull_request' | ||
needs: # Should be last | ||
- "tests" | ||
uses: playframework/.github/.github/workflows/rtm.yml@v3 |
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,44 @@ | ||
name: Publish | ||
|
||
on: | ||
push: | ||
branches: # Snapshots | ||
- main | ||
tags: ["**"] # Releases | ||
|
||
jobs: | ||
publish-artifacts: | ||
name: JDK 8 | ||
runs-on: ubuntu-20.04 | ||
if: ${{ github.repository_owner == 'sbt' }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
# we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves | ||
fetch-depth: 0 | ||
|
||
- name: Coursier Cache | ||
id: coursier-cache | ||
uses: coursier/cache-action@v6 | ||
|
||
- name: Install Adoptium Temurin OpenJDK | ||
uses: coursier/setup-action@v1 | ||
with: | ||
jvm: adoptium:8 | ||
|
||
- name: Publish artifacts | ||
run: sbt ci-release | ||
env: | ||
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | ||
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | ||
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }} | ||
PGP_SECRET: ${{ secrets.PGP_SECRET }} | ||
|
||
- name: Cleanup before cache | ||
shell: bash | ||
run: | | ||
find $HOME/Library/Caches/Coursier/v1 -name "ivydata-*.properties" -delete || true | ||
find $HOME/.ivy2/cache -name "ivydata-*.properties" -delete || true | ||
find $HOME/.cache/coursier/v1 -name "ivydata-*.properties" -delete || true | ||
find $HOME/.sbt -name "*.lock" -delete || true |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.idea | ||
.idea_modules | ||
target | ||
.bsp/ |
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
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 |
---|---|---|
@@ -1,10 +1,28 @@ | ||
lazy val `sbt-concat` = project in file(".") | ||
|
||
organization := "net.ground5hark.sbt" | ||
name := "sbt-concat" | ||
enablePlugins(SbtWebBase) | ||
|
||
sonatypeProfileName := "com.github.sbt.sbt-concat" // See https://issues.sonatype.org/browse/OSSRH-77819#comment-1203625 | ||
|
||
description := "sbt-web asset concatenation plugin" | ||
|
||
enablePlugins(SbtWebBase) | ||
addSbtWeb("1.4.3") | ||
developers += Developer( | ||
"playframework", | ||
"The Play Framework Team", | ||
"[email protected]", | ||
url("https://github.com/playframework") | ||
) | ||
|
||
addSbtWeb("1.5.3") | ||
|
||
licenses := Seq("MIT" -> url("https://opensource.org/licenses/mit-license.php")) | ||
|
||
// Customise sbt-dynver's behaviour to make it work with tags which aren't v-prefixed | ||
ThisBuild / dynverVTagPrefix := false | ||
|
||
// Sanity-check: assert that version comes from a tag (e.g. not a too-shallow clone) | ||
// https://github.com/dwijnand/sbt-dynver/#sanity-checking-the-version | ||
Global / onLoad := (Global / onLoad).value.andThen { s => | ||
dynverAssertTagVersion.value | ||
s | ||
} |
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 |
---|---|---|
@@ -1 +1 @@ | ||
sbt.version=1.2.6 | ||
sbt.version=1.9.7 |
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
addSbtPlugin("com.typesafe.sbt" % "sbt-web-build-base" % "1.2.1") | ||
addSbtPlugin("com.github.sbt" % "sbt-web-build-base" % "2.0.2") | ||
|
||
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.12") |
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 |
---|---|---|
@@ -1 +1 @@ | ||
addSbtPlugin("net.ground5hark.sbt" %% "sbt-concat" % sys.props("project.version")) | ||
addSbtPlugin("com.github.sbt" %% "sbt-concat" % sys.props("project.version")) |
This file was deleted.
Oops, something went wrong.