Skip to content

Commit 3c001d6

Browse files
Merge pull request #166 from rpiaggio/github-actions
Drop support for Scala 2.11 & Scala.js 0.6.
2 parents 8b121c8 + 7485127 commit 3c001d6

4 files changed

Lines changed: 8 additions & 31 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,15 @@ env:
55
SCALA_VERSION: 2.12.12 # Used only for Doc Site
66
jobs:
77
validate:
8-
name: Scala ${{ matrix.scala }}, Java ${{ matrix.java }}, Scala.js ${{ matrix.scalajs }}
8+
name: Scala ${{ matrix.scala }}, Java ${{ matrix.java }}
99
runs-on: ubuntu-latest
1010
strategy:
1111
fail-fast: false
1212
matrix:
1313
java: [adopt@1.8, adopt@1.11, adopt@1.14]
14-
scala: [2.11.12, 2.12.12, 2.13.3]
15-
scalajs: [0.6.33, 1.1.1]
16-
exclude:
17-
- scala: 2.11.12
18-
scalajs: 1.1.1
14+
scala: [2.12.12, 2.13.3]
1915
env:
2016
SCALA_VERSION: ${{ matrix.scala }}
21-
SCALAJS_VERSION: ${{ matrix.scalajs }}
2217
steps:
2318
- uses: actions/checkout@v2
2419
with:

.github/workflows/release.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ jobs:
3434
- name: Publish
3535
run: |
3636
csbt ci-release
37-
SCALAJS_VERSION=0.6.33 csbt ci-release
3837
env:
3938
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
4039
PGP_SECRET: ${{ secrets.PGP_SECRET }}

build.sbt

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import sbtcrossproject.CrossPlugin.autoImport.{crossProject, CrossType}
22

3-
val customScalaJSVersion = Option(System.getenv("SCALAJS_VERSION"))
4-
53
lazy val `cats-time` = project
64
.in(file("."))
75
.disablePlugins(MimaPlugin)
@@ -18,9 +16,6 @@ lazy val core = crossProject(JSPlatform, JVMPlatform)
1816
.jsSettings(
1917
libraryDependencies += "io.github.cquiroz" %%% "scala-java-time" % "2.0.0"
2018
)
21-
.jvmSettings(
22-
skip.in(publish) := customScalaJSVersion.isDefined
23-
)
2419

2520
lazy val coreJS = core.js
2621
lazy val coreJVM = core.jvm
@@ -34,14 +29,6 @@ lazy val docs = project
3429
.enablePlugins(MdocPlugin)
3530
.settings(mdocIn := sourceDirectory.value / "main" / "mdoc")
3631

37-
val catsV = Def.setting(if (scalaBinaryVersion.value == "2.11") "2.0.0" else "2.1.1")
38-
val catsTestkitV = Def.setting(
39-
if (scalaBinaryVersion.value == "2.11") "1.0.0-RC1"
40-
else if (customScalaJSVersion.isDefined) "1.0.1"
41-
else "2.0.0"
42-
)
43-
val github4sV = Def.setting(if (scalaBinaryVersion.value == "2.11") "0.20.1" else "0.24.1")
44-
4532
lazy val contributors = Seq(
4633
"ChristopherDavenport" -> "Christopher Davenport"
4734
)
@@ -50,13 +37,13 @@ lazy val contributors = Seq(
5037
lazy val commonSettings = Seq(
5138
organization := "io.chrisdavenport",
5239
scalaVersion := "2.13.3",
53-
crossScalaVersions := Seq(scalaVersion.value, "2.12.12", "2.11.12"),
40+
crossScalaVersions := Seq(scalaVersion.value, "2.12.12"),
5441
addCompilerPlugin("org.typelevel" % "kind-projector" % "0.11.0" cross CrossVersion.full),
5542
addCompilerPlugin("com.olegpy" %% "better-monadic-for" % "0.3.1"),
5643
libraryDependencies ++= Seq(
57-
"org.typelevel" %%% "cats-core" % catsV.value,
58-
"org.scala-lang.modules" %%% "scala-collection-compat" % "2.1.6" % Test,
59-
"org.typelevel" %%% "cats-testkit-scalatest" % catsTestkitV.value % Test
44+
"org.typelevel" %%% "cats-core" % "2.1.1",
45+
"org.scala-lang.modules" %%% "scala-collection-compat" % "2.1.6" % Test,
46+
"org.typelevel" %%% "cats-testkit-scalatest" % "2.0.0" % Test
6047
)
6148
)
6249

@@ -155,7 +142,7 @@ lazy val micrositeSettings = Seq(
155142
"-Ywarn-unused:imports",
156143
"-Xlint:-missing-interpolator,_"
157144
),
158-
libraryDependencies += "com.47deg" %% "github4s" % github4sV.value,
145+
libraryDependencies += "com.47deg" %% "github4s" % "0.24.1",
159146
micrositePushSiteWith := GitHub4s,
160147
micrositeGitterChannel := true,
161148
micrositeGitterChannelUrl := "typelevel/cats",

project/plugins.sbt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
import scala.util.Properties._
2-
3-
val scalaJSVersion = envOrElse("SCALAJS_VERSION", "1.1.1")
4-
51
addSbtPlugin("com.dwijnand" % "sbt-travisci" % "1.2.0")
62
addSbtPlugin("com.typesafe.sbt" % "sbt-git" % "1.0.0")
73
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "2.0.1")
@@ -17,4 +13,4 @@ addSbtPlugin("pl.project13.scala" % "sbt-jmh" % "0.3.7")
1713
addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.5.1")
1814
addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "1.0.0")
1915
addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.5.3")
20-
addSbtPlugin("org.scala-js" % "sbt-scalajs" % scalaJSVersion)
16+
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.1.1")

0 commit comments

Comments
 (0)