Skip to content

Commit 8afa663

Browse files
Updated sbt-ci-release to use central.sonatype.com for artifact publication
1 parent 29e91ec commit 8afa663

File tree

6 files changed

+14
-11
lines changed

6 files changed

+14
-11
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,8 @@ jobs:
1919
distribution: "temurin"
2020
cache: "sbt"
2121
java-version: ${{ matrix.java }}
22-
- run: |
23-
ls $JAVA_HOME
24-
sbt scripted +test
25-
shell: bash
22+
- uses: sbt/setup-sbt@v1
23+
- run: sbt scripted +test
2624

2725
check:
2826
runs-on: ubuntu-latest
@@ -33,4 +31,5 @@ jobs:
3331
distribution: "temurin"
3432
cache: "sbt"
3533
java-version: 17
34+
- uses: sbt/setup-sbt@v1
3635
- run: sbt checkAll

.github/workflows/release.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
name: Release
22
on:
33
push:
4-
branches: [main]
54
tags: ["*"]
65
jobs:
76
publish:
87
runs-on: ubuntu-latest
98
steps:
10-
- uses: actions/checkout@v2
11-
- uses: olafurpg/setup-scala@v13
9+
- uses: actions/checkout@v4
10+
- uses: actions/setup-java@v4
11+
with:
12+
distribution: "temurin"
13+
java-version: 17
14+
- uses: sbt/setup-sbt@v1
1215
- uses: olafurpg/setup-gpg@v3
1316
- run: git fetch --unshallow
1417
- name: Publish ${{ github.ref }}

.github/workflows/sourcegraph.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
distribution: "temurin"
1616
cache: "sbt"
1717
java-version: 17
18+
- uses: sbt/setup-sbt@v1
1819
- run: sbt dumpVersion publishLocal
1920
- run: echo "addSbtPlugin(\"com.sourcegraph\" % \"sbt-sourcegraph\" % \"$(cat VERSION)\")" > project/sourcegraph_generated.sbt
2021
- run: sbt sourcegraphEnable sourcegraphScip

build.sbt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import java.util.Properties
33
import com.sourcegraph.sbtsourcegraph.Versions
44

55
val V = new {
6-
def scala212 = "2.12.12"
6+
def scala212 = "2.12.20"
77
def scalameta = "4.4.25"
88
}
99

@@ -12,7 +12,7 @@ ThisBuild / scalafixDependencies += "com.github.liancheng" %% "organize-imports"
1212
ThisBuild / versionScheme := Some("early-semver")
1313
organization := "com.sourcegraph"
1414
semanticdbEnabled := !scalaVersion.value.startsWith("2.10")
15-
semanticdbVersion := "4.4.26"
15+
semanticdbVersion := "4.12.2"
1616
homepage := Some(url("https://github.com/sourcegraph/sbt-sourcegraph"))
1717
licenses := List(
1818
"Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")

project/build.properties

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

project/plugins.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.5.5")
1+
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.11.2")
22
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.10.0")
33
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.3")
44
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.9.29")

0 commit comments

Comments
 (0)