We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7d664d commit 6c8ae7bCopy full SHA for 6c8ae7b
project/Build.scala
@@ -974,6 +974,13 @@ object Build {
974
file.getPath.endsWith("scala-library-src/scala/Nothing.scala") ||
975
file.getPath.endsWith("scala-library-src/scala/Null.scala") ||
976
file.getPath.endsWith("scala-library-src/scala/Singleton.scala"))),
977
+ (Compile / sources) := {
978
+ val files = (Compile / sources).value
979
+ val overwritenSourcesDir = (Compile / scalaSource).value
980
+ val overwritenSources = files.flatMap(_.relativeTo(overwritenSourcesDir)).toSet
981
+ val reference = (Compile/sourceManaged).value / "scala-library-src"
982
+ files.filterNot(_.relativeTo(reference).exists(overwritenSources))
983
+ },
984
(Test / managedClasspath) ~= {
985
_.filterNot(file => file.data.getName == s"scala-library-${stdlibVersion(Bootstrapped)}.jar")
986
},
0 commit comments