File tree 4 files changed +19
-1
lines changed
sbt-dotty/sbt-test/sbt-dotty/quoted-example-project
4 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -761,7 +761,11 @@ object Build {
761
761
762
762
lazy val `dotty-staging` = project.in(file(" staging" )).
763
763
withCommonSettings(Bootstrapped ).
764
- dependsOn(dottyCompiler(Bootstrapped )).
764
+ // We want the compiler to be present in the compiler classpath when compiling this project but not
765
+ // when compiling a project that depends on dotty-staging (see ...), but we always need it to be present
766
+ // on the JVM classpath at runtime.
767
+ dependsOn(dottyCompiler(Bootstrapped ) % " provided" ).
768
+ dependsOn(dottyCompiler(Bootstrapped ) % " compile->runtime" ).
765
769
dependsOn(dottyCompiler(Bootstrapped ) % " test->test" ).
766
770
settings(commonBootstrappedSettings).
767
771
settings(commonDottyJarClasspathSettings).
Original file line number Diff line number Diff line change @@ -2,5 +2,7 @@ scalaVersion := sys.props("plugin.scalaVersion")
2
2
3
3
libraryDependencies ++= Seq (
4
4
" ch.epfl.lamp" %% " dotty-staging" % scalaVersion.value,
5
+ // "ch.epfl.lamp" %% "dotty-compiler" % scalaVersion.value % "runtime",
6
+ // "ch.epfl.lamp" %% "dotty-compiler" % scalaVersion.value % "test->runtime",
5
7
" com.novocode" % " junit-interface" % " 0.11" % " test"
6
8
)
Original file line number Diff line number Diff line change
1
+ package hello
2
+
3
+
4
+ object Main {
5
+
6
+ def main (args : Array [String ]): Unit = {
7
+ dotty.tools.dotc.Main .main(Array .empty)
8
+ }
9
+
10
+ }
Original file line number Diff line number Diff line change 1
1
> run
2
2
> test
3
+ $ copy-file src/changes/Hello.scala src/main/scala/hello/Hello.scala
4
+ -> compile
You can’t perform that action at this time.
0 commit comments