-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
65 lines (50 loc) · 2.1 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
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
version = '0.1'
project.buildDir = 'target'
jar {
baseName = 'solace_kafka_source'
version = version
manifest {
attributes 'Implementation-Title': 'Solace Kafka Source',
'Implementation-Version': version
}
destinationDir = file("target")
}
task copyDepJars(type: Copy) {
from configurations.compile
into 'target/deplib'
// We shouldn't include the Kafka Connect libraries
exclude 'kafka-clients*'
exclude 'connect-api*'
}
assemble.dependsOn copyDepJars
repositories {
mavenCentral()
}
tasks.withType(Test) {
systemProperties['CONFLUENCE_HOME'] = System.getProperty('CONFLUENCE_HOME', '/Users/michussey/Downloads/confluent-3.2.2')
}
dependencies {
// https://mvnrepository.com/artifact/org.apache.kafka/connect-api
compile group: 'org.apache.kafka', name: 'connect-api', version: '0.11.0.0'
// https://mvnrepository.com/artifact/org.apache.kafka/kafka-clients
compile group: 'org.apache.kafka', name: 'kafka-clients', version: '0.11.0.0'
// https://mvnrepository.com/artifact/org.slf4j/slf4j-api
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
// https://mvnrepository.com/artifact/commons-logging/commons-logging
compile group: 'commons-logging', name: 'commons-logging', version: '1.1.3'
// https://mvnrepository.com/artifact/commons-lang/commons-lang
compile group: 'commons-lang', name: 'commons-lang', version: '2.6'
// https://mvnrepository.com/artifact/junit/junit
testCompile group: 'junit', name: 'junit', version: '4.13.1+'
// https://mvnrepository.com/artifact/org.apache.kafka/connect-json
testCompile group: 'org.apache.kafka', name: 'connect-json', version: '0.11.0.0'
// https://mvnrepository.com/artifact/org.apache.kafka/runtime
testCompile group: 'org.apache.kafka', name: 'connect-runtime', version: '0.11.0.0'
// https://mvnrepository.com/artifact/com.google.code.gson/gson
testCompile group: 'com.google.code.gson', name: 'gson', version: '2.8.2'
// Solace Messaging API for Java Dependencies
compile("com.solacesystems:sol-jcsmp:10.+")
}