This repository has been archived by the owner on Feb 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
103 lines (85 loc) · 3.25 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
buildscript {
ext {
springBootVersion = '2.5.6'
}
ext['log4j2.version'] = '2.17.0'
repositories {
mavenCentral()
}
dependencies {
classpath "org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}"
}
}
apply plugin: 'java-library'
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'idea'
apply plugin: 'jacoco'
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
repositories {
mavenCentral()
maven {
url 'https://github.com/stil4m/maven-repository/raw/master/releases/'
}
}
configurations {
// We're using HikariCP instead
implementation.exclude module: "tomcat-jdbc"
// We're using Log4j2 instead
implementation.exclude module: "spring-boot-starter-logging"
}
dependencies {
implementation 'org.springframework.boot:spring-boot-devtools'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-log4j2'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-mail'
implementation 'org.springframework.boot:spring-boot-configuration-processor'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springframework.boot:spring-boot-starter-oauth2-client'
runtimeOnly 'org.springframework.boot:spring-boot-properties-migrator'
implementation 'org.flywaydb:flyway-core:5.2.0'
implementation 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
implementation "org.hibernate.validator:hibernate-validator"
implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310"
implementation'com.jayway.jsonpath:json-path:2.4.0'
implementation"com.zaxxer:HikariCP"
implementation"org.webjars:bootstrap:3.3.7-1"
implementation"org.webjars:font-awesome:4.7.0"
implementation"org.webjars.bower:wisvch-bootstrap-theme:0.0.3"
implementation"net.objecthunter:exp4j:0.4.8"
implementation"org.apache.httpcomponents:httpclient"
implementation"org.thymeleaf:thymeleaf-spring5"
implementation"org.thymeleaf:thymeleaf"
implementation"org.thymeleaf.extras:thymeleaf-extras-springsecurity5"
implementation "be.woutschoovaerts:mollie:3.6.1"
implementation 'org.springframework.boot:spring-boot-configuration-processor'
runtimeOnly 'org.postgresql:postgresql'
runtimeOnly "org.hsqldb:hsqldb"
testImplementation 'io.rest-assured:rest-assured'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.security:spring-security-test'
testImplementation 'org.junit.vintage:junit-vintage-engine'
}
jacocoTestReport {
reports {
xml.enabled true
html.enabled false
}
}
task jacocoFix(type: Copy) {
from 'build/reports/jacoco/test/jacocoTestReport.xml'
into './src/main/java/'
rename { String fileName ->
fileName.replace("jacocoTestReport.xml", "jacoco.xml")
}
}
check.dependsOn jacocoTestReport