-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
65 lines (56 loc) · 1.63 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
plugins {
id 'java'
id 'maven-publish'
}
repositories {
mavenCentral()
maven {
url = uri('https://packages.confluent.io/maven')
}
}
dependencies {
implementation libs.org.apache.logging.log4j.log4j.api
implementation libs.org.apache.logging.log4j.log4j.core
implementation libs.org.apache.kafka.kafka.clients
implementation libs.io.confluent.kafka.json.serializer
implementation libs.com.fasterxml.jackson.core.jackson.annotations
implementation libs.org.apache.logging.log4j.log4j.slf4j.impl
}
ext {
appendix = 'all'
}
group = 'com.lightstreamer.examples'
version = '1.0.0'
java.sourceCompatibility = JavaVersion.VERSION_1_8
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
tasks.withType(Javadoc) {
options.encoding = 'UTF-8'
}
jar {
manifest {
attributes 'Main-Class': "com.lightstreamer.examples.kafkademo.producer.DemoPublisher"
}
archiveAppendix = appendix
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/lightstreamer/Lightstreamer-kafka-connector")
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("USERNAME")
password = project.findProperty("gpr.key") ?: System.getenv("TOKEN")
}
}
}
publications {
gpr(MavenPublication) {
artifactId project.name + '-' + appendix
artifact jar
}
}
}