@@ -25,6 +25,7 @@ object DottyBuild extends Build {
25
25
override def settings : Seq [Setting [_]] = {
26
26
super .settings ++ Seq (
27
27
scalaVersion in Global := " 2.11.5" ,
28
+ publishArtifact in packageDoc := false ,
28
29
version in Global := " 0.1-SNAPSHOT" ,
29
30
organization in Global := " ch.epfl.lamp" ,
30
31
organizationName in Global := " LAMP/EPFL" ,
@@ -194,6 +195,58 @@ object DottyBuild extends Build {
194
195
addCommandAlias(" partest-only-no-bootstrap" , " ;test:package;package; lockPartestFile;test:test-only dotc.tests;runPartestRunner" )
195
196
)
196
197
198
+ lazy val `dotty-bridge` = project.in(file(" bridge" )).
199
+ dependsOn(dotty).
200
+ settings(
201
+ overrideScalaVersionSetting,
202
+
203
+ description := " sbt compiler bridge for Dotty" ,
204
+ resolvers += Resolver .typesafeIvyRepo(" releases" ),
205
+ libraryDependencies ++= Seq (
206
+ " org.scala-sbt" % " interface" % sbtVersion.value,
207
+ " org.scala-sbt" % " api" % sbtVersion.value % " test" ,
208
+ " org.specs2" %% " specs2" % " 2.3.11" % " test"
209
+ ),
210
+ version := " 0.1.1-SNAPSHOT" ,
211
+ // The sources should be published with crossPaths := false, the binaries
212
+ // are unused so it doesn't matter.
213
+ crossPaths := false ,
214
+
215
+ fork in Test := true ,
216
+ parallelExecution in Test := false
217
+ ).
218
+ settings(ScriptedPlugin .scriptedSettings: _* ).
219
+ settings(
220
+ ScriptedPlugin .scriptedLaunchOpts := Seq (" -Xmx1024m" ),
221
+ ScriptedPlugin .scriptedBufferLog := false
222
+ // TODO: Use this instead of manually copying DottyInjectedPlugin.scala
223
+ // everywhere once https://github.com/sbt/sbt/issues/2601 gets fixed.
224
+ /* ,
225
+ ScriptedPlugin.scriptedPrescripted := { f =>
226
+ IO.write(inj, """
227
+ import sbt._
228
+ import Keys._
229
+
230
+ object DottyInjectedPlugin extends AutoPlugin {
231
+ override def requires = plugins.JvmPlugin
232
+ override def trigger = allRequirements
233
+
234
+ override val projectSettings = Seq(
235
+ scalaVersion := "0.1-SNAPSHOT",
236
+ scalaOrganization := "ch.epfl.lamp",
237
+ scalacOptions += "-language:Scala2",
238
+ scalaBinaryVersion := "2.11",
239
+ autoScalaLibrary := false,
240
+ libraryDependencies ++= Seq("org.scala-lang" % "scala-library" % "2.11.5"),
241
+ scalaCompilerBridgeSource := ("ch.epfl.lamp" % "dotty-bridge" % "0.1.1-SNAPSHOT" % "component").sources()
242
+ )
243
+ }
244
+ """)
245
+ }
246
+ */
247
+ )
248
+
249
+
197
250
/** A sandbox to play with the Scala.js back-end of dotty.
198
251
*
199
252
* This sandbox is compiled with dotty with support for Scala.js. It can be
0 commit comments