-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
55 lines (46 loc) · 1.33 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
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.3.50'
id 'java-library'
}
version '0.1-SNAPSHOT'
repositories {
mavenCentral()
jcenter()
maven { url = 'https://packages.confluent.io/maven/' }
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
dependencies {
implementation platform("com.amazonaws:aws-java-sdk-bom:$awssdk_version")
implementation platform('org.jetbrains.kotlin:kotlin-bom')
api project(':kafka-connect-dynamodb-sink-api')
testImplementation 'org.jetbrains.kotlin:kotlin-test'
testImplementation 'org.jetbrains.kotlin:kotlin-test-junit'
}
jar {
manifest {
attributes(
'Name': project.name,
'Specification-Version': kafka_connect_version,
'Implementation-Title': 'Kafka Connect - DynamoDB Sink Implementation',
'Implementation-Version': project.version,
'Implementation-Vendor': 'Provectus'
)
}
}
task copyDependencies(type: Copy) {
from configurations.default
into 'build/libs'
}
task createZipArtifact(type: Zip) {
from 'build/libs/'
include '*'
archiveName "${project.name}-${project.version}.zip"
destinationDir(file('/build'))
dependsOn 'copyDependencies'
}
build.finalizedBy 'createZipArtifact'