@@ -87,13 +87,19 @@ inThisBuild(
8787 // This needs to be set otherwise the GitHub workflow plugin gets confused about which
8888 // version to use for the publish job.
8989 scalaVersion := scala212,
90- versionPolicyFirstVersion := Some (" 0.1.8 " ),
90+ versionPolicyFirstVersion := Some (" 0.1.9 " ),
9191 versionPolicyIntention := Compatibility .BinaryAndSourceCompatible ,
9292 versionScheme := Some (" early-semver" )
9393 )
9494)
9595
96- val commonProjectSettings = List (
96+ val sonatypeSettings = List (
97+ // Workaround for https://github.com/olafurpg/sbt-ci-release/issues/181
98+ sonatypeCredentialHost := " s01.oss.sonatype.org" ,
99+ sonatypeRepository := " https://s01.oss.sonatype.org/service/local"
100+ )
101+
102+ val commonProjectSettings = sonatypeSettings ++ List (
97103 isScala213 := isScala213Setting.value,
98104 scalastyleFailOnError := true ,
99105 scalastyleFailOnWarning := true ,
@@ -121,12 +127,11 @@ val libraryProjectSettings = commonProjectSettings
121127lazy val root = (project in file(" ." ))
122128 .aggregate(cli, core, docs, sbtProject)
123129 .settings(metaProjectSettings)
130+ // The sbt-sonatype plugin requires these to go on the root project too.
131+ .settings(sonatypeSettings)
124132 .settings(
125133 crossScalaVersions := supportedScalaVersions,
126134 name := " scala2plantuml" ,
127- // Workaround for https://github.com/olafurpg/sbt-ci-release/issues/181
128- sonatypeCredentialHost := " s01.oss.sonatype.org" ,
129- sonatypeRepository := " https://s01.oss.sonatype.org/service/local"
130135 )
131136
132137lazy val core = project
0 commit comments