Skip to content

Commit a260909

Browse files
authored
Merge pull request #88 from eed3si9n/wip/bump
ci: Fix publishing
2 parents 3769752 + 85789ad commit a260909

File tree

5 files changed

+42
-27
lines changed

5 files changed

+42
-27
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
pull_request:
55
push:
66
branches: [main]
7-
tags: ['*']
7+
tags: ['**']
88

99
env:
1010
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -14,27 +14,31 @@ jobs:
1414
name: Build and Test
1515
strategy:
1616
matrix:
17-
os: [ubuntu-latest]
18-
java: ['temurin:8', 'temurin:21']
17+
include:
18+
- os: ubuntu-latest
19+
java: 8
20+
distribution: zulu
21+
- os: ubuntu-latest
22+
java: 21
23+
distribution: temurin
1924
runs-on: ${{ matrix.os }}
2025
env:
2126
# define Java options for both official sbt and sbt-extras
22-
JAVA_OPTS: -Dfile.encoding=UTF-8
23-
JVM_OPTS: -Dfile.encoding=UTF-8
24-
ADDITIONAL_JVM_OPTS: -Djava.security.manager=allow
27+
JAVA_OPTS: -Dfile.encoding=UTF-8 -Djava.security.manager=allow
28+
JVM_OPTS: -Dfile.encoding=UTF-8 -Djava.security.manager=allow
2529
steps:
2630
- name: Checkout
27-
uses: actions/checkout@v4
28-
- name: Setup cache
29-
uses: coursier/cache-action@v6
30-
- name: Setup jdk and sbt
31-
uses: coursier/setup-action@v1
31+
uses: actions/checkout@v5
32+
- name: Setup JDK
33+
uses: actions/setup-java@v5
3234
with:
33-
jvm: ${{ matrix.java }}
34-
apps: sbt
35+
distribution: "${{ matrix.distribution }}"
36+
java-version: "${{ matrix.java }}"
37+
cache: sbt
38+
- uses: sbt/setup-sbt@v1
3539
- name: Test
3640
shell: bash
37-
run: sbt -v clean test scripted
41+
run: sbt -v clean +test +scripted
3842
- name: Ensure formatting
3943
shell: bash
4044
run: sbt -v clean scalafmtSbtCheck scalafmtCheckAll

.github/workflows/release.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on:
33
push:
44
branches:
55
- main
6-
tags: ['*']
6+
tags: ['**']
77
jobs:
88
publish:
99
runs-on: ubuntu-latest
@@ -13,16 +13,16 @@ jobs:
1313
JVM_OPTS: -Dfile.encoding=UTF-8
1414
steps:
1515
- name: Checkout
16-
uses: actions/checkout@v4
16+
uses: actions/checkout@v5
1717
with:
1818
fetch-depth: 0
19-
- name: Setup cache
20-
uses: coursier/cache-action@v6
21-
- name: Setup jdk and sbt
22-
uses: coursier/setup-action@v1
19+
- name: Setup JDK
20+
uses: actions/setup-java@v5
2321
with:
24-
jvm: 'temurin:8'
25-
apps: sbt
22+
distribution: "zulu"
23+
java-version: "8"
24+
cache: sbt
25+
- uses: sbt/setup-sbt@v1
2626
- name: Release
2727
run: sbt ci-release
2828
env:

build.sbt

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ val mvnResolverVersion = "1.9.18"
33
val scala212 = "2.12.20"
44

55
ThisBuild / organization := "com.github.sbt"
6-
ThisBuild / licenses := Seq("Apache-2.0" -> url("http://opensource.org/licenses/Apache-2.0"))
6+
ThisBuild / licenses := Seq(License.Apache2)
77
ThisBuild / developers := List(Developer("", "", "", url("https://github.com/sbt/sbt-pom-reader/graphs/contributors")))
88
ThisBuild / homepage := Some(url("https://github.com/sbt/sbt-pom-reader"))
99
ThisBuild / dynverSonatypeSnapshots := true
@@ -19,7 +19,7 @@ lazy val root = (project in file("."))
1919
.enablePlugins(SbtPlugin)
2020
.settings(nocomma {
2121
name := "sbt-pom-reader"
22-
scalacOptions := Seq(
22+
scalacOptions ++= Seq(
2323
"-Wconf:any:wv",
2424
"-Xlint:unused",
2525
"-Xlint:deprecation"
@@ -46,5 +46,16 @@ lazy val root = (project in file("."))
4646
scriptedLaunchOpts := scriptedLaunchOpts.value ++ Seq("-Dproject.version=" + version.value)
4747
scriptedLaunchOpts ++= Seq("-Dplugin.version=" + version.value)
4848
scriptedBufferLog := true
49-
scriptedSbt := "1.9.9"
49+
(pluginCrossBuild / sbtVersion) := {
50+
scalaBinaryVersion.value match {
51+
case "2.12" => "1.9.9"
52+
case _ => "2.0.0-RC5"
53+
}
54+
}
55+
scriptedSbt := {
56+
scalaBinaryVersion.value match {
57+
case "2.12" => "1.11.6"
58+
case _ => (pluginCrossBuild / sbtVersion).value
59+
}
60+
}
5061
})

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=1.10.9
1+
sbt.version=1.11.6

project/plugins.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
addSbtPlugin("com.eed3si9n" % "sbt-nocomma" % "0.1.2")
2-
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.9.2")
2+
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.11.2")
33
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.4")

0 commit comments

Comments
 (0)