Skip to content

Commit

Permalink
Loader: Jars cannot load jsch (close #942)
Browse files Browse the repository at this point in the history
  • Loading branch information
voropaevp authored and istreeter committed Jun 25, 2022
1 parent 8627c41 commit fd7a2e8
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions project/BuildSettings.scala
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,6 @@ object BuildSettings {

lazy val assemblySettings = Seq(
jarName,

assembly / assemblyShadeRules := Seq(
ShadeRule.rename(
// EMR has 0.1.42 installed
"com.jcraft.jsch.**" -> "shadejsch.@1"
).inAll
),

assembly / assemblyMergeStrategy := {
case x if x.endsWith("module-info.class") => MergeStrategy.discard
case PathList("org", "apache", "commons", "logging", _ @ _*) => MergeStrategy.first
Expand Down Expand Up @@ -248,6 +240,12 @@ object BuildSettings {
description := "Spark job to transform Snowplow enriched events into DB/query-friendly format",
buildInfoPackage := "com.snowplowanalytics.snowplow.rdbloader.transformer.batch.generated",
buildInfoKeys := List(name, version, description),
assembly / assemblyShadeRules := Seq(
ShadeRule.rename(
// EMR has 0.1.42 installed
"com.jcraft.jsch.**" -> "shadejsch.@1"
).inProject
),
BuildSettings.oneJvmPerTestSetting // ensures that only CrossBatchDeduplicationSpec has a DuplicateStorage
) ++ buildSettings ++ transformerAssemblySettings ++ dynVerSettings ++ addExampleConfToTestCp
}
Expand Down

0 comments on commit fd7a2e8

Please sign in to comment.