Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 11 additions & 12 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ lazy val `root` = project
lazy val `sbt-bom` = project
.in(file("plugin"))
.enablePlugins(SbtPlugin)
.settings(publishSettings)
.settings(commonSettings)
.settings(
Compile / unmanagedResources ++= Seq(baseDirectory.value / "LICENSE"),
Expand All @@ -92,17 +91,17 @@ lazy val `sbt-bom` = project
)
)

lazy val publishSettings = Seq(
publishTo := {
val centralSnapshots = "https://central.sonatype.com/repository/maven-snapshots/"
if (isSnapshot.value) Some("central-snapshots" at centralSnapshots)
else localStaging.value
},
pomIncludeRepository := { _ => false },
publishMavenStyle := true,
sbtPluginPublishLegacyMavenStyle := false,
publishConfiguration := publishConfiguration.value.withOverwrite(true)
)
ThisBuild / publishTo := {
val centralSnapshots = "https://central.sonatype.com/repository/maven-snapshots/"
if (isSnapshot.value) Some("central-snapshots" at centralSnapshots)
else localStaging.value
}

ThisBuild / pomIncludeRepository := { _ => false }
ThisBuild / publishMavenStyle := true
ThisBuild / sbtPluginPublishLegacyMavenStyle := false

ThisBuild / publishConfiguration := publishConfiguration.value.withOverwrite(true)

ThisBuild / pomExtra :=
<licenses>
Expand Down