Add scripted scala3-sandwich

This commit is contained in:
Adrien Piquerez 2020-12-18 11:52:05 +01:00
parent fbbde2619b
commit 97f06d87b0
6 changed files with 46 additions and 0 deletions

View File

@ -0,0 +1,5 @@
package example
object D {
val x = C.x
}

View File

@ -0,0 +1,5 @@
package example
object C {
val x = 1
}

View File

@ -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"))

View File

@ -0,0 +1,5 @@
package example
object B {
val x = A.x
}

View File

@ -0,0 +1,5 @@
package example
object A {
val x = 1
}

View File

@ -0,0 +1,3 @@
> fooApp/compile
> barApp/compile