You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. Can I use adapted Log4j2MergeStrategy to sbt-assembly:2.0.0 ?
AsIs
When I change the version of sbt-assembly of the project including log4j2 plugins to 2.0.0 and run sbt assembly,
I get the following error.
[error] java.lang.IncompatibleClassChangeError: class sbtassembly.Log4j2MergeStrategy$$anon$1 has interface sbtassembly.MergeStrategy as super class
[error] at java.base/java.lang.ClassLoader.defineClass1(Native Method)
[error] at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1016)
[error] at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174)
[error] at java.base/java.net.URLClassLoader.defineClass(URLClassLoader.java:550)
[error] at java.base/java.net.URLClassLoader$1.run(URLClassLoader.java:458)
[error] at java.base/java.net.URLClassLoader$1.run(URLClassLoader.java:452)
[error] at java.base/java.security.AccessController.doPrivileged(Native Method)
[error] at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:451)
[error] at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:588)
[error] at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
[error] at sbtassembly.Log4j2MergeStrategy$.<init>(Log4j2MergeStrategy.scala:10)
[error] at sbtassembly.Log4j2MergeStrategy$.<clinit>(Log4j2MergeStrategy.scala)
[error] at $29c5b19eaf522355c3d4$.$anonfun$lambda$minusadd$minusmeasurement$4(build.sbt:137)
[error] at sbtassembly.Assembly$.$anonfun$assemble$31(Assembly.scala:311)
[error] at sbtassembly.Assembly$.$anonfun$assemble$31$adapted(Assembly.scala:311)
[error] at scala.collection.TraversableLike.$anonfun$partition$1(TraversableLike.scala:450)
[error] at scala.collection.Iterator.foreach(Iterator.scala:943)
[error] at scala.collection.Iterator.foreach$(Iterator.scala:943)
[error] at scala.collection.AbstractIterator.foreach(Iterator.scala:1431)
[error] at scala.collection.IterableLike.foreach(IterableLike.scala:74)
[error] at scala.collection.IterableLike.foreach$(IterableLike.scala:73)
[error] at scala.collection.AbstractIterable.foreach(Iterable.scala:56)
[error] at scala.collection.TraversableLike.partition(TraversableLike.scala:450)
[error] at scala.collection.TraversableLike.partition$(TraversableLike.scala:448)
[error] at scala.collection.AbstractTraversable.partition(Traversable.scala:108)
[error] at sbtassembly.Assembly$.$anonfun$assemble$30(Assembly.scala:311)
[error] at sbtassembly.Assembly$.timed$1(Assembly.scala:225)
[error] at sbtassembly.Assembly$.assemble(Assembly.scala:309)
[error] at sbtassembly.Assembly$.$anonfun$assemblyTask$1(Assembly.scala:193)
[error] at scala.Function1.$anonfun$compose$1(Function1.scala:49)
[error] at sbt.internal.util.$tilde$greater.$anonfun$$u2219$1(TypeFunctions.scala:62)
[error] at sbt.std.Transform$$anon$4.work(Transform.scala:68)
[error] at sbt.Execute.$anonfun$submit$2(Execute.scala:282)
[error] at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:23)
[error] at sbt.Execute.work(Execute.scala:291)
[error] at sbt.Execute.$anonfun$submit$1(Execute.scala:282)
[error] at sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:265)
[error] at sbt.CompletionService$$anon$2.call(CompletionService.scala:64)
[error] at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
[error] at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
[error] at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
[error] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
[error] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
[error] at java.base/java.lang.Thread.run(Thread.java:834)
[error] (assembly) java.lang.IncompatibleClassChangeError: class sbtassembly.Log4j2MergeStrategy$$anon$1 has interface sbtassembly.MergeStrategy as super class
[error] Total time: 10 s, completed 2022/11/08 16:00:13
ToBe
Log4j2MergeStrategy supports sbt-assembly:2.0.0.
The text was updated successfully, but these errors were encountered:
Hello. Can I use adapted Log4j2MergeStrategy to
sbt-assembly:2.0.0
?AsIs
When I change the version of
sbt-assembly
of the project including log4j2 plugins to 2.0.0 and runsbt assembly
,I get the following error.
ToBe
Log4j2MergeStrategy supports
sbt-assembly:2.0.0
.The text was updated successfully, but these errors were encountered: