-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathbuild.gradle
More file actions
47 lines (39 loc) · 1.12 KB
/
build.gradle
File metadata and controls
47 lines (39 loc) · 1.12 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
plugins {
id 'application'
id 'java'
}
repositories {
mavenCentral()
}
sourceSets {
main {
java {
srcDirs = ['src/main/java']
}
}
}
def appmapJar = "$System.env.AGENT_JAR"
def annotationJar = "$System.env.ANNOTATION_JAR"
if (!appmapJar || !annotationJar) {
throw new GradleException("missing jars\n appmapJar: ${appmapJar}\n annotationJar: ${annotationJar}");
}
dependencies {
//implementation 'org.apache.httpcomponents:httpclient:4.5.14'
implementation 'org.apache.httpcomponents:fluent-hc:4.5.14'
implementation files(appmapJar)
implementation files(annotationJar)
}
application {
if (properties.containsKey("mainClass")) {
mainClass = project.hasProperty("mainClass") ? project.getProperty("mainClass") : "NULL"
} else {
mainClassName = project.hasProperty("mainClass") ? project.getProperty("mainClass") : "NULL"
}
applicationDefaultJvmArgs = [
System.env.JAVA_OUTPUT_OPTIONS,
"-javaagent:${appmapJar}",
"-Djava.util.logging.config.file=${System.env.JUL_CONFIG}",
//"-Dappmap.debug=true",
//"-Dappmap.debug.file=../../build/log/httpclient-appmap.log"
]
}