Skip to content

Commit b31e0e9

Browse files
authored
Fix failing shadowJar Task (#309)
* Add GitHub action step to verify shadowJar builds * fix failing shadowJar task
1 parent 398e552 commit b31e0e9

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

.github/workflows/pr-build.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,30 @@ jobs:
3030
remote-build-cache-proxy-enabled: false
3131
build-root-directory: ${{matrix.build-root}}
3232
arguments: test
33+
shadow:
34+
strategy:
35+
matrix:
36+
java-version: [11]
37+
name: Shadow Jar Build (Java ${{matrix.java-version}})
38+
runs-on: ubuntu-latest
39+
steps:
40+
- id: checkout-repo
41+
uses: actions/checkout@v2
42+
with:
43+
fetch-depth: 0
44+
- id: setup-java
45+
name: Setup Java ${{matrix.java-version}}
46+
uses: actions/setup-java@v1
47+
with:
48+
java-version: ${{matrix.java-version}}
49+
- id: setup-gradle-cache
50+
name: Run Gradle Build with ShadowJar
51+
uses: burrunan/[email protected]
52+
with:
53+
job-id: gradle-shadow-java-${{matrix.java-version}}
54+
remote-build-cache-proxy-enabled: false
55+
build-root-directory: .
56+
arguments: shadowJar
3357
style:
3458
name: Stylecheck (${{matrix.name || matrix.build-root}})
3559
runs-on: ubuntu-latest

exporters/auto/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ dependencies {
3636
}
3737
implementation(libraries.opentelemetry_gcp_resources) {
3838
exclude group: 'io.opentelemetry'
39+
exclude group: 'com.fasterxml.jackson.core'
3940
}
4041
implementation(project(':propagators-gcp')) {
4142
exclude group: 'io.opentelemetry'

0 commit comments

Comments
 (0)