-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
71 lines (60 loc) · 1.81 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
plugins {
id 'java-library'
}
group = 'org.swimos'
description = 'Swim Kafka Connector'
version = property('application.version')
ext.swimVersion = project.property('swim.version')
sourceCompatibility = 11
targetCompatibility = 11
dependencies {
api group: 'org.swimos', name: 'swim-api', version: swimVersion
api group: 'org.swimos', name: 'swim-server', version: swimVersion
api group: 'org.swimos', name: 'swim-client', version: swimVersion
implementation group: 'org.apache.kafka', name: 'kafka-clients', version: '2.5.0'
implementation group: 'org.apache.kafka', name: 'connect-api', version: '3.2.0'
testImplementation 'org.testng:testng:7.4.0'
}
repositories {
mavenCentral()
}
compileJava {
options.compilerArgs += ['-Xlint:all']
options.encoding = 'UTF-8'
}
test {
useTestNG()
scanForTestClasses = false
include '**/*Spec.class'
maxHeapSize = '1024m'
testLogging {
events 'passed', 'skipped', 'failed', 'standardOut', 'standardError'
exceptionFormat 'full'
displayGranularity = 4
}
outputs.upToDateWhen { false }
}
task copyPackage(type: Copy) {
from "package"
into "${buildDir}/swim-kafka-connect/swim-kafka-connect"
}
task copyLicense(type: Copy) {
from "."
include "LICENSE"
into "${buildDir}/swim-kafka-connect/swim-kafka-connect/doc"
}
task copyLibs(type: Copy) {
from project.tasks.jar.outputs
from configurations.runtimeClasspath
include "swim*.jar"
into "${buildDir}/swim-kafka-connect/swim-kafka-connect/lib"
}
task createKafkaConnectPackage(type: Zip) {
mkdir "${buildDir}/swim-kafka-connect/swim-kafka-connect"
dependsOn copyPackage
dependsOn copyLicense
dependsOn copyLibs
archiveFileName = "swim-kafka-connect.zip"
destinationDirectory = layout.buildDirectory.dir("${buildDir}")
from layout.buildDirectory.dir("${buildDir}/swim-kafka-connect")
}