Skip to content

Commit 3c3e325

Browse files
committed
update headers with sbt-header
1 parent bac7932 commit 3c3e325

File tree

6 files changed

+25
-3
lines changed

6 files changed

+25
-3
lines changed

Diff for: build.sbt

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
val sharedSettings = ScalaModulePlugin.scalaModuleSettings ++ ScalaModulePlugin.scalaModuleOsgiSettings ++ Seq(
22
name := "scala-async",
33
scalaModuleAutomaticModuleName := Some("scala.async"),
4-
versionPolicyIntention := Compatibility.BinaryAndSourceCompatible,
54

65
OsgiKeys.exportPackage := Seq(s"scala.async.*;version=${version.value}"),
76

@@ -12,16 +11,23 @@ val sharedSettings = ScalaModulePlugin.scalaModuleSettings ++ ScalaModulePlugin.
1211
ScalaModulePlugin.enableOptimizer,
1312
testOptions += Tests.Argument(TestFrameworks.JUnit, "-q", "-v", "-s"),
1413
Test / scalacOptions ++= Seq("-Yrangepos"),
15-
scalacOptions ++= List("-deprecation" , "-Xasync")
14+
scalacOptions ++= List("-deprecation" , "-Xasync"),
1615
)
1716

1817
lazy val proj = crossProject(JSPlatform, JVMPlatform)
1918
.withoutSuffixFor(JVMPlatform)
2019
.crossType(CrossType.Pure)
2120
.in(file("."))
2221
.settings(sharedSettings)
22+
// until we have actually published for Scala.js
23+
.jvmSettings(versionPolicyIntention := Compatibility.BinaryAndSourceCompatible)
24+
.jsSettings(versionPolicyIntention := Compatibility.None)
25+
// override sbt-scala-module default (which is unsuitable for Scala.js)
26+
.jsSettings(Test / fork := false)
2327

24-
lazy val root = project.in(file(".")).settings(sharedSettings)
28+
lazy val root = project.in(file("."))
29+
.settings(sharedSettings)
30+
.aggregate(proj.jvm, proj.js)
2531

2632
Global / parallelExecution := false
2733

Diff for: src/main/scala/scala/async/FutureStateMachine.scala

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* See the NOTICE file distributed with this work for
1010
* additional information regarding copyright ownership.
1111
*/
12+
1213
package scala.async
1314

1415
import java.util.Objects

Diff for: src/test/scala/scala/async/ExceptionalTest.scala

+12
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
/*
2+
* Scala (https://www.scala-lang.org)
3+
*
4+
* Copyright EPFL and Lightbend, Inc.
5+
*
6+
* Licensed under Apache License 2.0
7+
* (http://www.apache.org/licenses/LICENSE-2.0).
8+
*
9+
* See the NOTICE file distributed with this work for
10+
* additional information regarding copyright ownership.
11+
*/
12+
113
package scala.async
214

315
import java.util.concurrent.atomic.AtomicReference

Diff for: src/test/scala/scala/async/FutureSpec.scala

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* See the NOTICE file distributed with this work for
1010
* additional information regarding copyright ownership.
1111
*/
12+
1213
package scala.async
1314

1415
import java.util.concurrent.ConcurrentHashMap

Diff for: src/test/scala/scala/async/SmokeTest.scala

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* See the NOTICE file distributed with this work for
1010
* additional information regarding copyright ownership.
1111
*/
12+
1213
package scala.async
1314

1415
import org.junit.{Assert, Test}

Diff for: src/test/scala/scala/async/TestUtil.scala

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* See the NOTICE file distributed with this work for
1010
* additional information regarding copyright ownership.
1111
*/
12+
1213
package scala.async
1314

1415
import java.util.concurrent.{CountDownLatch, TimeUnit}

0 commit comments

Comments
 (0)