Skip to content

Commit

Permalink
[BUG][FLINK-DEPEND]Fix flink lib to exclude dependencies that do not …
Browse files Browse the repository at this point in the history
…end in.jar (#3568)

* [fix][bug]Fix flink lib to exclude dependencies that do not end in.jar to avoid conflicts

* fix code style
  • Loading branch information
zhilinli123 authored Feb 20, 2024
1 parent 6f480a7 commit caf4cd7
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,10 @@ object FlinkShimsProxy extends Logger {
SHIMS_CLASS_LOADER_CACHE.getOrElseUpdate(
s"${flinkVersion.fullVersion}", {
// 1) flink/lib
val libURL = getFlinkHomeLib(flinkVersion.flinkHome, "lib", !_.getName.startsWith("log4j"))
val libURL = getFlinkHomeLib(
flinkVersion.flinkHome,
"lib",
file => (!file.getName.startsWith("log4j") && file.getName.endsWith(".jar")))
val shimsUrls = ListBuffer[URL](libURL: _*)

// 2) add all shims jar
Expand Down

0 comments on commit caf4cd7

Please sign in to comment.