1
1
import sbtcrossproject .crossProject
2
2
3
- crossScalaVersions in ThisBuild := Seq (" 2.12.19" , " 2.13.14" )
4
- scalaVersion in ThisBuild := (crossScalaVersions in ThisBuild ).value.head
5
-
3
+ ThisBuild / crossScalaVersions := Seq (" 2.12.19" , " 2.13.14" , " 3.3.3" )
4
+ ThisBuild / scalaVersion := (ThisBuild / crossScalaVersions).value.last
6
5
val commonSettings : Seq [Setting [_]] = Seq (
7
6
version := " 1.0.0-SNAPSHOT" ,
8
7
organization := " org.scala-native" ,
9
- scalacOptions ++= Seq (" -deprecation" , " -feature" ),
10
-
8
+ scalacOptions ++= Seq (" -deprecation" , " -feature" , " -release:8" ),
11
9
homepage := Some (url(" http://scala-native.org/" )),
12
10
licenses += (" BSD New" ,
13
11
url(" https://github.com/scala-native/scala-native-java-logging/blob/main/LICENSE" )),
@@ -17,17 +15,18 @@ val commonSettings: Seq[Setting[_]] = Seq(
17
15
Some (
" scm:git:[email protected] :scala-native/scala-native-java-logging.git" )))
18
16
)
19
17
20
- lazy val root : Project = project.in(file(" ." )).
21
- enablePlugins(ScalaNativePlugin ).
22
- settings(commonSettings).
23
- settings(
18
+ lazy val root : Project = project
19
+ .in(file(" ." ))
20
+ .enablePlugins(ScalaNativePlugin )
21
+ .settings(commonSettings)
22
+ .settings(
24
23
name := " scala-native-java-logging" ,
25
-
26
- mappings in (Compile , packageBin) ~= {
27
- _.filter(! _._2.endsWith(" .class" ))
24
+ Compile / packageBin / mappings ~= {
25
+ _.filterNot { case (_, path) =>
26
+ Seq (" .class" , " .tasty" ).exists(path.endsWith)
27
+ }
28
28
},
29
29
exportJars := true ,
30
-
31
30
publishMavenStyle := true ,
32
31
publishTo := {
33
32
val nexus = " https://oss.sonatype.org/"
@@ -37,7 +36,7 @@ lazy val root: Project = project.in(file(".")).
37
36
Some (" releases" at nexus + " service/local/staging/deploy/maven2" )
38
37
},
39
38
pomExtra := (
40
- <developers >
39
+ <developers >
41
40
<developer >
42
41
<id >sjrd</id >
43
42
<name >S ébastien Doeraene </name >
@@ -58,19 +57,17 @@ lazy val root: Project = project.in(file(".")).
58
57
pomIncludeRepository := { _ => false }
59
58
)
60
59
61
- lazy val testSuite = crossProject(NativePlatform , JVMPlatform ).
62
- nativeConfigure(_.enablePlugins(ScalaNativeJUnitPlugin )).
63
- settings(commonSettings : _* ).
64
- settings(
65
- testOptions +=
66
- Tests .Argument (TestFramework (" com.novocode.junit.JUnitFramework" ), " -v" , " -a" )
67
- ).
68
- nativeSettings(
60
+ lazy val testSuite = crossProject(NativePlatform , JVMPlatform )
61
+ .nativeConfigure(_.enablePlugins(ScalaNativeJUnitPlugin ))
62
+ .settings(commonSettings : _* )
63
+ .settings(
64
+ testOptions += Tests .Argument (TestFramework (" com.novocode.junit.JUnitFramework" ), " -v" , " -a" )
65
+ )
66
+ .nativeSettings(
69
67
name := " java.logging testSuite on Native"
70
- ).
71
- nativeConfigure(_.dependsOn(root)).
72
- jvmSettings(
68
+ )
69
+ . nativeConfigure(_.dependsOn(root))
70
+ . jvmSettings(
73
71
name := " java.logging testSuite on JVM" ,
74
- libraryDependencies +=
75
- " com.novocode" % " junit-interface" % " 0.9" % " test"
72
+ libraryDependencies += " com.novocode" % " junit-interface" % " 0.9" % " test"
76
73
)
0 commit comments