summaryrefslogtreecommitdiff
path: root/build.sbt
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@typesafe.com>2015-07-14 15:00:49 -0700
committerAdriaan Moors <adriaan.moors@typesafe.com>2015-07-15 08:25:41 -0700
commitfa8012d28687986902ce1255a19f9f49affb3bca (patch)
treeed79f2e76df3b7df1634dba252627260d4815a55 /build.sbt
parenteda41a253ee004318262ce1a12c4f44a45aec229 (diff)
downloadscala-fa8012d28687986902ce1255a19f9f49affb3bca.tar.gz
scala-fa8012d28687986902ce1255a19f9f49affb3bca.tar.bz2
scala-fa8012d28687986902ce1255a19f9f49affb3bca.zip
Remove our fork of forkjoin. Java 8 bundles it.
Provide deprecated compatibility stubs for the types and static members, which forward as follows: ``` scala.concurrent.forkjoin.ForkJoinPool => java.util.concurrent.ForkJoinPool scala.concurrent.forkjoin.ForkJoinTask => java.util.concurrent.ForkJoinTask scala.concurrent.forkjoin.ForkJoinWorkerThread => java.util.concurrent.ForkJoinWorkerThread scala.concurrent.forkjoin.LinkedTransferQueue => java.util.concurrent.LinkedTransferQueue scala.concurrent.forkjoin.RecursiveAction => java.util.concurrent.RecursiveAction scala.concurrent.forkjoin.RecursiveTask => java.util.concurrent.RecursiveTask scala.concurrent.forkjoin.ThreadLocalRandom => java.util.concurrent.ThreadLocalRandom ``` To prepare for Java 9, the Scala library does not itself use `sun.misc.Unsafe`. However, for now, it provide a convenience accessor for it via `scala.concurrent.util.Unsafe`. This (deprecated) class will be removed as soon as the eco-system drops its use (akka-actor, I'm looking at you).
Diffstat (limited to 'build.sbt')
-rw-r--r--build.sbt26
1 files changed, 1 insertions, 25 deletions
diff --git a/build.sbt b/build.sbt
index 4a01ac4549..d56fb99a28 100644
--- a/build.sbt
+++ b/build.sbt
@@ -156,7 +156,6 @@ lazy val library = configureAsSubproject(project)
Seq("-doc-no-compile", libraryAuxDir.toString)
},
includeFilter in unmanagedResources in Compile := libIncludes)
- .dependsOn (forkjoin)
lazy val reflect = configureAsSubproject(project)
.settings(generatePropertiesFileSettings: _*)
@@ -213,8 +212,6 @@ lazy val scaladoc = configureAsSubproject(project)
lazy val scalap = configureAsSubproject(project).
dependsOn(compiler)
-lazy val forkjoin = configureAsForkOfJavaProject(project)
-
lazy val partestExtras = configureAsSubproject(Project("partest-extras", file(".") / "src" / "partest-extras"))
.dependsOn(repl)
.settings(clearSourceAndResourceDirectories: _*)
@@ -283,7 +280,7 @@ lazy val test = project.
)
lazy val root = (project in file(".")).
- aggregate(library, forkjoin, reflect, compiler, interactive, repl,
+ aggregate(library, reflect, compiler, interactive, repl,
scaladoc, scalap, partestExtras, junit).settings(
sources in Compile := Seq.empty,
onLoadMessage := """|*** Welcome to the sbt build definition for Scala! ***
@@ -312,27 +309,6 @@ def configureAsSubproject(project: Project): Project = {
(project in base).settings(scalaSubprojectSettings: _*)
}
-/**
- * Configuration for subprojects that are forks of some Java projects
- * we depend on. At the moment there's just forkjoin.
- *
- * We do not publish artifacts for those projects but we package their
- * binaries in a jar of other project (compiler or library).
- *
- * For that reason we disable docs generation, packaging and publishing.
- */
-def configureAsForkOfJavaProject(project: Project): Project = {
- val base = file(".") / "src" / project.id
- (project in base).
- settings(commonSettings: _*).
- settings(disableDocsAndPublishingTasks: _*).
- settings(
- sourceDirectory in Compile := baseDirectory.value,
- javaSource in Compile := (sourceDirectory in Compile).value,
- sources in Compile in doc := Seq.empty,
- classDirectory in Compile := buildDirectory.value / "libs/classes" / thisProject.value.id
- )
-}
lazy val buildDirectory = settingKey[File]("The directory where all build products go. By default ./build")
lazy val copyrightString = settingKey[String]("Copyright string.")