mirror of https://github.com/sbt/sbt.git
Add scripted scala3-sandwich
This commit is contained in:
parent
fbbde2619b
commit
97f06d87b0
|
|
@ -0,0 +1,5 @@
|
|||
package example
|
||||
|
||||
object D {
|
||||
val x = C.x
|
||||
}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
package example
|
||||
|
||||
object C {
|
||||
val x = 1
|
||||
}
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
ThisBuild / scalaVersion := "3.0.0-M1"
|
||||
|
||||
lazy val scala213 = "2.13.4"
|
||||
|
||||
lazy val root = (project in file("."))
|
||||
.aggregate(fooApp, fooCore, barApp, barCore)
|
||||
|
||||
lazy val fooApp = (project in file("foo-app"))
|
||||
.dependsOn(fooCore)
|
||||
|
||||
lazy val fooCore = (project in file("foo-core"))
|
||||
.settings(
|
||||
scalaVersion := scala213,
|
||||
)
|
||||
|
||||
lazy val barApp = (project in file("bar-app"))
|
||||
.dependsOn(barCore)
|
||||
.settings(
|
||||
scalaVersion := scala213,
|
||||
scalacOptions += "-Ytasty-reader"
|
||||
)
|
||||
|
||||
lazy val barCore = (project in file("bar-core"))
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
package example
|
||||
|
||||
object B {
|
||||
val x = A.x
|
||||
}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
package example
|
||||
|
||||
object A {
|
||||
val x = 1
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
> fooApp/compile
|
||||
|
||||
> barApp/compile
|
||||
Loading…
Reference in New Issue