File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -974,6 +974,13 @@ object Build {
974
974
file.getPath.endsWith(" scala-library-src/scala/Nothing.scala" ) ||
975
975
file.getPath.endsWith(" scala-library-src/scala/Null.scala" ) ||
976
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
+ },
977
984
(Test / managedClasspath) ~= {
978
985
_.filterNot(file => file.data.getName == s " scala-library- ${stdlibVersion(Bootstrapped )}.jar " )
979
986
},
You can’t perform that action at this time.
0 commit comments