Skip to content

Commit

Permalink
readme: note re sbt plugins on sonatype central
Browse files Browse the repository at this point in the history
publishing sbt plugins to sonatype central requires a workaround

See also: sbt/sbt#3410
  • Loading branch information
mpollmeier authored Nov 5, 2024
1 parent b5e2ee2 commit 6e756ee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ import xerial.sbt.Sonatype.sonatypeCentralHost
ThisBuild / sonatypeCredentialHost := sonatypeCentralHost
```
Note: if you are publishing an sbt plugin you will also need to configure `sbtPluginPublishLegacyMavenStyle := false` for that project.
Context: sbt publishes plugins with file names that do not conform to the maven specification. Sonatype OSSRH didn't validate this, but Sonatype Central does: `File name 'sbt-my-plugin-0.0.1.jar' is not valid`.
See also: https://github.com/sbt/sbt/issues/3410


#### Usage

Expand Down

0 comments on commit 6e756ee

Please sign in to comment.