File tree 4 files changed +25
-2
lines changed
4 files changed +25
-2
lines changed Original file line number Diff line number Diff line change 20
20
java : 17, 11, 8
21
21
scala : 2.12.20
22
22
cmd : |
23
- sbt ++$MATRIX_SCALA test ^ scripted
23
+ sbt ++$MATRIX_SCALA test scripted
24
24
25
25
finish :
26
26
name : Finish
Original file line number Diff line number Diff line change 18
18
persist-credentials : false
19
19
20
20
- name : Check project is formatted
21
- uses : jrouly/scalafmt-native-action@v3
21
+ uses : jrouly/scalafmt-native-action@v4
22
22
with :
23
23
arguments : ' --list --mode diff-ref=origin/main'
Original file line number Diff line number Diff line change @@ -24,3 +24,8 @@ align.tokens."+" = [
24
24
]
25
25
}
26
26
]
27
+ fileOverride {
28
+ "glob:**/scala-3/**" {
29
+ runner.dialect = scala3
30
+ }
31
+ }
Original file line number Diff line number Diff line change @@ -11,6 +11,10 @@ developers += Developer(
11
11
url(" https://github.com/playframework" )
12
12
)
13
13
14
+ lazy val scala212 = " 2.12.20"
15
+ lazy val scala3 = " 3.3.4"
16
+ ThisBuild / crossScalaVersions := Seq (scala212)
17
+
14
18
libraryDependencies ++= Seq (
15
19
" org.webjars" % " webjars-locator-core" % " 0.59" ,
16
20
" org.specs2" %% " specs2-core" % " 4.20.8" % " test" ,
@@ -26,3 +30,17 @@ Global / onLoad := (Global / onLoad).value.andThen { s =>
26
30
dynverAssertTagVersion.value
27
31
s
28
32
}
33
+
34
+ (pluginCrossBuild / sbtVersion) := {
35
+ scalaBinaryVersion.value match {
36
+ case " 2.12" => " 1.10.2"
37
+ case _ => " 2.0.0-M2"
38
+ }
39
+ }
40
+
41
+ scalacOptions := {
42
+ CrossVersion .partialVersion(scalaVersion.value) match {
43
+ case Some ((2 , major)) => Seq (" -Xsource:3" )
44
+ case _ => Seq .empty
45
+ }
46
+ }
You can’t perform that action at this time.
0 commit comments