Skip to content

Commit 0ebde05

Browse files
authored
Enable Testing Custom Standalone Exporter Dependency (#3665)
1 parent 102c705 commit 0ebde05

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

.github/workflows/build-common.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
no-build-cache:
77
type: boolean
88
required: false
9+
10+
env:
11+
EXPORTER_VERSION: 1.0.0-beta.22 # to be updated with the latest version
912

1013
jobs:
1114
spotless:
@@ -42,6 +45,13 @@ jobs:
4245
distribution: temurin
4346
java-version: 17
4447

48+
- name: Using a local standalone exporter dependency?
49+
if: ${{ hashFiles('azure-monitor-opentelemetry-exporter-1.0.0-beta.*.jar') != '' }}
50+
run: |
51+
echo "exporter_version: ${{ env.EXPORTER_VERSION }}"
52+
mvn -version
53+
mvn install:install-file -Dfile="azure-monitor-opentelemetry-exporter-${{ env.EXPORTER_VERSION }}.jar" -DpomFile="azure-monitor-opentelemetry-exporter-${{ env.EXPORTER_VERSION }}.pom" -DgroupId="com.azure" -DartifactId="azure-monitor-opentelemetry-exporter" -Dversion="${{ env.EXPORTER_VERSION }}"
54+
4555
- name: Generate license report
4656
uses: gradle/gradle-build-action@v3
4757
with:
@@ -81,6 +91,13 @@ jobs:
8191
distribution: temurin
8292
java-version: 17
8393

94+
- name: Using a local standalone exporter dependency?
95+
if: ${{ hashFiles('azure-monitor-opentelemetry-exporter-1.0.0-beta.*.jar') != '' }}
96+
run: |
97+
echo "exporter_version: ${{ env.EXPORTER_VERSION }}"
98+
mvn -version
99+
mvn install:install-file -Dfile="azure-monitor-opentelemetry-exporter-${{ env.EXPORTER_VERSION }}.jar" -DpomFile="azure-monitor-opentelemetry-exporter-${{ env.EXPORTER_VERSION }}.pom" -DgroupId="com.azure" -DartifactId="azure-monitor-opentelemetry-exporter" -Dversion="${{ env.EXPORTER_VERSION }}"
100+
84101
- name: Assemble
85102
uses: gradle/gradle-build-action@v3
86103
with:
@@ -129,6 +146,13 @@ jobs:
129146
distribution: temurin
130147
java-version: 17
131148

149+
- name: Using a local standalone exporter dependency?
150+
if: ${{ hashFiles('azure-monitor-opentelemetry-exporter-1.0.0-beta.*.jar') != '' }}
151+
run: |
152+
echo "exporter_version: ${{ env.EXPORTER_VERSION }}"
153+
mvn -version
154+
mvn install:install-file -Dfile="azure-monitor-opentelemetry-exporter-${{ env.EXPORTER_VERSION }}.jar" -DpomFile="azure-monitor-opentelemetry-exporter-${{ env.EXPORTER_VERSION }}.pom" -DgroupId="com.azure" -DartifactId="azure-monitor-opentelemetry-exporter" -Dversion="${{ env.EXPORTER_VERSION }}"
155+
132156
- name: Test
133157
uses: gradle/gradle-build-action@v3
134158
with:
@@ -169,6 +193,13 @@ jobs:
169193
distribution: temurin
170194
java-version: 17
171195

196+
- name: Using a local standalone exporter dependency?
197+
if: ${{ hashFiles('azure-monitor-opentelemetry-exporter-1.0.0-beta.*.jar') != '' }}
198+
run: |
199+
echo "exporter_version: ${{ env.EXPORTER_VERSION }}"
200+
mvn -version
201+
mvn install:install-file -Dfile="azure-monitor-opentelemetry-exporter-${{ env.EXPORTER_VERSION }}.jar" -DpomFile="azure-monitor-opentelemetry-exporter-${{ env.EXPORTER_VERSION }}.pom" -DgroupId="com.azure" -DartifactId="azure-monitor-opentelemetry-exporter" -Dversion="${{ env.EXPORTER_VERSION }}"
202+
172203
- name: Test
173204
uses: gradle/gradle-build-action@v3
174205
with:

licenses/more-licenses.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
# agent
33
## Dependency License Report
4-
_2024-04-29 08:28:21 UTC_
4+
_2024-04-30 16:16:32 PDT_
55
## Apache License, Version 2.0
66

77
**1** **Group:** `com.fasterxml.jackson.core` **Name:** `jackson-annotations` **Version:** `2.17.0`

0 commit comments

Comments
 (0)