Skip to content

Commit ee175ed

Browse files
authored
Fix settings for maven repo (#40)
Signed-off-by: Antno Wilhelm <anton.wilhelm@here.com>
1 parent ce50623 commit ee175ed

1 file changed

Lines changed: 11 additions & 12 deletions

File tree

build.sbt

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ lazy val `root` = project
7777
lazy 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

107106
ThisBuild / pomExtra :=
108107
<licenses>

0 commit comments

Comments
 (0)