Skip to content

Commit

Permalink
unusedCompileDependenciesFilter scala-js and scala-native
Browse files Browse the repository at this point in the history
  • Loading branch information
ThijsBroersen committed Nov 3, 2024
1 parent 6f4cdd4 commit 92e42b4
Showing 1 changed file with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,11 +211,7 @@ trait ScalaCompilerSettings {
},
Test / parallelExecution := scalaBinaryVersion.value != "3", // why not parallel execution for Scala 3?
incOptions ~= (_.withLogRecompileOnMacro(false)),
autoAPIMappings := true,
unusedCompileDependenciesFilter -= moduleFilter(
"org.scala-js",
"scalajs-library"
) // why does it need to be filtered out?
autoAPIMappings := true
) ++ (if (enableCrossProject) crossProjectSettings else Seq.empty) ++ {
packageName match {
case Some(name) => buildInfoSettings(name)
Expand Down Expand Up @@ -294,7 +290,8 @@ trait ScalaCompilerSettings {
.requireJS(
false
)
.value
.value,
unusedCompileDependenciesFilter -= moduleFilter("org.scala-js")
)

def jvmSettings: Seq[Setting[_]] = Seq(
Expand All @@ -312,7 +309,8 @@ trait ScalaCompilerSettings {
)
.value,
doc / skip := BuildAssertions.requireNative(true).value,
Compile / doc / sources := BuildAssertions.requireNative(Seq.empty).value
Compile / doc / sources := BuildAssertions.requireNative(Seq.empty).value,
unusedCompileDependenciesFilter -= moduleFilter("org.scala-native")
// Test / test := { val _ = (Test / compile).value; () } // ??
)

Expand Down

0 comments on commit 92e42b4

Please sign in to comment.