-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
91 lines (78 loc) · 2.65 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
plugins {
id 'java'
id 'idea'
id 'checkstyle'
id 'com.github.spotbugs' version '5.0.9'
id "io.freefair.lombok" version "6.6-rc1"
id "com.github.johnrengelman.shadow" version "7.1.2"
id "io.spring.dependency-management" version "1.1.0"
id 'org.springframework.boot' version '2.7.6'
id 'project-report'
}
idea {
project {
languageLevel = 11
}
module {
downloadJavadoc = true
downloadSources = true
}
}
def mongockVersion = "4.3.8"
def springBootVersion = "2.7.6"
def resilience4jVersion = "1.7.1"
allprojects {
group "org.kivilev"
repositories {
mavenLocal()
mavenCentral()
}
apply plugin: "io.spring.dependency-management"
dependencyManagement {
dependencies {
imports {
mavenBom "org.springframework.boot:spring-boot-dependencies:$springBootVersion"
}
dependency 'org.springframework:spring-context:5.3.24'
dependency 'org.junit.jupiter:junit-jupiter-api:5.9.0'
dependency 'org.junit.jupiter:junit-jupiter-engine:5.9.0'
dependency 'com.opencsv:opencsv:5.7.1'
dependency 'org.mockito:mockito-junit-jupiter:4.9.0'
dependency 'org.springframework.shell:spring-shell-starter:2.1.4'
dependency 'com.h2database:h2:2.1.214'
dependency 'org.apache.commons:commons-lang3:3.12.0'
dependency 'de.flapdoodle.embed:de.flapdoodle.embed.mongo:3.4.11'
dependency "com.github.cloudyrock.mongock:mongock-spring-v5:$mongockVersion"
dependency "com.github.cloudyrock.mongock:mongodb-springdata-v3-driver:$mongockVersion"
dependency "org.webjars:jquery:3.5.1"
dependency 'io.projectreactor:reactor-test:3.5.5'
dependency 'com.google.guava:guava:31.1-jre'
dependency "io.github.resilience4j:resilience4j-spring-boot2:$resilience4jVersion"
}
}
apply plugin: 'checkstyle'
checkstyle {
toolVersion '10.3.4'
configFile file("$project.rootDir/checkstyle.xml")
ignoreFailures = false
maxWarnings = 0
maxErrors = 0
}
apply plugin: 'com.github.spotbugs'
spotbugs {
showProgress = false
effort = 'max'
reportLevel = 'low'
excludeFilter = file("$project.rootDir/spotbugs-exclude.xml")
}
apply plugin: 'project-report'
}
compileJava.options.encoding = 'UTF-8'
tasks.withType(JavaCompile).configureEach {
options.with {
encoding = 'UTF-8'
}
}
bootJar {
enabled = false
}