gradle build jar with dependencies code example
Example 1: adding jar file gradle
dependencies {
compile fileTree(dir: 'libs', include: '*.jar')
}
Example 2: Gradle include external jar
repositories {
flatDir {
dirs 'libs'
}
}
dependencies {
implementation name: 'gson-2.2.4'
}