|
6 | 6 | no-build-cache:
|
7 | 7 | type: boolean
|
8 | 8 | required: false
|
| 9 | + |
| 10 | +env: |
| 11 | + EXPORTER_VERSION: 1.0.0-beta.22 # to be updated with the latest version |
9 | 12 |
|
10 | 13 | jobs:
|
11 | 14 | spotless:
|
|
42 | 45 | distribution: temurin
|
43 | 46 | java-version: 17
|
44 | 47 |
|
| 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 | +
|
45 | 55 | - name: Generate license report
|
46 | 56 | uses: gradle/gradle-build-action@v3
|
47 | 57 | with:
|
|
81 | 91 | distribution: temurin
|
82 | 92 | java-version: 17
|
83 | 93 |
|
| 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 | +
|
84 | 101 | - name: Assemble
|
85 | 102 | uses: gradle/gradle-build-action@v3
|
86 | 103 | with:
|
@@ -129,6 +146,13 @@ jobs:
|
129 | 146 | distribution: temurin
|
130 | 147 | java-version: 17
|
131 | 148 |
|
| 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 | +
|
132 | 156 | - name: Test
|
133 | 157 | uses: gradle/gradle-build-action@v3
|
134 | 158 | with:
|
@@ -169,6 +193,13 @@ jobs:
|
169 | 193 | distribution: temurin
|
170 | 194 | java-version: 17
|
171 | 195 |
|
| 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 | +
|
172 | 203 | - name: Test
|
173 | 204 | uses: gradle/gradle-build-action@v3
|
174 | 205 | with:
|
|
0 commit comments