59 lines
1.8 KiB
Groovy
59 lines
1.8 KiB
Groovy
|
|
publishing {
|
|
publications {
|
|
mavenPublication(MavenPublication) {
|
|
version version
|
|
groupId group
|
|
|
|
from components.java
|
|
artifact sourcesJar
|
|
artifact javadocJar
|
|
|
|
pom {
|
|
name = 'OpenTelemetry Java'
|
|
packaging = 'jar'
|
|
description = 'OpenTelemetry for Java'
|
|
url = 'https://github.com/open-telemetry/opentelemetry-java'
|
|
licenses {
|
|
license {
|
|
name = 'The Apache License, Version 2.0'
|
|
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
|
|
}
|
|
}
|
|
developers {
|
|
developer {
|
|
id = 'opentelemetry'
|
|
name = 'OpenTelemetry Gitter'
|
|
url = 'https://gitter.im/open-telemetry/community'
|
|
}
|
|
}
|
|
scm {
|
|
connection = 'scm:git:git@github.com:open-telemetry/opentelemetry-java.git'
|
|
developerConnection = 'scm:git:git@github.com:open-telemetry/opentelemetry-java.git'
|
|
url = 'git@github.com:open-telemetry/opentelemetry-java.git'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// Snapshot publishing.
|
|
artifactory {
|
|
contextUrl = 'https://oss.jfrog.org'
|
|
publish {
|
|
repository {
|
|
repoKey = 'oss-snapshot-local'
|
|
username = System.getenv("BINTRAY_USER")
|
|
password = System.getenv("BINTRAY_KEY")
|
|
}
|
|
defaults {
|
|
publications('mavenPublication')
|
|
publishArtifacts = true
|
|
publishPom = true
|
|
}
|
|
}
|
|
resolve {
|
|
repoKey = 'libs-release'
|
|
}
|
|
}
|