Switch publishing release target to sonatype. (#1823)
* Switch publishing targets to sonatype. * Continue with jfrog * typo
This commit is contained in:
parent
6154538d08
commit
f9df981b2e
|
@ -3,6 +3,7 @@ import nebula.plugin.release.git.opinion.Strategies
|
||||||
plugins {
|
plugins {
|
||||||
id 'idea'
|
id 'idea'
|
||||||
|
|
||||||
|
id "io.codearte.nexus-staging" version "0.22.0"
|
||||||
id "nebula.release" version "15.3.0"
|
id "nebula.release" version "15.3.0"
|
||||||
|
|
||||||
id 'org.gradle.test-retry' version '1.2.0' apply false
|
id 'org.gradle.test-retry' version '1.2.0' apply false
|
||||||
|
@ -28,6 +29,13 @@ nebulaRelease {
|
||||||
addReleaseBranchPattern(/v\d+\.\d+\.x/)
|
addReleaseBranchPattern(/v\d+\.\d+\.x/)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
nexusStaging {
|
||||||
|
// We publish to two package groups so need to close each group individually until staging profile
|
||||||
|
// is set up. We'll run the command twice with the two groups.
|
||||||
|
// TODO(anuraaga): https://issues.sonatype.org/browse/OSSRH-62444
|
||||||
|
packageGroup = findProperty("mavenCentralGroup")
|
||||||
|
}
|
||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
apply from: "$rootDir/gradle/dependencies.gradle"
|
apply from: "$rootDir/gradle/dependencies.gradle"
|
||||||
apply from: "$rootDir/gradle/util.gradle"
|
apply from: "$rootDir/gradle/util.gradle"
|
||||||
|
|
|
@ -4,12 +4,18 @@ apply plugin: 'signing'
|
||||||
publishing {
|
publishing {
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
maven {
|
||||||
url = version.toString().contains('SNAPSHOT')
|
if (version.toString().contains('SNAPSHOT')) {
|
||||||
? "https://oss.jfrog.org/artifactory/oss-snapshot-local/"
|
url = "https://oss.jfrog.org/artifactory/oss-snapshot-local/"
|
||||||
: "https://api.bintray.com/maven/open-telemetry/maven/opentelemetry-java-instrumentation/"
|
credentials {
|
||||||
credentials {
|
username = System.getenv('BINTRAY_USER')
|
||||||
username = System.getenv('BINTRAY_USER')
|
password = System.getenv('BINTRAY_API_KEY')
|
||||||
password = System.getenv('BINTRAY_API_KEY')
|
}
|
||||||
|
} else {
|
||||||
|
url = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
|
||||||
|
credentials {
|
||||||
|
username = System.getenv('SONATYPE_USER')
|
||||||
|
password = System.getenv('SONATYPE_KEY')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue