Skip to content

Commit 7b38e06

Browse files
committed
Try to fix release
1 parent cc75222 commit 7b38e06

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

build.sbt

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,10 @@ val commonSettings = Seq(
3939
* Publishing - Central Portal
4040
*/
4141
publishTo := {
42-
if (isSnapshot.value) {
43-
Some("central-snapshots" at "https://central.sonatype.com/repository/maven-snapshots/")
44-
} else {
45-
Some(Resolver.file("sonatype-local-bundle", sonatypeBundleDirectory.value))
46-
}
42+
val centralSnapshots = "https://central.sonatype.com/repository/maven-snapshots/"
43+
if (isSnapshot.value) Some("central-snapshots" at centralSnapshots)
44+
else localStaging.value
4745
},
48-
publishMavenStyle := true,
49-
sonatypeCredentialHost := sonatypeCentralHost,
5046
sonatypeProfileName := "testcontainers-scala",
5147
sonatypeProjectHosting := Some(GitHubHosting("testcontainers", "testcontainers-scala", "dimafeng@gmail.com")),
5248
licenses := Seq("The MIT License (MIT)" -> URI.create("https://opensource.org/licenses/MIT").toURL),
@@ -124,14 +120,14 @@ lazy val root = (project in file("."))
124120
checkSnapshotDependencies,
125121
inquireVersions,
126122
runClean,
127-
//runTest,
123+
//releaseStepTaskAggregated(Test / compile),
128124
setReleaseVersion,
129125
commitReleaseVersion,
130126
tagRelease,
131127
releaseStepCommandAndRemaining("+publishSigned"),
128+
releaseStepCommandAndRemaining("sonaRelease"),
132129
setNextVersion,
133130
commitNextVersion,
134-
releaseStepCommand("sonatypeCentralRelease"),
135131
pushChanges
136132
)
137133
)

0 commit comments

Comments
 (0)