Skip to content

Commit

Permalink
exclude dnsjava service
Browse files Browse the repository at this point in the history
This is pretty bad, but it breaks minosoft for java18+ atm.

#33
  • Loading branch information
Bixilon committed Dec 22, 2024
1 parent 6f9c83d commit 6659a0f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -538,14 +538,15 @@ val fatJar = task("fatJar", type = Jar::class) {
}
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
exclude("META-INF/maven/**")
// TODO: This is bad! dnsjava is a multi release jar, and that a class is only present with java>18. See https://github.com/dnsjava/dnsjava/issues/329 and https://github.com/Bixilon/Minosoft/issues/33
exclude("META-INF/services/java.net.spi.InetAddressResolverProvider")
from(configurations.runtimeClasspath.get().map { if (it.isDirectory) it else zipTree(it) })
with(tasks["jar"] as CopySpec)

// TODO: exclude a lot of unneeded files

// remote other platforms from com.sun.jna
// remove most of it.unimi.fastutil classes
// remove META-INF/maven
}


Expand Down

0 comments on commit 6659a0f

Please sign in to comment.