Skip to content

Commit 188e995

Browse files
javierpedreiraalbertpastrana
authored andcommitted
Adds cross-compile configuration to make it compatible with scala 12
1 parent 42e4c5e commit 188e995

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ jobs:
4545
- name: Publish library
4646
env:
4747
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
48-
run: sbt publish
48+
run: sbt "+publish"

build.sbt

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
1-
ThisBuild / scalaVersion := "2.13.3"
1+
import sbt.Keys.scalaVersion
2+
23
ThisBuild / organization := "com.intenthq"
34
ThisBuild / organizationName := "Intent HQ"
45

6+
lazy val scala212 = "2.12.12"
7+
lazy val scala213 = "2.13.3"
8+
lazy val supportedScalaVersions = List(scala213, scala212)
9+
510
lazy val root = (project in file("."))
611
.settings(
712
name := "scala-secret",
8-
libraryDependencies += Dependencies.weaver
13+
libraryDependencies += Dependencies.weaver,
14+
scalaVersion := scala213,
15+
crossScalaVersions := supportedScalaVersions
916
)
1017

1118
testFrameworks += new TestFramework("weaver.framework.TestFramework")

0 commit comments

Comments
 (0)