Skip to content
This repository was archived by the owner on Mar 27, 2023. It is now read-only.

Commit 9b94121

Browse files
committed
Using classifier instead of type so that central deployment works
1 parent 022f243 commit 9b94121

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ You can also use Clippy directly as a compiler plugin. If you use SBT, add the f
5252
project's `.sbt` file:
5353

5454
````scala
55-
addCompilerPlugin("com.softwaremill.clippy" %% "plugin" % "0.2" % "bundle")
55+
addCompilerPlugin("com.softwaremill.clippy" %% "plugin" % "0.2" classifier "bundle")
5656
````
5757

5858
If you are using `scalac` directly, add the following option:

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ lazy val plugin = (project in file("plugin"))
9191
buildInfoObject := "ClippyBuildInfo",
9292
artifact in (Compile, assembly) := {
9393
val art = (artifact in (Compile, assembly)).value
94-
art.copy(`type` = "bundle")
94+
art.copy(`classifier` = Some("bundle"))
9595
},
9696
assemblyOption in assembly := (assemblyOption in assembly).value.copy(includeScala = false),
9797
// including the model classes for re-compilation, as for some reason depending on modelJvm doesn't work

plugin-sbt/src/main/scala/com/softwaremill/clippy/ClippySbtPlugin.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import sbt._
44

55
object ClippySbtPlugin extends AutoPlugin {
66
override def projectSettings = Seq(
7-
addCompilerPlugin("com.softwaremill.clippy" %% "plugin" % ClippyBuildInfo.version % "bundle")
7+
addCompilerPlugin("com.softwaremill.clippy" %% "plugin" % ClippyBuildInfo.version classifier "bundle")
88
)
99

1010
override def trigger = allRequirements

ui/app/views/use.scala.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ <h2>Alternative ways to use Clippy</h2>
7474
</p>
7575

7676
<pre>
77-
addCompilerPlugin("com.softwaremill.clippy" %% "plugin" % "0.2" % "bundle")
77+
addCompilerPlugin("com.softwaremill.clippy" %% "plugin" % "0.2" classifier "bundle")
7878
</pre>
7979

8080
<p>

0 commit comments

Comments
 (0)