-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
55 lines (50 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
group 'com.barretta.elastic'
version '1.0'
apply plugin: 'groovy'
apply plugin: 'application'
loadProperties()
repositories {
mavenCentral()
mavenLocal()
maven { url 'https://jitpack.io' }
}
dependencies {
compile(
'org.codehaus.groovy:groovy-all:2.5.7',
'org.codehaus.gpars:gpars:1.2.1',
'ch.qos.logback:logback-classic:1.2.3',
'org.apache.logging.log4j:log4j-to-slf4j:2.11.2',
'co.elastic.logging:logback-ecs-encoder:0.1.4-SNAPSHOT',
'com.github.mbarretta:es-client:0648229',
'org.elasticsearch.client:elasticsearch-rest-high-level-client:7.5.0'
)
testCompile('org.spockframework:spock-core:1.3-RC1-groovy-2.5') {
exclude group: 'org.codehaus.groovy', module: 'groovy-all'
}
runtimeOnly 'co.elastic.apm:elastic-apm-agent:1.12.0'
}
task sourcesJar(type: Jar) {
from sourceSets.main.allSource
classifier = 'sources'
}
tasks.withType(GroovyCompile) {
groovyOptions.optimizationOptions.indy = true
}
application {
mainClassName = 'com.barretta.elastic.opensky.Manager'
applicationDefaultJvmArgs = [
"-Xms4g", "-Xmx4g", "-XX:+UseG1GC",
"-javaagent:lib/elastic-apm-agent-1.12.0.jar",
"-Delastic.apm.service_name=adsb_demo",
"-Delastic.apm.application_pacakges=com.barretta.elastic",
"-Delastic.apm.server_urls=${config.apm.url}",
"-Delastic.apm.secret_token=${config.apm.token}",
"-Dlogback.configurationFile=logback.groovy"
]
}
artifacts {
archives sourcesJar
}
def loadProperties() {
project.ext.config = new ConfigSlurper().parse(file('src/dist/properties.groovy').toURI().toURL())
}