Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Goooler committed Dec 12, 2024
1 parent 8f80928 commit 68f00ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,8 @@ public abstract class ShadowJar :
if (!enableRelocation.get()) return emptyList()

val prefix = relocationPrefix.get()
// Must cast configurations to List<FileCollection> to fix type mismatch in runtime.
return (configurations.get() as List<FileCollection>).flatMap { configuration ->
// Must cast configurations to Set<FileCollection> to fix type mismatch in runtime.
return (configurations.get() as Set<FileCollection>).flatMap { configuration ->
configuration.files.flatMap { file ->
JarFile(file).use { jarFile ->
jarFile.entries().toList()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class Log4j2PluginsCacheFileTransformerTest : BaseTransformerTest<Log4j2PluginsC
}

private fun context(vararg relocator: SimpleRelocator): TransformerContext {
return TransformerContext(PLUGIN_CACHE_FILE, requireResourceAsStream(PLUGIN_CACHE_FILE), relocator.toList())
return TransformerContext(PLUGIN_CACHE_FILE, requireResourceAsStream(PLUGIN_CACHE_FILE), relocator.toSet())
}

private companion object {
Expand Down

0 comments on commit 68f00ae

Please sign in to comment.