forked from kbialek/flink-consul
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
55 lines (42 loc) · 1.37 KB
/
Copy pathbuild.gradle
File metadata and controls
55 lines (42 loc) · 1.37 KB
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
import com.github.jengelman.gradle.plugins.shadow.tasks.ConfigureShadowRelocation
plugins {
id "com.github.johnrengelman.shadow" version "7.1.2"
}
group 'com.espro.flink'
version '1.11.1-sw'
apply plugin: 'java'
def flinkVersion = "1.19.1"
repositories {
//mavenLocal()
mavenCentral()
}
configurations {
shadow {
transitive = true
}
}
dependencies {
implementation 'com.ecwid.consul:consul-api:1.4.5'
implementation 'org.apache.httpcomponents:httpclient:4.5.14'
implementation 'io.github.hakky54:sslcontext-kickstart-for-apache4:7.4.11'
implementation "org.apache.flink:flink-runtime:$flinkVersion"
testImplementation "junit:junit:4.12"
testImplementation "org.mockito:mockito-core:5.13.0"
testImplementation 'com.pszymczyk.consul:embedded-consul:2.2.1'
testImplementation 'org.awaitility:awaitility:4.0.3'
testImplementation "org.apache.flink:flink-test-utils:$flinkVersion"
shadow 'com.ecwid.consul:consul-api:1.4.5'
shadow 'io.github.hakky54:sslcontext-kickstart-for-apache4:7.4.11'
}
shadowJar {
configurations = [project.configurations.shadow]
classifier = ''
dependencies {
exclude(dependency('org.slf4j:slf4j-api'))
}
}
task relocateShadowJar(type: ConfigureShadowRelocation) {
target = tasks.shadowJar
prefix = "shadow.consul"
}
tasks.shadowJar.dependsOn tasks.relocateShadowJar