-
Notifications
You must be signed in to change notification settings - Fork 49
/
build.gradle
40 lines (31 loc) · 1.11 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
apply plugin: 'java'
sourceCompatibility = 1.6
jar.baseName = 'zabbix4j'
jar.libsDir = './lib'
jar.libsDir = './lib'
version = '0.1'
repositories {
mavenCentral()
}
dependencies {
compile group: 'ch.qos.logback', name:'logback-classic', version:'1.1.2'
compile group: 'org.slf4j', name:'slf4j-simple', version:'1.7.7'
compile group: 'org.slf4j', name:'log4j-over-slf4j', version:'1.7.7'
compile group: 'com.google.code.gson', name:'gson', version:'2.2.4'
compile group: 'org.apache.httpcomponents', name:'httpclient', version:'4.3.3'
compile group: 'org.projectlombok', name:'lombok', version:'1.14.4'
testCompile group: 'junit', name: 'junit', version: '4.11'
testCompile group: 'org.hamcrest', name: 'hamcrest-core', version: '1.3'
testCompile group: 'org.hamcrest', name: 'hamcrest-library', version: '1.3'
compile fileTree(dir: 'libs', include: '*.jar')
}
compileJava {
options.compilerArgs = ['-Xlint:deprecation', '-Xlint:unchecked']
}
task installDependencies << {
new File('./lib').mkdirs()
copy {
from configurations.compile
into './lib'
}
}