This repository has been archived by the owner on Dec 16, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.gradle
78 lines (64 loc) · 1.56 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
65
66
67
68
69
70
71
72
73
74
75
76
77
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'maven-publish'
group = 'com.codeborne'
archivesBaseName = 'mobileid'
version = '1.4.2-SNAPSHOT'
defaultTasks 'clean', 'test', 'install'
repositories{
mavenCentral()
}
sourceSets {
main {
java {
srcDir 'src'
}
}
test {
java {
srcDir 'test'
}
}
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
compileJava.options.debugOptions.debugLevel = "source,lines,vars"
[compileJava, compileTestJava, javadoc]*.options.collect {options ->
options.encoding = 'UTF-8'
}
[compileJava, compileTestJava]*.options.collect {options ->
options.debug = true
options.deprecation = true
options.compilerArgs.add '-Xlint'
options.compilerArgs.add '-Xlint:-unchecked'
options.compilerArgs.add '-Xlint:-serial'
options.compilerArgs.add '-Xlint:-rawtypes'
}
dependencies {
compile 'org.apache.axis:axis:1.4'
compile 'org.apache.axis:axis-jaxrpc:1.4'
compile 'commons-discovery:commons-discovery:0.5'
compile 'wsdl4j:wsdl4j:1.6.3'
testCompile 'junit:junit:4.12'
testCompile 'org.hamcrest:hamcrest-core:1.3'
testCompile 'org.mockito:mockito-core:2.23.4'
}
task libs(type: Sync) {
from configurations.compile
from configurations.testCompile
into "$buildDir/lib"
}
compileJava.dependsOn libs
task sourcesJar(type: Jar, dependsOn:classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn:javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives jar
archives sourcesJar
archives javadocJar
}