@@ -2,7 +2,6 @@ import sbtrelease.ReleasePlugin.autoImport.ReleaseTransformations._
22import sbtrelease .Version
33import scala .xml .{Node => XmlNode , NodeSeq => XmlNodeSeq , _ }
44import scala .xml .transform ._
5- import xerial .sbt .Sonatype .sonatypeCentralHost
65
76val organizationSettings : Seq [Setting [_]] = Seq (
87 scalaVersion := " 2.12.15" ,
@@ -94,15 +93,14 @@ lazy val `sbt-bom` = project
9493 )
9594
9695lazy val publishSettings = Seq (
97- ThisBuild / publishTo := {
96+ publishTo := {
9897 val centralSnapshots = " https://central.sonatype.com/repository/maven-snapshots/"
9998 if (isSnapshot.value) Some (" central-snapshots" at centralSnapshots)
10099 else localStaging.value
101100 },
102101 pomIncludeRepository := { _ => false },
103102 publishMavenStyle := true ,
104103 sbtPluginPublishLegacyMavenStyle := false ,
105- sonatypeCredentialHost := sonatypeCentralHost,
106104 publishConfiguration := publishConfiguration.value.withOverwrite(true )
107105)
108106
@@ -120,7 +118,6 @@ Global / onChangedBuildSource := ReloadOnSourceChanges
120118
121119useGpgAgent := false
122120useGpgPinentry := true
123- sonatypeProfileName := " com.here"
124121
125122// Defines the release process
126123releaseIgnoreUntrackedFiles := true
0 commit comments