forked from subchen/javadoc.chm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
41 lines (33 loc) · 901 Bytes
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
apply plugin: 'java'
sourceCompatibility = 1.8
targetCompatibility = 1.8
version = '2.1.0'
defaultTasks 'runtimejar'
tasks.withType(JavaCompile) {
options.encoding = "utf-8"
}
dependencies {
compile fileTree(dir: 'lib', include: '**/*.jar')
}
jar {
manifest {
attributes 'Main-Class': 'jetbrick.tools.chm.Application'
}
}
task runtimejar(dependsOn: jar) {
def outputFile = 'build/libs/javadoc.chm.jar'
doLast {
new File(outputFile).delete()
ant.jar(
destfile: outputFile,
filesetmanifest: 'merge',
duplicate: 'preserve'
) {
fileTree(dir: 'lib', include: '**/*.jar').each {
zipfileset(src: it, includes: '**/*.class')
}
//zipgroupfileset(dir: 'lib', includes: '*.jar')
zipgroupfileset(dir: 'build/libs', includes: '**/*.jar')
}
}
}