|
1 | 1 | import sbtcrossproject.crossProject |
2 | 2 |
|
3 | | -crossScalaVersions in ThisBuild := { |
4 | | - val allVersions = Seq("2.12.10", "2.11.12", "2.10.7", "2.13.1") |
5 | | - if (scalaJSVersion.startsWith("0.6.")) |
6 | | - allVersions |
7 | | - else |
8 | | - allVersions.filter(!_.startsWith("2.10.")) |
9 | | -} |
| 3 | +crossScalaVersions in ThisBuild := Seq("2.12.19", "2.13.14") |
10 | 4 | scalaVersion in ThisBuild := (crossScalaVersions in ThisBuild).value.head |
11 | 5 |
|
12 | 6 | val commonSettings: Seq[Setting[_]] = Seq( |
13 | 7 | version := "1.0.1-SNAPSHOT", |
14 | | - organization := "org.scala-js", |
| 8 | + organization := "org.scala-native", |
15 | 9 | scalacOptions ++= Seq("-deprecation", "-feature", "-Xfatal-warnings"), |
16 | 10 |
|
17 | | - homepage := Some(url("http://scala-js.org/")), |
| 11 | + homepage := Some(url("http://scala-native.org/")), |
18 | 12 | licenses += ("BSD New", |
19 | | - url("https://github.com/scala-js/scala-js-java-logging/blob/main/LICENSE")), |
| 13 | + url("https://github.com/scala-native/scala-native-java-logging/blob/main/LICENSE")), |
20 | 14 | scmInfo := Some(ScmInfo( |
21 | | - url("https://github.com/scala-js/scala-js-java-logging"), |
22 | | - "scm:git:git@github.com:scala-js/scala-js-java-logging.git", |
23 | | - Some("scm:git:git@github.com:scala-js/scala-js-java-logging.git"))) |
| 15 | + url("https://github.com/scala-native/scala-native-java-logging"), |
| 16 | + "scm:git:git@github.com:scala-native/scala-native-java-logging.git", |
| 17 | + Some("scm:git:git@github.com:scala-native/scala-native-java-logging.git"))) |
24 | 18 | ) |
25 | 19 |
|
26 | 20 | lazy val root: Project = project.in(file(".")). |
27 | | - enablePlugins(ScalaJSPlugin). |
| 21 | + enablePlugins(ScalaNativePlugin). |
28 | 22 | settings(commonSettings). |
29 | 23 | settings( |
30 | | - name := "scalajs-java-logging", |
| 24 | + name := "scala-native-java-logging", |
31 | 25 |
|
32 | 26 | mappings in (Compile, packageBin) ~= { |
33 | 27 | _.filter(!_._2.endsWith(".class")) |
@@ -64,17 +58,17 @@ lazy val root: Project = project.in(file(".")). |
64 | 58 | pomIncludeRepository := { _ => false } |
65 | 59 | ) |
66 | 60 |
|
67 | | -lazy val testSuite = crossProject(JSPlatform, JVMPlatform). |
68 | | - jsConfigure(_.enablePlugins(ScalaJSJUnitPlugin)). |
| 61 | +lazy val testSuite = crossProject(NativePlatform, JVMPlatform). |
| 62 | + nativeConfigure(_.enablePlugins(ScalaNativeJUnitPlugin)). |
69 | 63 | settings(commonSettings: _*). |
70 | 64 | settings( |
71 | 65 | testOptions += |
72 | 66 | Tests.Argument(TestFramework("com.novocode.junit.JUnitFramework"), "-v", "-a") |
73 | 67 | ). |
74 | | - jsSettings( |
75 | | - name := "java.logging testSuite on JS" |
| 68 | + nativeSettings( |
| 69 | + name := "java.logging testSuite on Native" |
76 | 70 | ). |
77 | | - jsConfigure(_.dependsOn(root)). |
| 71 | + nativeConfigure(_.dependsOn(root)). |
78 | 72 | jvmSettings( |
79 | 73 | name := "java.logging testSuite on JVM", |
80 | 74 | libraryDependencies += |
|
0 commit comments