Renaming file in jar via Gradle

162 Views Asked by At

I have a jar task (well a ShadowJar, but that shouldn't matter I think).

named<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar>("shadowJar") {
        archiveClassifier.set("")
        duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}

There's a file called linux/x64/org/lwjgl/liblwjgl.so within a dependency which I need to rename to liblwjgl3.so. Is there a way to do that within the jar task?

0

There are 0 best solutions below