Skip to content

Commit 286ff21

Browse files
committed
Make gradle able to build a jar
1 parent ae87dff commit 286ff21

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

Lib/build.gradle

+12
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,17 @@ android {
2727
}
2828

2929
dependencies {
30+
}
31+
32+
task clearJar(type: Delete) {
33+
delete 'build/libs/CardTree.jar'
34+
}
3035

36+
task makeJar(type: Copy) {
37+
from('build/bundles/release/')
38+
into('build/libs/')
39+
include('classes.jar')
40+
rename ('classes.jar', 'CardTree.jar')
3141
}
42+
43+
makeJar.dependsOn(clearJar, build)

gradlew

100644100755
File mode changed.

0 commit comments

Comments
 (0)