forked from sgroschupf/zkclient
-
Notifications
You must be signed in to change notification settings - Fork 38
/
build.gradle
65 lines (52 loc) · 1.45 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
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'maven'
group = 'com.101tec'
version = '0.8.1'
targetCompatibility = 1.8
sourceCompatibility = 1.8
[compileJava, compileTestJava].each() {
it.options.compilerArgs += ["-Xlint:unchecked", "-Xlint:deprecation", "-Xlint:-options"]
it.options.encoding = "UTF-8"
}
jar {
manifest {
attributes 'Implementation-Title': 'ZkClient', 'Implementation-Version': version
}
}
repositories {
maven {
url 'http://maven.oschina.net/content/groups/public/'
}
mavenCentral()
}
dependencies {
compile ('org.apache.zookeeper:zookeeper:3.4.6'){
exclude(module: 'log4j')
exclude(module: 'slf4j-log4j12')
}
compile 'org.slf4j:slf4j-api:1.7.15'
compile 'org.apache.logging.log4j:log4j-slf4j-impl:2.5'
compile 'org.apache.logging.log4j:log4j-core:2.5'
testCompile 'junit:junit:4.12'
testCompile 'org.assertj:assertj-core:2.0.0'
testCompile 'commons-io:commons-io:1.4'
testCompile 'org.mockito:mockito-core:1.8.0'
//dependencies of mockito
//testCompile files('lib/objenesis-1.0.jar', 'lib/hamcrest-core-1.1.jar')
}
//--------------------
// Source Jar
//--------------------
task sourceJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn:javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourceJar
archives javadocJar
}