Skip to content

Commit 2fa8964

Browse files
author
Steven Scott
committed
Include generated sources in source jar
1 parent a0a414e commit 2fa8964

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: build.sbt

+6
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,12 @@ lazy val core =
9292
sourceGenerators in Compile += generateMui,
9393
sourceGenerators in Compile += generateEui,
9494
sourceGenerators in Compile += generateSui,
95+
mappings in (Compile, packageSrc) ++= {
96+
val sourceDir = (sourceManaged.value / "main").toPath
97+
def rel(f: File) = sourceDir.relativize(f.toPath).toString
98+
99+
(managedSources in Compile).value map (s s rel(s))
100+
},
95101
libraryDependencies ++= Seq(
96102
"com.github.japgolly.scalajs-react" %%% "core" % "1.1.1" withSources (),
97103
"com.github.japgolly.scalajs-react" %%% "extra" % "1.1.1" withSources (),

0 commit comments

Comments
 (0)