-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
102 lines (90 loc) · 2.67 KB
/
Copy pathbuild.gradle
File metadata and controls
102 lines (90 loc) · 2.67 KB
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
plugins {
id 'java'
id 'org.springframework.boot' version '3.0.6'
id 'io.spring.dependency-management' version '1.1.0'
id 'org.hibernate.orm' version '6.1.7.Final'
id 'org.graalvm.buildtools.native' version '0.9.20'
id 'com.diffplug.spotless' version '6.18.0'
id 'com.github.spotbugs' version '5.0.14'
id 'checkstyle'
id 'org.owasp.dependencycheck' version "8.2.1"
}
group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '17'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.flywaydb:flyway-core'
compileOnly 'org.projectlombok:lombok'
runtimeOnly 'org.postgresql:postgresql'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
implementation 'org.mapstruct:mapstruct:1.5.5.Final'
implementation 'org.projectlombok:lombok-mapstruct-binding:0.2.0'
annotationProcessor 'org.mapstruct:mapstruct-processor:1.5.5.Final'
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.1.0'
}
tasks.named('test') {
useJUnitPlatform()
}
hibernate {
enhancement {
lazyInitialization true
dirtyTracking true
associationManagement true
}
}
spotless {
java {
target fileTree('.') {
include '**/*.java'
exclude '**/build/**', '**/build-*/**'
}
toggleOffOn()
palantirJavaFormat()
encoding("UTF-8")
removeUnusedImports()
trimTrailingWhitespace()
endWithNewline()
}
format 'misc', {
target '**/*.gradle', '**/*.xml', '**/.gitignore', '**/.properties', '**/*.yml', '**/*.sql'
targetExclude ".gradle/**", ".idea/**", "*/build/**"
encoding("UTF-8")
trimTrailingWhitespace()
endWithNewline()
}
}
checkstyle {
toolVersion = '9.3'
ignoreFailures = false
configFile = rootProject.file('config/checkstyle/checkstyle.xml')
configDirectory = rootProject.file("config/checkstyle")
sourceSets = [sourceSets.main]
}
spotbugs {
toolVersion = '4.7.3'
excludeFilter = rootProject.file('config/spotbugs/findbugs-exclude.xml')
ignoreFailures = false
spotbugsMain.enabled = true
spotbugsTest.enabled = false
}
spotbugsMain {
reports {
xml.enabled = false
html.enabled = true
}
}
dependencyCheck {
failOnError = false
}