Override file in Gradle build dependency jar

I would like to output a jar which internally contains my dependency jar but overrides a particular file in the dependency jar with my own. I am using gradle build. Can someone help me with this? The task which build jar for me: jar { archiveName "JarName-${version}.jar" dependsOn configurations.runtime from { (configurations.runtime - configurations.provided).collect { it.isDirectory() ? it : zipTree(it) } } }

Answers


Well I actually stopped duplicating the file by including the following strategy: duplicatesStrategy = DuplicatesStrategy.EXCLUDE

It seems like my changes becomes a part of the output jar before they are being overridden by the file in my dependency jar. So, restricting duplicacy helped in resolving the issue.


Need Your Help

TAKE function in SML

sml

In the TAKE function which is given by

Is it possible to call a user-space callback function from kernel space in Linux (ioctl)?

linux-kernel kernel linux-device-driver ioctl

Is it possible to expand the ioctl interface in Linux so that the user-space application can send a pointer to a function to the kernel space driver?