-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
44 lines (36 loc) · 945 Bytes
/
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
// Define wrapper task.
task wrapper(type: Wrapper) {
gradleVersion = '3.4.1'
}
// Apply plugins.
apply plugin: 'idea'
apply plugin: 'java'
apply plugin: 'application'
// Define the version and main class.
version = '1.0.0-SNAPSHOT'
mainClassName = "io.keen.sample.java.Main"
// Set up dependencies.
repositories {
mavenCentral()
}
dependencies {
compile 'io.keen:keen-client-api-java:6.0.0'
compile 'com.fasterxml.jackson.core:jackson-databind:2.3.0'
compile 'commons-cli:commons-cli:1.2'
testCompile 'org.hamcrest:hamcrest-library:1.3'
testCompile 'org.mockito:mockito-all:1.9.5'
testCompile 'junit:junit:4.11'
}
// Limit JUnit tests to classes ending in 'Test'.
test {
include '**/*Test.class'
}
run {
systemProperties = System.getProperties()
if (project.hasProperty('args')){
args project.args.split('\\s+')
}
}
jar {
manifest { attributes 'Main-Class': mainClassName }
}