forked from gavinmcnair/kafka-connect-s3
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
98 lines (76 loc) · 2.04 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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:5.2.0'
classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.22.0"
}
}
plugins {
id 'com.palantir.git-version' version '0.12.3'
}
apply plugin: 'java'
apply plugin: 'io.codearte.nexus-staging'
description = "kafka-connect-s3"
allprojects {
apply plugin: 'idea'
apply plugin: 'java-library'
group = 'com.spredfast.kafka.connect.s3'
version = '1.0'
apply plugin: 'java'
sourceCompatibility = 11
targetCompatibility = 11
repositories {
mavenCentral()
}
}
apply plugin: "com.github.johnrengelman.shadow"
shadowJar {
dependencies {
// provided in the connect classpath
exclude(dependency('org.apache.kafka:connect-api:2.4.1'))
exclude(dependency('org.apache.kafka:kafka-clients:2.4.1'))
exclude(dependency('net.jpountz.lz4:.*:.*'))
exclude(dependency('org.xerial.snappy:.*:.*'))
exclude(dependency('org.slf4j:.*:.*'))
}
//// for things we directly depend on, repackage so we don't conflict with other connectors
relocate 'com.amazonaws', 'com.spredfast.shade.amazonaws'
relocate 'com.fasterxml', 'com.spredfast.shade.fasterxml'
relocate 'org.apache.commons', 'com.spredfast.shade.apache.commons'
relocate 'org.apache.http', 'com.spredfast.shade.apache.http'
relocate 'org.joda', 'com.spredfast.shade.joda'
}
dependencies {
implementation project(':sink')
implementation project(':source')
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from subprojects*.tasks.javadoc.destinationDir
}
task sourcesJar(type: Jar) {
from subprojects*.sourceSets.main.allSource
classifier = 'sources'
}
jar {
from subprojects*.sourceSets.main.output
}
artifacts {
archives javadocJar, sourcesJar
}
ext {
pomHumanName = 'Kafka Connect S3'
pomDesc = 'S3 Source and Sink Connectors for Kafka Connect'
}
test {
testLogging {
events "passed", "skipped", "failed"
showExceptions true
exceptionFormat "full"
showCauses true
showStackTraces true
showStandardStreams = false
}
}