-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
56 lines (44 loc) · 1.3 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
import java.util.zip.GZIPInputStream
plugins { // https://imperceptiblethoughts.com/shadow/getting-started/#default-java-groovy-tasks
id 'com.github.johnrengelman.shadow' version '5.0.0'
id 'java'
}
group 'com.schibsted'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
implementation group: 'org.apache.kafka', name: 'connect-api', version: '2.3.0'
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.10.0'
implementation group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.7'
testImplementation group: 'junit', name: 'junit', version: '4.12'
}
task buildZip(type: Zip) {
into('kafka-connector-amplitude') {
from compileJava
from processResources
into('lib') {
from configurations.runtimeClasspath
}
into('lib') {
from file(jar.archiveFile)
}
}
}
task buildTgz(type: Tar) {
compression = Compression.GZIP
into('kafka-connector-amplitude') {
from compileJava
from processResources
into('lib') {
from configurations.runtimeClasspath
}
into('lib') {
from file(jar.archiveFile)
}
}
}
buildZip.dependsOn jar
buildTgz.dependsOn jar