Skip to content

Fix: Snapshot Publishing #14170

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

jhayes2-chwy
Copy link
Contributor

@jhayes2-chwy jhayes2-chwy commented Jul 1, 2025

Use a local variable version instead of overwriting project.version

This was tested locally before and after using a throw-away version dump task e.g.:

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

Fixes: #14169

@jhayes2-chwy jhayes2-chwy requested a review from a team as a code owner July 1, 2025 17:21
@@ -43,7 +43,7 @@ testing {
dependencies {
implementation(project())
implementation(project(":instrumentation:aws-sdk:aws-sdk-1.11:testing"))
version = if (testLatestDeps) "latest.release" else "1.12.80"
val version = if (testLatestDeps) "latest.release" else "1.12.80"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without the val, this was being interpreted as an assignment to project.version, rather than as a local variable declaration/initialization.

Copy link
Contributor

@laurit laurit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks

@laurit laurit merged commit 887f9cd into open-telemetry:main Jul 1, 2025
89 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Snapshot Builds of Main are broken
3 participants