-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle
58 lines (49 loc) · 1.73 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
group 'net.mongey.kafka.connect.slack'
version '0.1-SNAPSHOT'
if (hasProperty('buildScan')) {
buildScan {
termsOfServiceUrl = 'https://gradle.com/terms-of-service'
termsOfServiceAgree = 'yes'
}
}
buildscript {
ext.kotlin_version = '1.3.70'
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
apply plugin: 'kotlin'
repositories {
mavenCentral()
maven {
url "http://packages.confluent.io/maven/"
}
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
testCompile 'junit:junit:4.12'
compile group: 'org.apache.kafka', name: 'connect-api', version: '2.1.0'
compile group: 'org.apache.kafka', name: 'connect-json', version: '2.1.0'
compile group: 'com.ullink.slack', name: 'simpleslackapi', version: '1.0.0'
compile group: 'org.apache.commons', name: 'commons-text', version: '1.6'
compile group: 'com.github.wnameless', name: 'json-flattener', version: '0.6.0'
compile group: 'javax.websocket', name: 'javax.websocket-client-api', version: '1.1'
compile group: 'org.glassfish.tyrus.bundles', name: 'tyrus-standalone-client', version:'1.12'
compile group: 'org.glassfish.tyrus', name: 'tyrus-container-grizzly-client', version:'1.12'
}
compileKotlin {
kotlinOptions.jvmTarget = "1.6"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.6"
}
jar {
// This line of code recursively collects and copies all of a project's files
// and adds them to the JAR itself. One can extend this task, to skip certain
// files or particular types at will
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
}