-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
100 lines (82 loc) · 2.55 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
buildscript {
ext {
springBootVersion = '2.1.0.RELEASE'
}
repositories {
jcenter()
mavenCentral()
maven {
url 'https://plugins.gradle.org/m2/'
}
}
dependencies {
classpath "org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}"
classpath "com.github.ben-manes:gradle-versions-plugin:0.20.0"
classpath "gradle.plugin.com.github.spotbugs:spotbugs-gradle-plugin:1.6.5"
}
}
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'java'
apply plugin: 'checkstyle'
apply plugin: 'com.github.spotbugs'
apply plugin: 'com.github.ben-manes.versions'
checkstyle {
toolVersion "7.6.1"
configFile rootProject.file("config/checkstyle/checkstyle.xml")
}
checkstyleMain {
source ='src/main/java'
}
checkstyleTest {
source ='src/test/java'
}
spotbugs {
ignoreFailures = false
toolVersion = "3.1.6"
sourceSets = [sourceSets.main]
excludeFilter = file("config/spotbugs/excludeFilter.xml")
reportsDir = file("$project.buildDir/reports/spotbugs")
effort = "max"
}
tasks.withType(com.github.spotbugs.SpotBugsTask) {
reports {
xml.enabled false
html.enabled true
}
}
repositories {
mavenCentral()
maven {
url 'https://artifacts.elastic.co/maven'
}
}
configurations {
testRuntime.exclude group: 'org.apache.logging.log4j', module: 'log4j-to-slf4j'
}
dependencies {
runtimeOnly 'javax.xml.bind:jaxb-api'
compile 'org.projectlombok:lombok:1.18.4'
annotationProcessor 'org.projectlombok:lombok:1.18.4'
compile 'org.springframework.boot:spring-boot-starter-web'
compile 'org.springframework.boot:spring-boot-starter-actuator'
compile 'org.springframework.boot:spring-boot-starter-data-jpa'
compile 'org.axonframework:axon-spring-boot-starter:4.0.2', {
exclude group:'org.axonframework', module: 'axon-server-connector'
}
compile 'dom4j:dom4j:1.6.1'
compile 'com.google.code.gson:gson:2.8.5'
compile 'org.springframework.boot:spring-boot-starter-jdbc'
compile 'org.flywaydb:flyway-core:5.2.1'
runtime 'org.postgresql:postgresql:42.2.5'
compile 'org.elasticsearch:elasticsearch:6.4.2'
compile 'org.elasticsearch.client:transport:6.4.2'
compile 'org.elasticsearch.plugin:transport-netty4-client:6.4.2'
runtime 'org.apache.logging.log4j:log4j-to-slf4j:2.11.1'
compile 'org.apache.commons:commons-lang3:3.8.1'
testCompile 'org.springframework.boot:spring-boot-starter-test'
testCompile 'org.axonframework:axon-test:4.0.2'
testCompile "org.projectlombok:lombok:1.18.4"
testRuntime 'org.apache.logging.log4j:log4j-api:2.11.1'
testRuntime 'org.apache.logging.log4j:log4j-core:2.11.1'
}