Skip to content

Snapshot Builds of Main are broken #14169

@jhayes2-chwy

Description

@jhayes2-chwy

PR #14027 has a build/gradle bug that is causing snapshots of the aws-sdk-1.11 library instrumentation to attempt to publish with version 1.12.80 instead of 2.18.0-ALPHA. This has been breaking snapshot builds of main ever since (~2 weeks).

Example error: https://github.com/open-telemetry/opentelemetry-java-instrumentation/actions/runs/15978529890/job/45069886431

* What went wrong:
Execution failed for task ':instrumentation:aws-sdk:aws-sdk-1.11:library:publishMavenPublicationToSonatypeRepository'.
> Failed to publish publication 'maven' to repository 'sonatype'
   > Could not PUT 'https://central.sonatype.com/repository/maven-snapshots/io/opentelemetry/instrumentation/opentelemetry-aws-sdk-1.11/1.12.80/opentelemetry-aws-sdk-1.11-1.12.80.jar'. Received status code 400 from server: Repository version policy: SNAPSHOT does not allow version: 1.12.80

In my fork I tested a trivial fix that adds the missing val to the version = ... expression, which fixes the issue as confirmed with a simple version-dumping task:

tasks.register("checkVersion") {
    doLast {
      println(project.version as String)
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions