Skip to content

Commit 0c2e372

Browse files
committed
fix fat jar to include readme and license
this different way of adding them affects both `package` and `assembly` tasks. yay!
1 parent 06a2819 commit 0c2e372

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build.sbt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ assemblyJarName in assembly :=
3333
assemblyOption in assembly :=
3434
(assemblyOption in assembly).value.copy(includeScala = false)
3535

36-
mappings in (Compile, packageBin) ++= Seq(
37-
(baseDirectory.value / "README.md") -> "README.md",
38-
(baseDirectory.value / "LICENSE.md") -> "LICENSE.md")
36+
unmanagedResources in Compile ++=
37+
Seq("README.md", "LICENSE.md")
38+
.map(baseDirectory.value / _)
3939

4040
pomExtra := (<scm>
4141
<url>https://github.com/typesafehub/scala-sculpt.git</url>

0 commit comments

Comments
 (0)