@@ -87,13 +87,19 @@ inThisBuild(
87
87
// This needs to be set otherwise the GitHub workflow plugin gets confused about which
88
88
// version to use for the publish job.
89
89
scalaVersion := scala212,
90
- versionPolicyFirstVersion := Some (" 0.1.8 " ),
90
+ versionPolicyFirstVersion := Some (" 0.1.9 " ),
91
91
versionPolicyIntention := Compatibility .BinaryAndSourceCompatible ,
92
92
versionScheme := Some (" early-semver" )
93
93
)
94
94
)
95
95
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 (
97
103
isScala213 := isScala213Setting.value,
98
104
scalastyleFailOnError := true ,
99
105
scalastyleFailOnWarning := true ,
@@ -121,12 +127,11 @@ val libraryProjectSettings = commonProjectSettings
121
127
lazy val root = (project in file(" ." ))
122
128
.aggregate(cli, core, docs, sbtProject)
123
129
.settings(metaProjectSettings)
130
+ // The sbt-sonatype plugin requires these to go on the root project too.
131
+ .settings(sonatypeSettings)
124
132
.settings(
125
133
crossScalaVersions := supportedScalaVersions,
126
134
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"
130
135
)
131
136
132
137
lazy val core = project
0 commit comments