Skip to content

Commit 6f4d5af

Browse files
authored
Merge pull request #7 from theiterators/sonatype-fixes
fix sonatype publishing
2 parents 8063103 + 4a28142 commit 6f4d5af

File tree

4 files changed

+22
-19
lines changed

4 files changed

+22
-19
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ concurrency:
2424

2525
jobs:
2626
build:
27-
name: Build and Test
27+
name: Test
2828
strategy:
2929
matrix:
30-
os: [ubuntu-latest]
30+
os: [ubuntu-22.04]
3131
scala: [2.13, 3]
3232
java: [temurin@11, temurin@17]
3333
project: [http4sStirJS, http4sStirNative, http4sStirJVM]
@@ -39,14 +39,14 @@ jobs:
3939
runs-on: ${{ matrix.os }}
4040
timeout-minutes: 60
4141
steps:
42-
- name: Install sbt
43-
uses: sbt/setup-sbt@v1
44-
4542
- name: Checkout current branch (full)
4643
uses: actions/checkout@v4
4744
with:
4845
fetch-depth: 0
4946

47+
- name: Setup sbt
48+
uses: sbt/setup-sbt@v1
49+
5050
- name: Setup Java (temurin@11)
5151
id: setup-java-temurin-11
5252
if: matrix.java == 'temurin@11'
@@ -88,11 +88,11 @@ jobs:
8888
run: sbt 'project ${{ matrix.project }}' '++ ${{ matrix.scala }}' test
8989

9090
- name: Check binary compatibility
91-
if: matrix.java == 'temurin@11' && matrix.os == 'ubuntu-latest'
91+
if: matrix.java == 'temurin@11' && matrix.os == 'ubuntu-22.04'
9292
run: sbt 'project ${{ matrix.project }}' '++ ${{ matrix.scala }}' mimaReportBinaryIssues
9393

9494
- name: Generate API documentation
95-
if: matrix.java == 'temurin@11' && matrix.os == 'ubuntu-latest'
95+
if: matrix.java == 'temurin@11' && matrix.os == 'ubuntu-22.04'
9696
run: sbt 'project ${{ matrix.project }}' '++ ${{ matrix.scala }}' doc
9797

9898
- name: Make target directories
@@ -116,18 +116,18 @@ jobs:
116116
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/master')
117117
strategy:
118118
matrix:
119-
os: [ubuntu-latest]
119+
os: [ubuntu-22.04]
120120
java: [temurin@11]
121121
runs-on: ${{ matrix.os }}
122122
steps:
123-
- name: Install sbt
124-
uses: sbt/setup-sbt@v1
125-
126123
- name: Checkout current branch (full)
127124
uses: actions/checkout@v4
128125
with:
129126
fetch-depth: 0
130127

128+
- name: Setup sbt
129+
uses: sbt/setup-sbt@v1
130+
131131
- name: Setup Java (temurin@11)
132132
id: setup-java-temurin-11
133133
if: matrix.java == 'temurin@11'
@@ -243,18 +243,18 @@ jobs:
243243
if: github.event.repository.fork == false && github.event_name != 'pull_request'
244244
strategy:
245245
matrix:
246-
os: [ubuntu-latest]
246+
os: [ubuntu-22.04]
247247
java: [temurin@11]
248248
runs-on: ${{ matrix.os }}
249249
steps:
250-
- name: Install sbt
251-
uses: sbt/setup-sbt@v1
252-
253250
- name: Checkout current branch (full)
254251
uses: actions/checkout@v4
255252
with:
256253
fetch-depth: 0
257254

255+
- name: Setup sbt
256+
uses: sbt/setup-sbt@v1
257+
258258
- name: Setup Java (temurin@11)
259259
id: setup-java-temurin-11
260260
if: matrix.java == 'temurin@11'

build.sbt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ ThisBuild / githubWorkflowPublishTargetBranches := Seq(RefPredicate.StartsWith(R
1212
RefPredicate.Equals(Ref.Branch("master")))
1313
ThisBuild / tlBaseVersion := "0.4"
1414
ThisBuild / tlCiHeaderCheck := false
15-
ThisBuild / sonatypeCredentialHost := xerial.sbt.Sonatype.sonatypeLegacy
15+
ThisBuild / publishTo := {
16+
val centralSnapshots = "https://central.sonatype.com/repository/maven-snapshots/"
17+
if (isSnapshot.value) Some("central-snapshots" at centralSnapshots)
18+
else localStaging.value
19+
}
1620

1721
lazy val noPublishSettings =
1822
Seq(
@@ -21,7 +25,6 @@ lazy val noPublishSettings =
2125

2226
lazy val baseSettings = Seq(
2327
organization := "pl.iterators",
24-
sonatypeProfileName := organization.value,
2528
organizationName := "Iterators",
2629
organizationHomepage := Some(url("https://www.iteratorshq.com")),
2730
pomIncludeRepository := const(true),

project/build.properties

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

project/plugins.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.17.0")
66
addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "1.3.2")
77
addSbtPlugin("org.portable-scala" % "sbt-scala-native-crossproject" % "1.3.2")
88
addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.4.17")
9-
addSbtPlugin("org.typelevel" % "sbt-typelevel-ci-release" % "0.7.4")
9+
addSbtPlugin("org.typelevel" % "sbt-typelevel-ci-release" % "0.8.0")
1010
addSbtPlugin("org.jmotor.sbt" % "sbt-dependency-updates" % "1.2.9")

0 commit comments

Comments
 (0)