-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle
109 lines (91 loc) · 2.73 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
plugins {
id 'com.adarshr.test-logger' version '4.0.0'
id 'com.avast.gradle.docker-compose' version '0.17.11'
id 'com.github.ben-manes.versions' version '0.51.0'
id 'com.gorylenko.gradle-git-properties' version '2.4.2'
id 'eclipse-wtp'
id 'idea'
id 'io.freefair.lombok' version '8.11'
id 'io.spring.dependency-management' version '1.1.6'
id 'jacoco'
id 'java'
id 'org.ec4j.editorconfig' version '0.1.0'
id 'org.sonarqube' version '5.1.0.4882'
id 'org.springframework.boot' version '2.2.13.RELEASE'
}
group = 'de.codefor.le'
version = '2.4.0'
defaultTasks 'build'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(11)
}
}
springBoot {
mainClassName = 'de.codefor.le.LvzViz'
buildInfo()
}
bootJar {
launchScript()
}
configurations.implementation {
exclude group: "org.hamcrest"
}
repositories {
mavenCentral()
}
dependencies {
def seleniumVersion = '4.27.0'
implementation "io.github.bonigarcia:webdrivermanager:5.9.2",
"com.google.guava:guava:33.3.1-jre",
"org.jsoup:jsoup:1.18.1",
"org.seleniumhq.selenium:selenium-api:$seleniumVersion",
"org.seleniumhq.selenium:selenium-chrome-driver:$seleniumVersion",
"org.seleniumhq.selenium:selenium-remote-driver:$seleniumVersion",
implementation("edu.stanford.nlp:stanford-corenlp:3.9.2") {
// because https://app.snyk.io/vuln/SNYK-JAVA-COMGOOGLEPROTOBUF-173761
exclude group: "com.google.protobuf", module: "protobuf-java"
// because https://app.snyk.io/vuln/SNYK-JAVA-XALAN-31385
exclude group: "xalan", module: "xalan"
// because https://app.snyk.io/vuln/SNYK-JAVA-XERCES-31585
exclude group: "xerces", module: "xercesImpl"
}
implementation "org.springframework.boot:spring-boot-starter-web",
"org.springframework.boot:spring-boot-starter-logging",
"org.springframework.boot:spring-boot-starter-data-elasticsearch",
"org.springframework.boot:spring-boot-starter-actuator"
testImplementation("org.springframework.boot:spring-boot-starter-test") {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
}
dockerCompose {
captureContainersOutput = false
}
editorconfig {
includes = ['src/**', '*']
excludes = ['**/images', '**/vendor', '*.gz', '*.log']
}
check.dependsOn editorconfigCheck
generateGitProperties {
// see https://github.com/n0mer/gradle-git-properties/issues/35
onlyIf {
!source.isEmpty()
}
}
jacocoTestReport {
reports {
xml.required = true
html.required = false
}
}
check.dependsOn jacocoTestReport
test {
testLogging {
exceptionFormat = 'full'
}
maxHeapSize = "2048m"
useJUnitPlatform()
}
testlogger {
showStandardStreams false
}