@@ -73,7 +73,9 @@ object DottyBuild extends Build {
73
73
javaSource in Test := baseDirectory.value / " test" ,
74
74
resourceDirectory in Compile := baseDirectory.value / " resources" ,
75
75
unmanagedSourceDirectories in Compile := Seq ((scalaSource in Compile ).value),
76
+ unmanagedSourceDirectories in Compile += baseDirectory.value / " dottydoc" / " src" ,
76
77
unmanagedSourceDirectories in Test := Seq ((scalaSource in Test ).value),
78
+ unmanagedSourceDirectories in Test += baseDirectory.value / " dottydoc" / " test" ,
77
79
78
80
// set system in/out for repl
79
81
connectInput in run := true ,
@@ -100,6 +102,7 @@ object DottyBuild extends Build {
100
102
" org.scala-lang.modules" %% " scala-partest" % " 1.0.11" % " test" ,
101
103
" com.novocode" % " junit-interface" % " 0.11" % " test" ,
102
104
" com.googlecode.java-diff-utils" % " diffutils" % " 1.3.0" ,
105
+ " com.github.spullara.mustache.java" % " compiler" % " 0.9.3" ,
103
106
" com.typesafe.sbt" % " sbt-interface" % sbtVersion.value),
104
107
// enable improved incremental compilation algorithm
105
108
incOptions := incOptions.value.withNameHashing(true ),
@@ -206,7 +209,6 @@ object DottyBuild extends Build {
206
209
207
210
lazy val `dotty-bridge` = project.in(file(" bridge" )).
208
211
dependsOn(dotty).
209
- dependsOn(dottydoc).
210
212
settings(
211
213
overrideScalaVersionSetting,
212
214
@@ -265,55 +267,6 @@ object DottyInjectedPlugin extends AutoPlugin {
265
267
).
266
268
settings(publishing)
267
269
268
- lazy val dottydoc = project.in(file(" dottydoc" )).dependsOn(dotty).settings(
269
- // resources in Compile += (fastOptJS in (dottydocJS, Compile)).value.data,
270
- resourceDirectory in Compile := baseDirectory.value / " resources" ,
271
- scalaSource in Compile := baseDirectory.value / " src" ,
272
- javaSource in Compile := baseDirectory.value / " src" ,
273
- scalaSource in Test := baseDirectory.value / " test" ,
274
- javaSource in Test := baseDirectory.value / " test" ,
275
-
276
- libraryDependencies ++= Seq (
277
- " com.novocode" % " junit-interface" % " 0.11" % " test" ,
278
- " com.github.spullara.mustache.java" % " compiler" % " 0.9.3"
279
- ),
280
-
281
- // enable improved incremental compilation algorithm
282
- incOptions := incOptions.value.withNameHashing(true ),
283
-
284
- mainClass in (Compile , run) := Some (" dotty.tools.dottydoc.Main" ),
285
- fork in run := true ,
286
- fork in Test := true ,
287
- parallelExecution in Test := false ,
288
-
289
- // http://grokbase.com/t/gg/simple-build-tool/135ke5y90p/sbt-setting-jvm-boot-paramaters-for-scala
290
- javaOptions <++= (dependencyClasspath in Runtime , packageBin in Compile ) map { (attList, bin) =>
291
- // put the Scala {library, reflect} in the classpath
292
- val path = for {
293
- file <- attList.map(_.data)
294
- path = file.getAbsolutePath
295
- } yield " -Xbootclasspath/p:" + path
296
- // dotty itself needs to be in the bootclasspath
297
- val fullpath = (" -Xbootclasspath/a:" + bin) :: path.toList
298
- // System.err.println("BOOTPATH: " + fullpath)
299
-
300
- val travis_build = // propagate if this is a travis build
301
- if (sys.props.isDefinedAt(JENKINS_BUILD ))
302
- List (s " -D $JENKINS_BUILD= ${sys.props(JENKINS_BUILD )}" ) ::: jenkinsMemLimit
303
- else
304
- List ()
305
-
306
- val tuning =
307
- if (sys.props.isDefinedAt(" Oshort" ))
308
- // Optimize for short-running applications, see https://github.com/lampepfl/dotty/issues/222
309
- List (" -XX:+TieredCompilation" , " -XX:TieredStopAtLevel=1" )
310
- else
311
- List ()
312
-
313
- (" -DpartestParentID=" + pid) :: tuning ::: agentOptions ::: travis_build ::: fullpath
314
- }
315
- ).settings(publishing)
316
-
317
270
/** A sandbox to play with the Scala.js back-end of dotty.
318
271
*
319
272
* This sandbox is compiled with dotty with support for Scala.js. It can be
0 commit comments