Skip to content

Commit

Permalink
Publish sbt plugin (filter duplicate) (#2095)
Browse files Browse the repository at this point in the history
  • Loading branch information
ennru authored Apr 18, 2024
1 parent e2cddc5 commit 2787406
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions project/PublishPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import sbt._
import sbt.Keys._
import com.geirsson.CiReleasePlugin
import com.jsuereth.sbtpgp.PgpKeys.publishSigned
import com.jsuereth.sbtpgp.PgpKeys.publishSignedConfiguration
import sbtdynver.DynVerPlugin
import sbtdynver.DynVerPlugin.autoImport.dynverSonatypeSnapshots
import xerial.sbt.Sonatype
Expand Down Expand Up @@ -46,6 +47,11 @@ object Publish extends AutoPlugin {
sonatypeProfileName := "com.typesafe",
beforePublishTask := beforePublish(isSnapshot.value),
publishSigned := publishSigned.dependsOn(beforePublishTask).value,
publishSignedConfiguration := publishSignedConfiguration.value.withArtifacts(
// avoid publishing the plugin jar twice
publishSignedConfiguration.value.artifacts.collect {
case tup @ (artifact, _) if artifact.name.contains("2.12_1.0") => tup
}),
publishTo :=
(if (isSnapshot.value)
Some("Cloudsmith API".at("https://maven.cloudsmith.io/lightbend/akka-snapshots/"))
Expand Down

0 comments on commit 2787406

Please sign in to comment.