Skip to content

Commit

Permalink
Merge pull request #2878 from armanbilge/topic/s01-2.x
Browse files Browse the repository at this point in the history
Setup publishing at s01 for 2.x
  • Loading branch information
mpilquist authored Apr 22, 2022
2 parents 0f99472 + 8f83458 commit 1ac0af7
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
matrix:
os: [ubuntu-latest]
scala: [3.0.2, 2.12.15, 2.13.6]
java: [adoptium@11]
java: [temurin@11]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout current branch (full)
Expand Down Expand Up @@ -78,7 +78,7 @@ jobs:
matrix:
os: [ubuntu-latest]
scala: [2.13.6]
java: [adoptium@11]
java: [temurin@11]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout current branch (full)
Expand Down Expand Up @@ -146,7 +146,7 @@ jobs:
matrix:
os: [ubuntu-latest]
scala: [2.13.6]
java: [adoptium@11]
java: [temurin@11]
runs-on: ${{ matrix.os }}
steps:
- name: Download target directories (3.0.2)
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ val Scala213 = "2.13.6"
ThisBuild / crossScalaVersions := Seq("3.0.2", "2.12.15", Scala213)

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

ThisBuild / spiewakCiReleaseSnapshots := true

Expand Down
12 changes: 12 additions & 0 deletions project/Publish.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import sbt._, Keys._

import sbtspiewak.SpiewakSonatypePlugin
import xerial.sbt.Sonatype.SonatypeKeys._

object Publish extends AutoPlugin {

override def requires = SpiewakSonatypePlugin
override def trigger = allRequirements

override def projectSettings = Seq(sonatypeCredentialHost := "s01.oss.sonatype.org")
}
1 change: 1 addition & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ addSbtPlugin("pl.project13.scala" % "sbt-jmh" % "0.4.3")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.3")
addSbtPlugin("com.47deg" % "sbt-microsites" % "1.3.4")
addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.2.23")
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.11")

0 comments on commit 1ac0af7

Please sign in to comment.