Skip to content

Commit

Permalink
SBT: shade only for JVM (#3277)
Browse files Browse the repository at this point in the history
Until sbt-shading plugin is released with the cross-platform fixes,
let's limit shading to JVM only.
  • Loading branch information
kitbellew committed Jul 26, 2023
1 parent 16819e5 commit 749e424
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ lazy val trees = crossProject(JSPlatform, JVMPlatform, NativePlatform)
.enablePlugins(ShadingPlugin)
.settings(
sharedSettings,
shadingSettings,
description := "Scalameta abstract syntax trees",
// NOTE: uncomment this to update ast.md
// scalacOptions += "-Xprint:typer",
Expand All @@ -204,6 +203,7 @@ lazy val trees = crossProject(JSPlatform, JVMPlatform, NativePlatform)
})
)
.configureCross(crossPlatformPublishSettings)
.jvmSettings(shadingSettings)
.jsSettings(
commonJsSettings
)
Expand All @@ -215,7 +215,6 @@ lazy val parsers = crossProject(JSPlatform, JVMPlatform, NativePlatform)
.enablePlugins(ShadingPlugin)
.settings(
sharedSettings,
shadingSettings,
description := "Scalameta APIs for parsing and their baseline implementation",
enableHardcoreMacros,
mergedModule({ base =>
Expand All @@ -226,6 +225,7 @@ lazy val parsers = crossProject(JSPlatform, JVMPlatform, NativePlatform)
})
)
.configureCross(crossPlatformPublishSettings)
.jvmSettings(shadingSettings)
.jsConfigure(
_.enablePlugins(NpmPackagePlugin)
)
Expand Down Expand Up @@ -272,7 +272,6 @@ lazy val scalameta = crossProject(JSPlatform, JVMPlatform, NativePlatform)
.enablePlugins(ShadingPlugin)
.settings(
sharedSettings,
shadingSettings,
description := "Scalameta umbrella module that includes all public APIs",
libraryDependencies ++= List(
"org.scala-lang" % "scalap" % scalaVersion.value
Expand All @@ -293,6 +292,7 @@ lazy val scalameta = crossProject(JSPlatform, JVMPlatform, NativePlatform)
)
.configureCross(crossPlatformPublishSettings)
.jvmSettings(
shadingSettings,
Compile / unmanagedSourceDirectories ++= List(
(ThisBuild / baseDirectory).value / "semanticdb" / "metacp",
(ThisBuild / baseDirectory).value / "semanticdb" / "symtab"
Expand Down

0 comments on commit 749e424

Please sign in to comment.