build.gradle.kts 987 B

12345678910111213141516171819202122232425262728293031323334353637
  1. import java.time.Duration
  2. plugins {
  3. id("idea")
  4. id("com.github.ben-manes.versions")
  5. id("io.github.gradle-nexus.publish-plugin")
  6. id("otel.spotless-conventions")
  7. }
  8. apply(from = "version.gradle.kts")
  9. nexusPublishing {
  10. packageGroup.set("io.opentelemetry")
  11. repositories {
  12. sonatype {
  13. username.set(System.getenv("SONATYPE_USER"))
  14. password.set(System.getenv("SONATYPE_KEY"))
  15. }
  16. }
  17. connectTimeout.set(Duration.ofMinutes(5))
  18. clientTimeout.set(Duration.ofMinutes(5))
  19. transitionCheckOptions {
  20. // We have many artifacts so Maven Central takes a long time on its compliance checks. This sets
  21. // the timeout for waiting for the repository to close to a comfortable 50 minutes.
  22. maxRetries.set(300)
  23. delayBetween.set(Duration.ofSeconds(10))
  24. }
  25. }
  26. // Enable after verifying Maven Central publishing once through manual closing
  27. // tasks.release.finalizedBy tasks.closeAndReleaseRepository
  28. description = "OpenTelemetry instrumentations for Java"