-
Notifications
You must be signed in to change notification settings - Fork 60
/
build.gradle
90 lines (79 loc) · 2.92 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
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'com.github.johnrengelman.shadow'
group = 'at.grahsl.kafka.connect'
version = '1.4.0'
description = """kafka-connect-mongodb"""
sourceCompatibility = 1.8
targetCompatibility = 1.8
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.3'
}
}
processResources {
expand(project.properties)
}
def skipIntegrationTest = 'true'
test {
if (skipIntegrationTest.toBoolean()) {
exclude '**/*IT.class'
}
}
task copyJarToTarget(type: Copy, dependsOn:[jar, shadowJar]) {
description 'Copies jar files to target directory'
copy {
from 'build/libs'
into 'target'
include '**/*.jar'
}
}
repositories {
maven { url "http://packages.confluent.io/maven/" }
maven { url "http://repo.maven.apache.org/maven2" }
}
ext {
kafkaVersion='2.4.0'
mongodbDriverVersion='3.12.0'
logbackVersion='1.2.3'
jacksonVersion='2.10.1'
confluentSerializerVersion='5.3.2'
confluentConnectPluginVersion='0.11.2'
junitJupiterVersion='5.5.2'
junitPlatformVersion='1.5.2'
hamcrestVersion='2.0.0.0'
mockitoVersion='3.2.4'
testcontainersVersion='1.12.3'
avroVersion='1.9.1'
okHttpVersion='3.14.4'
yamlBeansVersion='1.13'
}
dependencies {
compile "org.apache.kafka:connect-api:${kafkaVersion}"
compile "org.mongodb:mongodb-driver:${mongodbDriverVersion}"
compile "ch.qos.logback:logback-classic:${logbackVersion}"
testCompile "com.github.jcustenborder.kafka.connect:connect-utils:[0.2.31,0.2.1000)"
compile "com.fasterxml.jackson.core:jackson-core:${jacksonVersion}"
compile "com.fasterxml.jackson.core:jackson-databind:${jacksonVersion}"
compile "io.confluent:kafka-avro-serializer:${confluentSerializerVersion}"
compile "io.confluent:kafka-connect-maven-plugin:${confluentConnectPluginVersion}"
testCompile "org.junit.jupiter:junit-jupiter-engine:${junitJupiterVersion}"
testCompile "org.junit.jupiter:junit-jupiter-params:${junitJupiterVersion}"
testCompile "org.junit.vintage:junit-vintage-engine:${junitJupiterVersion}"
testCompile "org.junit.platform:junit-platform-runner:${junitPlatformVersion}"
testCompile "org.junit.platform:junit-platform-console:${junitPlatformVersion}"
testCompile "org.hamcrest:hamcrest-junit:${hamcrestVersion}"
testCompile "org.mockito:mockito-core:${mockitoVersion}"
testCompile "org.testcontainers:testcontainers:${testcontainersVersion}"
testCompile "org.apache.avro:avro:${avroVersion}"
testCompile "org.apache.avro:avro-maven-plugin:${avroVersion}"
testCompile "com.squareup.okhttp3:okhttp:${okHttpVersion}"
testCompile "com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:${jacksonVersion}"
testCompile "com.esotericsoftware.yamlbeans:yamlbeans:${yamlBeansVersion}"
}