File tree 1 file changed +7
-0
lines changed
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -1040,6 +1040,13 @@ object Build {
1040
1040
file.getPath.endsWith(" scala-library-src/scala/Nothing.scala" ) ||
1041
1041
file.getPath.endsWith(" scala-library-src/scala/Null.scala" ) ||
1042
1042
file.getPath.endsWith(" scala-library-src/scala/Singleton.scala" ))),
1043
+ (Compile / sources) := {
1044
+ val files = (Compile / sources).value
1045
+ val overwritenSourcesDir = (Compile / scalaSource).value
1046
+ val overwritenSources = files.flatMap(_.relativeTo(overwritenSourcesDir)).toSet
1047
+ val reference = (Compile / sourceManaged).value / " scala-library-src"
1048
+ files.filterNot(_.relativeTo(reference).exists(overwritenSources))
1049
+ },
1043
1050
(Test / managedClasspath) ~= {
1044
1051
_.filterNot(file => file.data.getName == s " scala-library- ${stdlibVersion(Bootstrapped )}.jar " )
1045
1052
},
You can’t perform that action at this time.
0 commit comments