-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
97 lines (68 loc) · 2.65 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
plugins {
id 'java'
}
test.onlyIf { !project.hasProperty('doTest') }
group 'net.christophschubert'
version '1.0.1-SNAPSHOT'
sourceCompatibility = 1.11
allprojects {
apply plugin: 'java'
apply plugin: 'maven'
group 'net.christophschubert'
version '1.0.1-SNAPSHOT'
}
jar {
manifest {
attributes "Main-Class": "net.christophschubert.kafka.clusterstate.cli.CLI"
}
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
}
repositories {
mavenCentral()
maven {
url 'https://packages.confluent.io/maven'
}
maven { //necessary for JSON schema dependency
url 'https://jitpack.io'
}
}
sourceSets {
intTest {
compileClasspath += sourceSets.main.output
runtimeClasspath += sourceSets.main.output
}
}
configurations {
intTestImplementation.extendsFrom implementation
intTestRuntimeOnly.extendsFrom runtimeOnly
}
task integrationTest(type: Test) {
description = "Runs integration tests"
group = 'verification'
testClassesDirs = sourceSets.intTest.output.classesDirs
classpath = sourceSets.intTest.runtimeClasspath
shouldRunAfter test
}
check.dependsOn integrationTest
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.11'
compile group: 'org.apache.commons', name: 'commons-text', version: '1.9'
compile group: 'info.picocli', name: 'picocli', version: '4.5.1'
compile group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.30'
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.30'
compile group: 'io.confluent', name: 'kafka-avro-serializer', version: '6.0.0'
compile group: 'io.confluent', name: 'kafka-protobuf-serializer', version: '6.0.0'
compile group: 'io.confluent', name: 'kafka-json-schema-serializer', version: '6.0.0'
testCompile group: 'org.apache.kafka', name: 'kafka-streams', version: '2.6.0', classifier: 'test'
compile group: 'org.apache.kafka', name: 'kafka-clients', version: '2.6.0'
testCompile group: 'org.apache.kafka', name: 'kafka-clients', version: '2.6.0'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.10.3'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.10.3'
compile group: 'com.fasterxml.jackson.dataformat', name: 'jackson-dataformat-yaml', version: '2.10.3'
intTestImplementation "org.testcontainers:testcontainers:1.15.0"
intTestImplementation "org.testcontainers:kafka:1.15.0"
intTestImplementation group: 'junit', name: 'junit', version: '4.12'
}