Skip to content

Commit 351df2c

Browse files
authored
Merge pull request #193 from scala/plugin-3.0
2 parents 0c59bbe + 897dd6e commit 351df2c

File tree

6 files changed

+61
-71
lines changed

6 files changed

+61
-71
lines changed

.github/workflows/ci.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: test
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
jobs:
8+
test:
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
java: [8, 11, 17]
13+
scala: [2.13.6, 3.0.2]
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v2
17+
with:
18+
fetch-depth: 0
19+
- uses: coursier/cache-action@v6
20+
- uses: actions/setup-java@v2
21+
with:
22+
distribution: adopt
23+
java-version: ${{matrix.java}}
24+
- name: Test
25+
run: sbt ++${{matrix.scala}} test core/headerCheck package

.github/workflows/release.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Release
2+
on:
3+
push:
4+
tags: ["*"]
5+
jobs:
6+
publish:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
with:
11+
fetch-depth: 0
12+
- uses: actions/setup-java@v2
13+
with:
14+
distribution: adopt
15+
java-version: 8
16+
- run: sbt versionCheck ci-release
17+
env:
18+
PGP_PASSPHRASE: ${{secrets.PGP_PASSPHRASE}}
19+
PGP_SECRET: ${{secrets.PGP_SECRET}}
20+
SONATYPE_PASSWORD: ${{secrets.SONATYPE_PASSWORD}}
21+
SONATYPE_USERNAME: ${{secrets.SONATYPE_USERNAME}}

.travis.yml

-19
This file was deleted.

build.sbt

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
ThisBuild / crossScalaVersions := Seq("2.13.6", "3.0.2")
2+
ThisBuild / scalaVersion := (ThisBuild / crossScalaVersions).value.head
3+
4+
// shouldn't be necessary anymore after https://github.com/lampepfl/dotty/pull/13498
5+
// makes it into a release
6+
ThisBuild / libraryDependencySchemes += "org.scala-lang" %% "scala3-library" % "semver-spec"
7+
8+
// this was necessary to get us from 3.0.0 to 3.0.2, but we should be able to remove
9+
// it after the next release
10+
import com.typesafe.tools.mima.core._
11+
ThisBuild / mimaBinaryIssueFilters ++= Seq(
12+
ProblemFilters.exclude[IncompatibleSignatureProblem]("*"),
13+
)
14+
115
Global / cancelable := true
216
publish / skip := true // in root
317

build.sh

-51
This file was deleted.

project/plugins.sbt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
addSbtPlugin("org.scala-lang.modules" % "sbt-scala-module" % "2.4.0")
1+
addSbtPlugin("org.scala-lang.modules" % "sbt-scala-module" % "3.0.0")

0 commit comments

Comments
 (0)