Skip to content

Commit

Permalink
fix packageSrc/mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
xuwei-k committed Jan 14, 2024
1 parent 6d46f8f commit bcbb255
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ lazy val rulesCrossVersions = Seq(V.scala213, V.scala212)
lazy val scala3Version = "3.3.1"

val commonSettings = Def.settings(
(Compile / packageSrc / mappings) ++= (Compile / managedSources).value.map { f =>
// to merge generated sources into sources.jar as well
(f, f.relativeTo((Compile / sourceManaged).value).get.getPath)
},
scalacOptions ++= {
if (scalaBinaryVersion.value == "3") {
Nil
Expand Down

0 comments on commit bcbb255

Please sign in to comment.