Skip to content

Commit 1ac0af7

Browse files
authored
Merge pull request #2878 from armanbilge/topic/s01-2.x
Setup publishing at s01 for 2.x
2 parents 0f99472 + 8f83458 commit 1ac0af7

File tree

4 files changed

+17
-4
lines changed

4 files changed

+17
-4
lines changed

.github/workflows/ci.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
matrix:
2929
os: [ubuntu-latest]
3030
scala: [3.0.2, 2.12.15, 2.13.6]
31-
java: [adoptium@11]
31+
java: [temurin@11]
3232
runs-on: ${{ matrix.os }}
3333
steps:
3434
- name: Checkout current branch (full)
@@ -78,7 +78,7 @@ jobs:
7878
matrix:
7979
os: [ubuntu-latest]
8080
scala: [2.13.6]
81-
java: [adoptium@11]
81+
java: [temurin@11]
8282
runs-on: ${{ matrix.os }}
8383
steps:
8484
- name: Checkout current branch (full)
@@ -146,7 +146,7 @@ jobs:
146146
matrix:
147147
os: [ubuntu-latest]
148148
scala: [2.13.6]
149-
java: [adoptium@11]
149+
java: [temurin@11]
150150
runs-on: ${{ matrix.os }}
151151
steps:
152152
- name: Download target directories (3.0.2)

build.sbt

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ val Scala213 = "2.13.6"
2222
ThisBuild / crossScalaVersions := Seq("3.0.2", "2.12.15", Scala213)
2323

2424
ThisBuild / githubWorkflowEnv += ("JABBA_INDEX" -> "https://github.com/typelevel/jdk-index/raw/main/index.json")
25-
ThisBuild / githubWorkflowJavaVersions := Seq("adoptium@11")
25+
ThisBuild / githubWorkflowJavaVersions := Seq("temurin@11")
2626

2727
ThisBuild / spiewakCiReleaseSnapshots := true
2828

project/Publish.scala

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import sbt._, Keys._
2+
3+
import sbtspiewak.SpiewakSonatypePlugin
4+
import xerial.sbt.Sonatype.SonatypeKeys._
5+
6+
object Publish extends AutoPlugin {
7+
8+
override def requires = SpiewakSonatypePlugin
9+
override def trigger = allRequirements
10+
11+
override def projectSettings = Seq(sonatypeCredentialHost := "s01.oss.sonatype.org")
12+
}

project/plugins.sbt

+1
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ addSbtPlugin("pl.project13.scala" % "sbt-jmh" % "0.4.3")
77
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.3")
88
addSbtPlugin("com.47deg" % "sbt-microsites" % "1.3.4")
99
addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.2.23")
10+
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.11")

0 commit comments

Comments
 (0)