-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Fix pom involving maven-archetype and opentelemetry #38518
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -859,13 +859,13 @@ class BeamModulePlugin implements Plugin<Project> { | |
| netty_tcnative_boringssl_static : "io.netty:netty-tcnative-boringssl-static:2.0.52.Final", | ||
| netty_transport : "io.netty:netty-transport:$netty_version", | ||
| netty_transport_native_epoll : "io.netty:netty-transport-native-epoll:$netty_version", | ||
| opentelemetry_api : "io.opentelemetry:opentelemetry-api", // google_cloud_platform_libraries_bom sets version | ||
| opentelemetry_api : "io.opentelemetry:opentelemetry-api", // opentelemetry-bom sets version | ||
| opentelemetry_bom : "io.opentelemetry:opentelemetry-bom-alpha:$opentelemetry_version-alpha", // alpha required by extensions | ||
| opentelemetry_context : "io.opentelemetry:opentelemetry-context", // google_cloud_platform_libraries_bom sets version | ||
| opentelemetry_context : "io.opentelemetry:opentelemetry-context:$opentelemetry_version", // Set version explicitly as it's standalone runtime dep for Beam modules | ||
| opentelemetry_gcp_auth : "io.opentelemetry.contrib:opentelemetry-gcp-auth-extension:$opentelemetry_contrib_version-alpha", | ||
| opentelemetry_sdk : "io.opentelemetry:opentelemetry-sdk", // google_cloud_platform_libraries_bom sets version | ||
| opentelemetry_exporter_otlp : "io.opentelemetry:opentelemetry-exporter-otlp", // google_cloud_platform_libraries_bom sets version | ||
| opentelemetry_extension_autoconfigure : "io.opentelemetry:opentelemetry-sdk-extension-autoconfigure", // google_cloud_platform_libraries_bom sets version | ||
| opentelemetry_sdk : "io.opentelemetry:opentelemetry-sdk", // opentelemetry-bom sets version | ||
| opentelemetry_exporter_otlp : "io.opentelemetry:opentelemetry-exporter-otlp", // opentelemetry-bom sets version | ||
| opentelemetry_extension_autoconfigure : "io.opentelemetry:opentelemetry-sdk-extension-autoconfigure", // opentelemetry-bom sets version | ||
|
Comment on lines
+866
to
+868
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Similar to
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These modules are currently only used in java-core, where enforcePlatform(opentelemetry-bom) is correctly configured. For other places, only opentelemetry_context is used. Adding a version in beampluginmodule will force the Beam modules pin on this version. |
||
| postgres : "org.postgresql:postgresql:$postgres_version", | ||
| protobuf_java : "com.google.protobuf:protobuf-java:$protobuf_version", | ||
| protobuf_java_util : "com.google.protobuf:protobuf-java-util:$protobuf_version", | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,7 +23,7 @@ | |
|
|
||
| <requiredProperties> | ||
| <requiredProperty key="targetPlatform"> | ||
| <defaultValue>1.8</defaultValue> | ||
| <defaultValue>11</defaultValue> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. WAI |
||
| </requiredProperty> | ||
| </requiredProperties> | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,4 +18,4 @@ package=it.pkg | |
| version=0.1 | ||
| groupId=archetype.it | ||
| artifactId=basic | ||
| targetPlatform=1.8 | ||
| targetPlatform=11 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,4 +18,4 @@ package=it.pkg | |
| version=0.1 | ||
| groupId=archetype.it | ||
| artifactId=basic | ||
| targetPlatform=1.8 | ||
| targetPlatform=11 | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The issue #30505 specifically mentions that
opentelemetry-apiandopentelemetry-sdkare missing versions in the generated POMs. While you've added an explicit version foropentelemetry_contextat line 864,opentelemetry_apistill lacks one. It should likely be updated to include$opentelemetry_versionto ensure it is correctly propagated to the archetype POMs.