Java – add directories to jars for inserting external jars or classes
•
Java
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
二维码