-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
64 lines (52 loc) · 1.18 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
apply plugin: 'java'
ext {
LibClassesDir = "$buildDir/libclasses"
LocalArtifactDir = "D:/Lib/doclava"
}
group = 'org.knight.doclava'
archivesBaseName = 'doclava'
version = '1.0.6'
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
options.warnings = false
}
repositories {
mavenCentral()
}
dependencies {
compile files(System.env["JAVA_HOME"] + "/lib/tools.jar")
compile 'com.google.guava:guava:18.0'
compile 'com.google.jsilver:jsilver:1.0.0'
compile 'org.slf4j:slf4j-api:1.7.21'
compile 'org.apache.logging.log4j:log4j-slf4j-impl:2.5'
compile 'org.apache.logging.log4j:log4j-core:2.5'
compile 'org.apache.commons:commons-io:1.3.2'
compile 'com.github.jknack:handlebars:4.0.5'
}
jar {
dependsOn 'unzipLibraries'
from LibClassesDir
}
uploadArchives {
repositories {
flatDir {
name 'LocalArtifactDir'
dir LocalArtifactDir
}
}
}
task unzipLibraries {
outputs.dir file(LibClassesDir)
doLast {
configurations.compile.each { lib ->
if (lib.name != 'tools.jar') {
copy {
from zipTree(lib)
into LibClassesDir
}
}
}
}
}