File tree Expand file tree Collapse file tree 3 files changed +13
-10
lines changed Expand file tree Collapse file tree 3 files changed +13
-10
lines changed Original file line number Diff line number Diff line change 1- Copyright (c) 2015, Typesafe Inc.
1+ Copyright (c) 2015-2016 , Typesafe Inc.
22All rights reserved.
33
44Redistribution and use in source and binary forms, with or without
Original file line number Diff line number Diff 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
2323You 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
2727Then 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
124124Now 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
128128If we load ` dep.json ` as follows, we'll see the following graph:
129129
Original file line number Diff line number Diff line change 1- // Copyright (C) 2015 Typesafe Inc. <http://typesafe.com>
1+ // Copyright (C) 2015-2016 Typesafe Inc. <http://typesafe.com>
22
33organization := " com.typesafe"
44name := " scala-sculpt"
5- version := " 0.1.1 "
5+ version := " 0.1.2 "
66licenses := Seq (" Apache License v2.0" -> url(" http://www.apache.org/licenses/LICENSE-2.0" ))
77homepage := Some (url(" http://github.com/typesafehub/scala-sculpt" ))
88
@@ -30,9 +30,12 @@ scalacOptions ++= Seq(
3030assemblyJarName 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
3740pomExtra := (<scm >
3841 <url >https:// github.com/ typesafehub/ scala- sculpt.git</url >
You can’t perform that action at this time.
0 commit comments