1
1
import com .typesafe .tools .mima .core ._
2
2
import sbtghactions .JavaSpec .Distribution .Zulu
3
+ import xerial .sbt .Sonatype .sonatypeCentralHost
3
4
4
5
// Basic facts
5
6
name := " jackson-module-scala"
@@ -11,7 +12,17 @@ ThisBuild / scalaVersion := scala213Version
11
12
12
13
ThisBuild / crossScalaVersions := Seq (" 2.11.12" , " 2.12.20" , scala213Version, " 3.3.4" )
13
14
15
+ ThisBuild / sonatypeCredentialHost := sonatypeCentralHost
16
+
14
17
// resolvers ++= Resolver.sonatypeOssRepos("snapshots")
18
+ // resolvers += "Sonatype Central Snapshots" at "https://central.sonatype.com/repository/maven-snapshots"
19
+
20
+ ThisBuild / dynverSonatypeSnapshots := true
21
+ ThisBuild / publishTo := {
22
+ val centralSnapshots = " https://central.sonatype.com/repository/maven-snapshots/"
23
+ if (isSnapshot.value) Some (" central-snapshots" at centralSnapshots)
24
+ else localStaging.value
25
+ }
15
26
16
27
val jacksonCoreVersion = " 2.18.4"
17
28
val jacksonNonCoreVersion = jacksonCoreVersion
@@ -167,8 +178,8 @@ ThisBuild / githubWorkflowPublish := Seq(
167
178
env = Map (
168
179
" PGP_PASSPHRASE" -> " ${{ secrets.PGP_PASSPHRASE }}" ,
169
180
" PGP_SECRET" -> " ${{ secrets.PGP_SECRET }}" ,
170
- " SONATYPE_PASSWORD" -> " ${{ secrets.CI_DEPLOY_PASSWORD }}" ,
171
- " SONATYPE_USERNAME" -> " ${{ secrets.CI_DEPLOY_USERNAME }}" ,
181
+ " SONATYPE_PASSWORD" -> " ${{ secrets.CENTRAL_DEPLOY_PASSWORD }}" ,
182
+ " SONATYPE_USERNAME" -> " ${{ secrets.CENTRAL_DEPLOY_USERNAME }}" ,
172
183
" CI_SNAPSHOT_RELEASE" -> " +publishSigned"
173
184
)
174
185
)
0 commit comments