Skip to content

Commit

Permalink
revert: sonatype removed by accident
Browse files Browse the repository at this point in the history
  • Loading branch information
QuadStingray committed Apr 1, 2023
1 parent b443303 commit e320ed1
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion build_release.sbt
Expand Up @@ -86,4 +86,31 @@ releaseProcess := {
publishArtifacts,
addGithubRelease
)
}
}

// add sonatype repository settings
// snapshot versions publish to sonatype snapshot repository
// other versions publish to sonatype staging repository
publishTo := sonatypePublishToBundle.value

credentials += Credentials("Sonatype Nexus Repository Manager", "oss.sonatype.org", System.getenv("SONATYPE_USER"), System.getenv("SONATYPE_PASSWORD"))
credentials += Credentials("New Sonatype Nexus Repository Manager", "s01.oss.sonatype.org", System.getenv("SONATYPE_USER"), System.getenv("SONATYPE_PASSWORD"))

Global / useGpgPinentry := true

ThisBuild / sonatypeCredentialHost := "s01.oss.sonatype.org"

packageOptions += {
Package.ManifestAttributes(
"Created-By" -> "Simple Build Tool",
"Built-By" -> "mongocamp",
"Build-Jdk" -> System.getProperty("java.version"),
"Specification-Title" -> name.value,
"Specification-Version" -> version.value,
"Specification-Vendor" -> organization.value,
"Implementation-Title" -> name.value,
"Implementation-Version" -> version.value,
"Implementation-Vendor-Id" -> organization.value,
"Implementation-Vendor" -> organization.value
)
}

0 comments on commit e320ed1

Please sign in to comment.