Skip to content

Commit f29f62f

Browse files
committed
chore: add the resource folders
1 parent 06c7908 commit f29f62f

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

project/Build.scala

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2093,10 +2093,12 @@ object Build {
20932093
// sbt shouldn't add stdlib automatically, we depend on `scala3-library-nonbootstrapped`
20942094
autoScalaLibrary := false,
20952095
// Add the source directories for the compiler (non-boostrapped)
2096-
Compile / unmanagedSourceDirectories := Seq(baseDirectory.value / "src"),
2097-
Compile / unmanagedSourceDirectories += baseDirectory.value / "src-non-bootstrapped",
2096+
Compile / unmanagedSourceDirectories := Seq(baseDirectory.value / "src"),
2097+
Compile / unmanagedSourceDirectories += baseDirectory.value / "src-non-bootstrapped",
2098+
Compile / unmanagedResourceDirectories += baseDirectory.value / "resources",
20982099
// Add the test directories for the compiler (non-bootstrapped)
2099-
Test / unmanagedSourceDirectories := Seq(baseDirectory.value / "test"),
2100+
Test / unmanagedSourceDirectories := Seq(baseDirectory.value / "test"),
2101+
Test / unmanagedResourceDirectories += baseDirectory.value / "test-resources",
21002102
// All the dependencies needed by the compiler
21012103
libraryDependencies ++= Seq(
21022104
"com.github.sbt" % "junit-interface" % "0.13.3" % Test,
@@ -2262,10 +2264,12 @@ object Build {
22622264
// sbt shouldn't add stdlib automatically, we depend on `scala3-library-nonbootstrapped`
22632265
autoScalaLibrary := false,
22642266
// Add the source directories for the compiler (boostrapped)
2265-
Compile / unmanagedSourceDirectories := Seq(baseDirectory.value / "src"),
2266-
Compile / unmanagedSourceDirectories += baseDirectory.value / "src-bootstrapped",
2267+
Compile / unmanagedSourceDirectories := Seq(baseDirectory.value / "src"),
2268+
Compile / unmanagedSourceDirectories += baseDirectory.value / "src-bootstrapped",
2269+
Compile / unmanagedResourceDirectories += baseDirectory.value / "resources",
22672270
// Add the test directories for the compiler (bootstrapped)
22682271
Test / unmanagedSourceDirectories := Seq(baseDirectory.value / "test"),
2272+
Test / unmanagedResourceDirectories += baseDirectory.value / "test-resources",
22692273
// All the dependencies needed by the compiler
22702274
libraryDependencies ++= Seq(
22712275
"org.scala-lang.modules" % "scala-asm" % "9.8.0-scala-1",

0 commit comments

Comments
 (0)