update assembly merge strategy to use latest conventinon

Signed-off-by: hrj <harshad.rj@gmail.com>
This commit is contained in:
hrj 2021-12-27 20:19:20 +05:30
parent 700bd2d910
commit 4988e2e856
No known key found for this signature in database
GPG Key ID: 35AC9CDA4A96B00C
1 changed files with 3 additions and 2 deletions

View File

@ -29,10 +29,11 @@ assembly / mainClass := Some("lc.LCFramework")
Compile / run / mainClass := Some("lc.LCFramework")
assembly / assemblyJarName := "LibreCaptcha.jar"
assembly / assemblyMergeStrategy := {
ThisBuild / assemblyMergeStrategy := {
case PathList("module-info.class") => MergeStrategy.discard
case x if x.endsWith("/module-info.class") => MergeStrategy.discard
case x =>
val oldStrategy = (assembly / assemblyMergeStrategy).value
val oldStrategy = (ThisBuild / assemblyMergeStrategy).value
oldStrategy(x)
}