-
Notifications
You must be signed in to change notification settings - Fork 25
/
build.gradle
42 lines (36 loc) · 1.14 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
group 'net.xeraa'
version '1.0'
apply plugin: 'java'
apply plugin: 'application'
sourceCompatibility = 1.8
mainClassName = 'net.xeraa.logging.LogMe'
repositories {
mavenCentral()
}
buildscript {
ext {
logbackVersion = '1.5.12';
}
}
dependencies {
implementation "org.slf4j:slf4j-api:2.0.16",
"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.18.1",
"net.logstash.logback:logstash-logback-encoder:8.0",
"co.elastic.logging:logback-ecs-encoder:1.6.0"
}
// Build a fat JAR and automatically run the main class in LogMe
jar {
duplicatesStrategy = DuplicatesStrategy.INCLUDE
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
manifest {
attributes(
'Class-Path': configurations.runtimeClasspath.collect { it.getName() }.join(' '),
'Main-Class': mainClassName
)
}
}