Skip to content

Commit

Permalink
Adding java contrib as package (#35281)
Browse files Browse the repository at this point in the history
<!---
Provide a short summary in the Title above. Examples of good PR titles:
* "ruby-3.1: new package"
* "haproxy: fix CVE-2014-123456"
-->
java-contrib: new package (opentelemetry jmx metrics)
<!--
Please include references to any related issues or delete this section
otherwise.
 -->

Fixes:

Related:

### Pre-review Checklist

<!--
This checklist is mostly useful as a reminder of small things that can
easily be
forgotten – it is meant as a helpful tool rather than hoops to jump
through.

At the moment of this PR you have the most information on what all the
change
will affect, so please take the time to jot it down.

Put an `x` in all the items that apply, make notes next to any that
haven't been
addressed, and remove any items that are not relevant to this PR.

-->

#### For new package PRs only
<!-- remove if unrelated -->
- [x] REQUIRED - The package is available under an OSI-approved or
FSF-approved license
- [x] REQUIRED - The version of the package is still receiving security
updates
  • Loading branch information
utieyin authored Nov 28, 2024
1 parent 336b153 commit 2d77837
Showing 1 changed file with 75 additions and 0 deletions.
75 changes: 75 additions & 0 deletions opentelemetry-java-contrib.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
package:
name: opentelemetry-java-contrib
version: 1.41.0
epoch: 0
description: Helpful libraries and standalone OpenTelemetry-based utilities for opentelemetry java and java instrumentation
copyright:
- license: Apache-2.0

environment:
contents:
packages:
- bash
- busybox
- ca-certificates-bundle
- openjdk-17-default-jdk
environment:
JAVA_HOME: /usr/lib/jvm/java-17-openjdk

pipeline:
- uses: git-checkout
with:
repository: https://github.com/open-telemetry/opentelemetry-java-contrib.git
tag: v${{package.version}}
expected-commit: e0775a738750d875462ca2170a3083a52fdfea7f
recurse-submodules: true

data:
- name: contrib-components
items:
all: "."
aws-resources: "."
aws-xray: "."
aws-xray-propagator: "."
baggage-processor: "."
consistent-sampling: "."
disk-buffering: "."
gcp-resources: "."
inferred-spans: "."
jfr-connection: "."
jfr-events: "."
jmx-metrics: "."
kafka-exporter: "."
maven-extension: "."
micrometer-meter-provider: "."
noop-api: "."
opamp-client: "."
processors: "."
prometheus-client-bridge: "."
resource-providers: "."
samplers: "."
span-stacktrace: "."
static-instrumenter: "."

subpackages:
- range: contrib-components
name: ${{package.name}}-${{range.key}}
pipeline:
- runs: |
./gradlew :${{range.key}}:build -Potel.stable=true -x test
- runs: |
mkdir -p ${{targets.contextdir}}/usr/share/java/${{range.key}}
mv /home/build/${{range.key}}/build/libs/opentelemetry-${{range.key}}-${{package.version}}.jar ${{targets.contextdir}}/usr/share/java/${{range.key}}
- range: contrib-components
name: ${{package.name}}-${{range.key}}-compat
pipeline:
- runs: |
mkdir -p ${{targets.contextdir}}/opt
ln -sf /usr/share/java/${{range.key}}/opentelemetry-${{range.key}}-${{package.version}}.jar ${{targets.contextdir}}/opt/opentelemetry-${{range.key}}-${{package.version}}.jar
update:
enabled: true
github:
identifier: open-telemetry/opentelemetry-java-contrib
strip-prefix: v

0 comments on commit 2d77837

Please sign in to comment.