Skip to content

Commit

Permalink
Add sbt-vspp for publishing the SBT plug-in in a Maven-consistent format
Browse files Browse the repository at this point in the history
This is to enable usage of sbt-scalafmt in Enterprise environments where only the valid-POM format is accepted for JAR downloads, enabling advanced Scala capabilities for many many environments. Currently the only way to use it is by manual republishing but we rather any updates get made available automatically.

The only change this does is to add extra JAR and POM to the released artifact (while keeping the old structure -- notice how when you click on 'Browse' on here https://search.maven.org/artifact/org.scalameta/sbt-scalafmt/2.4.6/jar - it goes to a 404 Not Found page.

More background here: https://github.com/esbeetee/sbt-vspp/blob/main/README.md
  • Loading branch information
ScalaWilliam committed Jul 28, 2022
1 parent 842d6b9 commit 6f16331
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.5.6")
libraryDependencies += "org.scala-sbt" %% "scripted-plugin" % sbtVersion.value
addSbtPlugin("com.scalawilliam.esbeetee" % "sbt-vspp" % "0.4.11")
5 changes: 5 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ Add following line into `project/plugins.sbt` (latest version is available next
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % PLUGIN_VERSION)
```

If the above does not work, in enterprise environments, try:
```sbt
libraryDependencies += "org.scalameta" % "sbt-scalafmt_2.12_1.0" % PLUGIN_VERSION
```

### [User documentation](https://scalameta.org/scalafmt/)
Head over to [the user docs](https://scalameta.org/scalafmt/docs/installation.html#sbt) for instructions on how to install and use scalafmt.

Expand Down

0 comments on commit 6f16331

Please sign in to comment.