Skip to content

Commit

Permalink
Merge pull request #10714 from lrytz/t12958
Browse files Browse the repository at this point in the history
Include library-aux sources in library sources jar
  • Loading branch information
SethTisue committed Apr 8, 2024
2 parents fd3e629 + ed3dfc9 commit 0bc6ad5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build.sbt
Expand Up @@ -430,7 +430,10 @@ lazy val library = configureAsSubproject(project)
// Include *.txt files in source JAR:
Compile / packageSrc / mappings ++= {
val base = (Compile / unmanagedResourceDirectories).value
base ** "*.txt" pair Path.relativeTo(base)
(base ** "*.txt" pair Path.relativeTo(base)) ++ {
val auxBase = (ThisBuild / baseDirectory).value / "src/library-aux"
auxBase ** ("*.scala" || "*.java") pair Path.relativeTo(auxBase)
}
},
Osgi.headers += "Import-Package" -> "sun.misc;resolution:=optional, *",
Osgi.jarlist := true,
Expand Down

0 comments on commit 0bc6ad5

Please sign in to comment.