Add a directory to a jar that will insert external jars or classes

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

+3


source to share


1 answer


Put this in your build.gradle

file:

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

      



and sync the project files.

+7


source







All Articles