-
Notifications
You must be signed in to change notification settings - Fork 0
/
mavencentral-publish.gradle
24 lines (23 loc) · 1.07 KB
/
mavencentral-publish.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
// This script is responsible for setting up the configuration required to publish to Maven Central.
// Setting up POM files and signing artifacts are done in `mavencentral-publications.gradle`. They
// are separate as the nexus publish plugin used to publish to Maven Central be only applied to top
// level projects.
apply plugin: 'io.github.gradle-nexus.publish-plugin'
apply from: buildscript.sourceFile.getParent() + "/" + "mavencentral-properties.gradle"
nexusPublishing {
packageGroup = "$hmsSdkGroup"
repositories {
sonatype {
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
username = rootProject.ext["ossrhUsername"]
password = rootProject.ext["ossrhPassword"]
}
}
// Repository transitions seems, at times, to be really slow.
// This sets the timeout to 20 minutes
transitionCheckOptions {
maxRetries.set(120)
delayBetween.set(java.time.Duration.ofMillis(10000))
}
}