@@ -86,4 +86,31 @@ releaseProcess := {
8686 publishArtifacts,
8787 addGithubRelease
8888 )
89- }
89+ }
90+
91+ // add sonatype repository settings
92+ // snapshot versions publish to sonatype snapshot repository
93+ // other versions publish to sonatype staging repository
94+ publishTo := sonatypePublishToBundle.value
95+
96+ credentials += Credentials (" Sonatype Nexus Repository Manager" , " oss.sonatype.org" , System .getenv(" SONATYPE_USER" ), System .getenv(" SONATYPE_PASSWORD" ))
97+ credentials += Credentials (" New Sonatype Nexus Repository Manager" , " s01.oss.sonatype.org" , System .getenv(" SONATYPE_USER" ), System .getenv(" SONATYPE_PASSWORD" ))
98+
99+ Global / useGpgPinentry := true
100+
101+ ThisBuild / sonatypeCredentialHost := " s01.oss.sonatype.org"
102+
103+ packageOptions += {
104+ Package .ManifestAttributes (
105+ " Created-By" -> " Simple Build Tool" ,
106+ " Built-By" -> " mongocamp" ,
107+ " Build-Jdk" -> System .getProperty(" java.version" ),
108+ " Specification-Title" -> name.value,
109+ " Specification-Version" -> version.value,
110+ " Specification-Vendor" -> organization.value,
111+ " Implementation-Title" -> name.value,
112+ " Implementation-Version" -> version.value,
113+ " Implementation-Vendor-Id" -> organization.value,
114+ " Implementation-Vendor" -> organization.value
115+ )
116+ }
0 commit comments