-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
82 lines (65 loc) · 1.64 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
plugins {
id 'com.commercehub.gradle.plugin.avro' version '0.99.99'
id 'java'
id 'java-library'
id 'maven'
}
repositories {
mavenCentral()
maven {
url = uri('http://packages.confluent.io/maven/')
}
}
dependencies {
implementation 'org.apache.kafka:kafka_2.12:2.7.0'
implementation 'io.confluent:kafka-avro-serializer:5.5.0'
implementation 'org.apache.avro:avro:1.10.2'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.1'
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.7.1'
compileOnly 'org.projectlombok:lombok:1.18.18'
annotationProcessor 'org.projectlombok:lombok:1.18.16'
}
group = 'io.github.kattlo'
version = '0.13.0'
description = 'Piemok'
java.sourceCompatibility = JavaVersion.VERSION_11
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
test {
useJUnitPlatform()
}
avro {
fieldVisibility = "PRIVATE"
stringType = "CharSequence"
}
sourceSets.main.java.srcDirs += 'build/generated-main-avro-java'
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
install {
repositories.mavenInstaller {
pom.project {
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo'
}
}
}
}
}
wrapper {
gradleVersion = "6.1.1"
distributionType = Wrapper.DistributionType.ALL
}