-
Notifications
You must be signed in to change notification settings - Fork 56
/
build.gradle
37 lines (30 loc) · 910 Bytes
/
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
ext.moduleName = 'elastic.shaded'
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
configurations {
shadow {
canBeConsumed = true
canBeResolved = false
transitive = false
}
}
dependencies {
implementation libs.elasticsearch_rest_high_level_client
implementation libs.elasticsearch_rest_client
implementation libs.elasticsearch
implementation libs.elasticsearch_core
//implementation libs.httpcore__elastic
//implementation libs.http_client__elastic
}
tasks.register('elasticShadowJar', ShadowJar) {
archiveClassifier = 'all'
configurations = [project.configurations.runtimeClasspath]
zip64 true
relocate 'org.apache.lucene', 'shadow.org.apache.lucene'
mergeServiceFiles()
}
artifacts {
shadow(elasticShadowJar.archiveFile) {
builtBy(elasticShadowJar)
}
}
tasks.build.dependsOn elasticShadowJar