From 6e756eee295227e49a8bbada4db9426337a4f014 Mon Sep 17 00:00:00 2001 From: Michael Pollmeier Date: Tue, 5 Nov 2024 12:21:56 +0100 Subject: [PATCH] readme: note re sbt plugins on sonatype central publishing sbt plugins to sonatype central requires a workaround See also: https://github.com/sbt/sbt/issues/3410 --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 3a537af..466bb8c 100644 --- a/README.md +++ b/README.md @@ -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