File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,4 +4,8 @@ plugins {
44
55repositories {
66 gradlePluginPortal() // To use 'maven-publish' and 'signing' plugins in our own plugin
7+ }
8+
9+ dependencies {
10+ implementation(" io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.30.0" )
711}
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import java.util.*
77plugins {
88 `maven- publish`
99 signing
10+ id(" io.codearte.nexus-staging" )
1011}
1112// Stub secrets to let the project sync and build without the publication values set up
1213ext[" signing.keyId" ] = null
@@ -83,4 +84,12 @@ publishing {
8384// Signing artifacts. Signing.* extra properties values will be used
8485signing {
8586 sign(publishing.publications)
87+ }
88+
89+ nexusStaging {
90+ serverUrl = " https://s01.oss.sonatype.org/service/local/"
91+ packageGroup = " io.github.softartdev"
92+ stagingProfileId = getExtraString(" sonatypeStagingProfileId" )
93+ username = getExtraString(" ossrhUsername" )
94+ password = getExtraString(" ossrhPassword" )
8695}
Original file line number Diff line number Diff line change @@ -21,3 +21,6 @@ android.useAndroidX=true
2121android.nonTransitiveRClass =true
2222android.nonFinalResIds =true
2323android.defaults.buildfeatures.buildconfig =true
24+
25+ # gradle-nexus-staging-plugin
26+ gnsp.disableApplyOnlyOnRootProjectEnforcement =true
You can’t perform that action at this time.
0 commit comments