-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpublish-core.gradle
30 lines (27 loc) · 1.39 KB
/
publish-core.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Properties properties = new Properties()
properties.load(new FileInputStream(rootProject.file('/Volumes/Keybase/team/velocitycareers/mobile/android/maven/sonatype.properties')))
ext {
signingKeyId = System.getenv("SIGNING_KEY_ID") ?: properties["signingKeyId"]
signingPassword = System.getenv("SIGNING_PASSWORD") ?: properties["signingPassword"]
ossrhUsername = System.getenv("OSSRH_USERNAME") ?: properties["ossrhUsername"]
ossrhPassword = System.getenv("OSSRH_PASSWORD") ?: properties["ossrhPassword"]
sonatypeStagingProfileId = System.getenv("SONATYPE_STAGING_PROFILE_ID") ?: properties["sonatypeStagingProfileId"]
signingPrivateKey = System.getenv("SIGNING_KEY") ?: properties["signingPrivateKey"]
}
//println("signingKeyId: ${signingKeyId}")
//println("signingPassword: ${signingPassword}")
//println("ossrhUsername: ${ossrhUsername}")
//println("ossrhPassword: ${ossrhPassword}")
//println("sonatypeStagingProfileId: ${sonatypeStagingProfileId}")
//println("signingPrivateKey: ${signingPrivateKey}")
nexusPublishing {
repositories {
sonatype {
stagingProfileId = sonatypeStagingProfileId
username = ossrhUsername
password = ossrhPassword
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
}
}
}