Skip to content

Commit

Permalink
[#3320] fix(client): shadow slf4j for client-java-runtime (#3318)
Browse files Browse the repository at this point in the history
### What changes were proposed in this pull request?
shadow slf4j for client-java-runtime and spark-connector-runtime 

### Why are the changes needed?
some systems like spark 3.3 need low version log4j, will encounter the
conflict bug:

```
java.lang.NoSuchMethodError: org.apache.logging.slf4j.Log4jLoggerFactory: method 'void <init>()' not found
```

fix: #3320 

### Does this PR introduce _any_ user-facing change?
no

### How was this patch tested?
existing tests
  • Loading branch information
FANNG1 authored May 10, 2024
1 parent aaf94fa commit 4307d5f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clients/client-java-runtime/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ tasks.withType<ShadowJar>(ShadowJar::class.java) {
relocate("com.fasterxml", "com.datastrato.gravitino.shaded.com.fasterxml")
relocate("org.apache.httpcomponents", "com.datastrato.gravitino.shaded.org.apache.httpcomponents")
relocate("org.apache.commons", "com.datastrato.gravitino.shaded.org.apache.commons")
relocate("org.apache.logging.slf4j", "com.datastrato.gravitino.shaded.org.apache.logging.slf4j")
relocate("org.antlr", "com.datastrato.gravitino.shaded.org.antlr")
}

Expand Down

0 comments on commit 4307d5f

Please sign in to comment.