|
8 | 8 | required: false
|
9 | 9 |
|
10 | 10 | env:
|
11 |
| - EXPORTER_VERSION: 1.1.0 # to be updated with the latest version |
| 11 | + # set this to <repo>:<branch/sha> to build and test with an unreleased |
| 12 | + # version of the azure-monitor-opentelemetry-autoconfigure dependency |
| 13 | + AZURE_MONITOR_OPENTELEMETRY_AUTOCONFIGURE: |
12 | 14 |
|
13 | 15 | jobs:
|
14 | 16 | spotless:
|
|
46 | 48 | distribution: temurin
|
47 | 49 | java-version: 17
|
48 | 50 |
|
49 |
| - - name: Using a local standalone exporter dependency? |
50 |
| - if: ${{ hashFiles('azure-monitor-opentelemetry-autoconfigure-1.0.0-beta.*.jar') != '' }} |
51 |
| - run: | |
52 |
| - echo "exporter_version: ${{ env.EXPORTER_VERSION }}" |
53 |
| - mvn -version |
54 |
| - mvn install:install-file -Dfile="azure-monitor-opentelemetry-autoconfigure-${{ env.EXPORTER_VERSION }}.jar" -DpomFile="azure-monitor-opentelemetry-autoconfigure-${{ env.EXPORTER_VERSION }}.pom" -DgroupId="com.azure" -DartifactId="azure-monitor-opentelemetry-autoconfigure" -Dversion="${{ env.EXPORTER_VERSION }}" |
| 51 | + - name: Build and install local azure-monitor-opentelemetry-autoconfigure dependency |
| 52 | + if: env.AZURE_MONITOR_OPENTELEMETRY_AUTOCONFIGURE != '' |
| 53 | + run: ./.github/scripts/build-azure-monitor-dependency.sh |
55 | 54 |
|
56 | 55 | - name: Setup Gradle
|
57 | 56 | uses: gradle/actions/setup-gradle@v4
|
@@ -93,12 +92,10 @@ jobs:
|
93 | 92 | distribution: temurin
|
94 | 93 | java-version: 17
|
95 | 94 |
|
96 |
| - - name: Using a local standalone exporter dependency? |
97 |
| - if: ${{ hashFiles('azure-monitor-opentelemetry-autoconfigure-1.0.0-beta.*.jar') != '' }} |
98 |
| - run: | |
99 |
| - echo "exporter_version: ${{ env.EXPORTER_VERSION }}" |
100 |
| - mvn -version |
101 |
| - mvn install:install-file -Dfile="azure-monitor-opentelemetry-autoconfigure-${{ env.EXPORTER_VERSION }}.jar" -DpomFile="azure-monitor-opentelemetry-autoconfigure-${{ env.EXPORTER_VERSION }}.pom" -DgroupId="com.azure" -DartifactId="azure-monitor-opentelemetry-autoconfigure" -Dversion="${{ env.EXPORTER_VERSION }}" |
| 95 | + - name: Build and install local azure-monitor-opentelemetry-autoconfigure dependency |
| 96 | + if: env.AZURE_MONITOR_OPENTELEMETRY_AUTOCONFIGURE != '' |
| 97 | + shell: bash |
| 98 | + run: ./.github/scripts/build-azure-monitor-dependency.sh |
102 | 99 |
|
103 | 100 | - name: Setup Gradle
|
104 | 101 | uses: gradle/actions/setup-gradle@v4
|
@@ -165,12 +162,10 @@ jobs:
|
165 | 162 | distribution: temurin
|
166 | 163 | java-version: 17
|
167 | 164 |
|
168 |
| - - name: Using a local standalone exporter dependency? |
169 |
| - if: ${{ hashFiles('azure-monitor-opentelemetry-autoconfigure-1.0.0-beta.*.jar') != '' }} |
170 |
| - run: | |
171 |
| - echo "exporter_version: ${{ env.EXPORTER_VERSION }}" |
172 |
| - mvn -version |
173 |
| - mvn install:install-file -Dfile="azure-monitor-opentelemetry-autoconfigure-${{ env.EXPORTER_VERSION }}.jar" -DpomFile="azure-monitor-opentelemetry-autoconfigure-${{ env.EXPORTER_VERSION }}.pom" -DgroupId="com.azure" -DartifactId="azure-monitor-opentelemetry-autoconfigure" -Dversion="${{ env.EXPORTER_VERSION }}" |
| 165 | + - name: Build and install local azure-monitor-opentelemetry-autoconfigure dependency |
| 166 | + if: env.AZURE_MONITOR_OPENTELEMETRY_AUTOCONFIGURE != '' |
| 167 | + shell: bash |
| 168 | + run: ./.github/scripts/build-azure-monitor-dependency.sh |
174 | 169 |
|
175 | 170 | - name: Setup Gradle
|
176 | 171 | uses: gradle/actions/setup-gradle@v4
|
@@ -239,12 +234,9 @@ jobs:
|
239 | 234 | distribution: temurin
|
240 | 235 | java-version: 17
|
241 | 236 |
|
242 |
| - - name: Using a local standalone exporter dependency? |
243 |
| - if: ${{ hashFiles('azure-monitor-opentelemetry-autoconfigure-1.0.0-beta.*.jar') != '' }} |
244 |
| - run: | |
245 |
| - echo "exporter_version: ${{ env.EXPORTER_VERSION }}" |
246 |
| - mvn -version |
247 |
| - mvn install:install-file -Dfile="azure-monitor-opentelemetry-autoconfigure-${{ env.EXPORTER_VERSION }}.jar" -DpomFile="azure-monitor-opentelemetry-autoconfigure-${{ env.EXPORTER_VERSION }}.pom" -DgroupId="com.azure" -DartifactId="azure-monitor-opentelemetry-autoconfigure" -Dversion="${{ env.EXPORTER_VERSION }}" |
| 237 | + - name: Build and install local azure-monitor-opentelemetry-autoconfigure dependency |
| 238 | + if: env.AZURE_MONITOR_OPENTELEMETRY_AUTOCONFIGURE != '' |
| 239 | + run: ./.github/scripts/build-azure-monitor-dependency.sh |
248 | 240 |
|
249 | 241 | - name: Setup Gradle
|
250 | 242 | uses: gradle/actions/setup-gradle@v4
|
|
0 commit comments