Java – add directories to jars for inserting external jars or classes

I have a jar file, which is my application (built by gradle), and I want to add a directory. It is the "ext" folder of extensible files (jars or classes) How do you do it?

Solution

Put it in build In the gradle file:

dependencies {
    compile fileTree(dir: 'ext',include: ['*.jar'])
}

And synchronize project files

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>