forked from fusioncharts/fusionexport-java-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
64 lines (58 loc) · 1.89 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
group 'com.fusioncharts.fusionexport.client'
version '2.0.0'
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'application'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
}
jar {
baseName = 'com.fusioncharts.fusionexport.client'
version = '2.0.0'
exclude ("com/example/**")
exclude ("examples/**")
}
task fatJar(type: Jar) {
manifest {
attributes 'Implementation-Title': 'FusionExport Java Client',
'Implementation-Version': jar.version
}
baseName = project.name
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
compile 'com.google.code.gson:gson:2.8.2'
compile 'com.googlecode.htmlcompressor:htmlcompressor:1.5.2'
compile 'com.google.javascript:closure-compiler:r1043'
compile 'com.yahoo.platform.yui:yuicompressor:2.4.6'
compile group: 'org.jsoup', name: 'jsoup', version: '1.7.2'
compile group: 'org.apache.ant', name: 'ant', version: '1.8.2'
compile 'org.apache.httpcomponents:httpclient:4.5.6'
compile 'org.apache.httpcomponents:httpmime:4.5.6'
compile group: 'javax.mail', name: 'mail', version: '1.4.5'
compile group: 'javax.activation', name: 'activation', version: '1.1.1'
// https://mvnrepository.com/artifact/org.apache.commons/commons-lang3
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.9'
compile 'commons-io:commons-io:2.6'
}
/*
task genPom {
doLast {
pom {
project {
inceptionYear '2018'
licenses {
license {
name 'The MIT License'
url 'https://opensource.org/licenses/MIT'
}
}
}
}.writeTo("$buildDir/pom.xml")
}
}
*/