@@ -77,7 +77,6 @@ lazy val `root` = project
7777lazy val `sbt-bom` = project
7878 .in(file(" plugin" ))
7979 .enablePlugins(SbtPlugin )
80- .settings(publishSettings)
8180 .settings(commonSettings)
8281 .settings(
8382 Compile / unmanagedResources ++= Seq (baseDirectory.value / " LICENSE" ),
@@ -92,17 +91,17 @@ lazy val `sbt-bom` = project
9291 )
9392 )
9493
95- lazy val publishSettings = Seq (
96- publishTo := {
97- val centralSnapshots = " https:// central.sonatype.com/repository/maven -snapshots/ "
98- if (isSnapshot .value) Some ( " central-snapshots " at centralSnapshots)
99- else localStaging.value
100- },
101- pomIncludeRepository := { _ => false },
102- publishMavenStyle := true ,
103- sbtPluginPublishLegacyMavenStyle := false ,
104- publishConfiguration := publishConfiguration.value.withOverwrite( true )
105- )
94+ ThisBuild / publishTo := {
95+ val centralSnapshots = " https://central.sonatype.com/repository/maven-snapshots/ "
96+ if (isSnapshot.value) Some ( " central-snapshots" at centralSnapshots)
97+ else localStaging .value
98+ }
99+
100+ ThisBuild / pomIncludeRepository := { _ => false }
101+ ThisBuild / publishMavenStyle := true
102+ ThisBuild / sbtPluginPublishLegacyMavenStyle := false
103+
104+ ThisBuild / publishConfiguration := publishConfiguration.value.withOverwrite( true )
106105
107106ThisBuild / pomExtra :=
108107 <licenses >
0 commit comments