-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
57 lines (48 loc) · 1.46 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
/*
* This build file was auto generated by running the Gradle 'init' task
* by 'jtoney' at '4/28/14 5:05 PM' with Gradle 1.11
*
* This generated file contains a commented-out sample Java project to get you started.
* For more details take a look at the Java Quickstart chapter in the Gradle
* user guide available at http://gradle.org/docs/1.11/userguide/tutorial_java_projects.html
*/
// Apply the java plugin to add support for Java
apply plugin: 'java'
apply plugin: 'maven'
group='kafkasphere-core'
version='1.0-SNAPSHOT'
repositories {
mavenLocal()
mavenCentral()
}
configurations {
all*.exclude group: 'javax.jms'
all*.exclude group: 'com.sun.jdmk'
all*.exclude group: 'com.sun.jmx'
}
sourceSets {
main {
java {
srcDir 'src/java'
}
}
}
dependencies {
compile 'com.sparkjava:spark-core:1.1.1'
compile 'com.sparkjava:spark-template-freemarker:1.0'
compile 'org.apache.kafka:kafka_2.9.2:0.8.1'
compile 'com.fasterxml.jackson.core:jackson-core:2.4.0-rc1'
compile 'com.fasterxml.jackson.core:jackson-databind:2.4.0-rc1'
testCompile 'junit:junit:3.8.1'
runtime 'org.slf4j:slf4j-simple:1.6.1'
}
task execute(type: JavaExec) {
main = "com.DemandCube.KafkaSphere.webserver.server"
classpath = sourceSets.main.runtimeClasspath
}
task generateDocs(type: Javadoc) {
println sourceSets.main.runtimeClasspath
source = sourceSets.main.allJava
test.outputs.upToDateWhen { false }
destinationDir = reporting.file("../../docs/javadocs/")
}