Browse Source

Add a simple description to POM. (#1857)

* Add a simple description to POM.

* Update build.gradle
Anuraag Agrawal 4 years ago
parent
commit
d7183ebbdc
2 changed files with 10 additions and 0 deletions
  1. 8 0
      build.gradle
  2. 2 0
      gradle/publish.gradle

+ 8 - 0
build.gradle

@@ -34,8 +34,16 @@ nexusStaging {
   packageGroup = "io.opentelemetry"
   username = System.getenv('SONATYPE_USER')
   password = System.getenv('SONATYPE_KEY')
+
+  // We have many artifacts so Maven Central takes a long time on its compliance checks. This sets
+  // the timeout for waiting for the repository to close to a comfortable 50 minutes.
+  numberOfRetries = 300
+  delayBetweenRetriesInMillis = 10000
 }
 
+// Enable after verifying Maven Central publishing once through manual closing
+// tasks.release.finalizedBy tasks.closeAndReleaseRepository
+
 allprojects {
   apply from: "$rootDir/gradle/dependencies.gradle"
   apply from: "$rootDir/gradle/util.gradle"

+ 2 - 0
gradle/publish.gradle

@@ -35,6 +35,7 @@ publishing {
 
       pom {
         name = 'OpenTelemetry Instrumentation for Java'
+        description = 'Instrumentation of Java libraries using OpenTelemetry.'
         packaging = 'jar'
         url = 'https://github.com/open-telemetry/opentelemetry-java-instrumentation'
 
@@ -86,6 +87,7 @@ private String artifactPrefix(Project p, String archivesBaseName) {
 }
 
 rootProject.tasks.release.finalizedBy tasks.publishToSonatype
+rootProject.tasks.closeAndReleaseRepository.dependsOn tasks.publishToSonatype
 
 tasks.withType(Sign).configureEach {
   onlyIf { System.getenv("CI") != null }