-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathbuild.gradle
109 lines (83 loc) · 2.96 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'org.junit.platform:junit-platform-gradle-plugin:1.0.0'
classpath 'com.netflix.nebula:gradle-lint-plugin:latest.release'
}
}
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'application'
apply plugin: 'org.junit.platform.gradle.plugin'
apply plugin: 'nebula.lint'
group = 'antonmry'
version = '1.0-SNAPSHOT'
description = "Source Code for the Kafka Streams Workshop by @antonmry"
sourceCompatibility = 1.8
targetCompatibility = 1.8
mainClassName = 'antonmry.exercise_0.KafkaStreamsApp0'
task runExercise0(type: JavaExec) {
classpath sourceSets.main.runtimeClasspath
main = "antonmry.exercise_0.KafkaStreamsApp0"
}
task runExercise1(type: JavaExec) {
classpath sourceSets.main.runtimeClasspath
main = "antonmry.exercise_1.KafkaStreamsApp1"
}
task runExercise2(type: JavaExec) {
classpath sourceSets.main.runtimeClasspath
main = "antonmry.exercise_2.KafkaStreamsApp2"
}
task runExercise3(type: JavaExec) {
classpath sourceSets.main.runtimeClasspath
main = "antonmry.exercise_3.KafkaStreamsApp3"
}
task runExercise4(type: JavaExec) {
classpath sourceSets.main.runtimeClasspath
main = "antonmry.exercise_4.KafkaStreamsApp4"
}
task runExercise5(type: JavaExec) {
classpath sourceSets.main.runtimeClasspath
main = "antonmry.exercise_5.KafkaStreamsApp5"
}
task runSolution(type: JavaExec) {
classpath sourceSets.main.runtimeClasspath
main = "antonmry.solution.KafkaStreamsApp"
}
jar {
archiveName = 'antonmry-kafka-streams-workshop-1.0-SNAPSHOT.jar'
}
repositories {
mavenCentral()
}
configurations {
compile.exclude group: 'ch.qos.logback'
}
compileJava {
options.warnings = true
options.deprecation = true
}
junitPlatform {
enableStandardTestTask = true
}
dependencies {
compile group: 'com.google.code.gson', name: 'gson', version: '2.6.1'
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
compile group: 'org.apache.kafka', name: 'kafka-streams', version: '2.3.1'
compile group: 'org.apache.kafka', name: 'kafka-clients', version: '2.3.1'
compile(group: 'com.github.javafaker', name: 'javafaker', version: '0.12') {
exclude group: 'ch.qos.logback'
exclude group: 'org.slf4j', module: 'slf4j-log4j12'
}
testCompile group: 'org.apache.kafka', name: 'kafka-streams', version: '2.3.1', classifier: 'test'
testCompile group: 'org.apache.kafka', name: 'kafka-clients', version: '2.3.1', classifier: 'test'
testCompile group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.0.0'
testCompile group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.0.0'
testCompile group: 'org.hamcrest', name: 'hamcrest-junit', version: '2.0.0.0'
testCompile group: 'org.apache.kafka', name: 'kafka-streams-test-utils', version: '2.3.1'
}
//gradleLint.rules += 'unused-dependency'