Skip to content

Commit c694bf4

Browse files
committed
Merge pull request #20 from SethTisue/fat-jar-fixes
version 0.1.2
2 parents ac92653 + c0429ae commit c694bf4

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2015, Typesafe Inc.
1+
Copyright (c) 2015-2016, Typesafe Inc.
22
All rights reserved.
33

44
Redistribution and use in source and binary forms, with or without

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,18 @@ incremental recompile times.
1515

1616
## Building the plugin from source
1717

18-
`sbt assembly` will create `target/scala-2.11/scala-sculpt_2.11-0.1.1.jar`.
18+
`sbt assembly` will create `target/scala-2.11/scala-sculpt_2.11-0.1.2.jar`.
1919
(The JAR is a fat JAR that bundles its dependency on spray-json.)
2020

2121
## Using the plugin
2222

2323
You can use the compiled plugin with the Scala 2.11 compiler as follows.
2424

25-
Supposing you have `scala-sculpt_2.11-0.1.1.jar` in your current working directory,
25+
Supposing you have `scala-sculpt_2.11-0.1.2.jar` in your current working directory,
2626

2727
Then you can do e.g.:
2828

29-
scalac -Xplugin:scala-sculpt_2.11-0.1.1.jar \
29+
scalac -Xplugin:scala-sculpt_2.11-0.1.2.jar \
3030
-Xplugin-require:sculpt \
3131
-P:sculpt:out=dep.json \
3232
Dep.scala
@@ -123,7 +123,7 @@ manipulation, e.g. in the REPL.
123123

124124
Now in a Scala 2.11 REPL with the same JARs on the classpath:
125125

126-
scala -classpath scala-sculpt_2.11-0.1.1.jar
126+
scala -classpath scala-sculpt_2.11-0.1.2.jar
127127

128128
If we load `dep.json` as follows, we'll see the following graph:
129129

build.sbt

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
// Copyright (C) 2015 Typesafe Inc. <http://typesafe.com>
1+
// Copyright (C) 2015-2016 Typesafe Inc. <http://typesafe.com>
22

33
organization := "com.typesafe"
44
name := "scala-sculpt"
5-
version := "0.1.1"
5+
version := "0.1.2"
66
licenses := Seq("Apache License v2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0"))
77
homepage := Some(url("http://github.com/typesafehub/scala-sculpt"))
88

@@ -30,9 +30,12 @@ scalacOptions ++= Seq(
3030
assemblyJarName in assembly :=
3131
s"${name.value}_${scalaBinaryVersion.value}-${version.value}.jar"
3232

33-
mappings in (Compile, packageBin) ++= Seq(
34-
(baseDirectory.value / "README.md") -> "README.md",
35-
(baseDirectory.value / "LICENSE.md") -> "LICENSE.md")
33+
assemblyOption in assembly :=
34+
(assemblyOption in assembly).value.copy(includeScala = false)
35+
36+
unmanagedResources in Compile ++=
37+
Seq("README.md", "LICENSE.md")
38+
.map(baseDirectory.value / _)
3639

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

0 commit comments

Comments
 (0)