-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathbuild.gradle
More file actions
42 lines (36 loc) · 770 Bytes
/
build.gradle
File metadata and controls
42 lines (36 loc) · 770 Bytes
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
plugins {
id "war"
id "org.gretty" version "3.0.5"
id "com.github.johnrengelman.shadow" version "7.1.2"
id "java"
}
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
repositories {
mavenCentral()
}
dependencies {
implementation 'org.apache.logging.log4j:log4j-core:2.14.1'
if (project.gradle.startParameter.taskNames.first().contains("shadow")) {
implementation 'org.apache.tomcat.embed:tomcat-embed-jasper:8.5.75'
}
}
gretty {
contextPath = 'app'
servletContainer = 'tomcat85'
}
sourceSets {
main {
java {
srcDir 'src'
if (!project.gradle.startParameter.taskNames.first().contains("shadow")) {
exclude '**/launch/**'
}
}
}
}
jar {
manifest {
attributes('Main-Class': 'launch.Main')
}
}