-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
43 lines (37 loc) · 1.09 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
group 'at.jit'
version '1.0'
apply plugin: 'java'
apply plugin: 'application'
sourceCompatibility = 1.8
mainClassName = 'at.jit.logging.LogMe'
repositories {
mavenCentral()
}
buildscript {
ext {
logbackVersion = '1.2.3';
}
}
dependencies {
compile "org.slf4j:slf4j-api:1.7.25",
"ch.qos.logback:logback-core:${logbackVersion}",
"ch.qos.logback:logback-classic:${logbackVersion}",
"ch.qos.logback:logback-access:${logbackVersion}",
"com.fasterxml.jackson.core:jackson-core:2.9.7",
//'biz.paluch.logging:logstash-gelf:1.12.1',
'de.siegmar:logback-gelf:1.1.0',
"net.logstash.logback:logstash-logback-encoder:5.2",
'org.komamitsu:fluency:1.8.1'
}
// Build a fat JAR and automatically run the main class in LogMe
jar {
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
manifest {
attributes(
'Class-Path': configurations.compile.collect { it.getName() }.join(' '),
'Main-Class': mainClassName
)
}
}