-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
174 lines (132 loc) · 3.59 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
import org.gradle.plugins.ide.eclipse.model.SourceFolder
allprojects {
}
subprojects {
apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'eclipse'
project.ext {
slf4jVersion = '1.7.30'
log4jVersion = '2.14.1'
jacksonVersion = '2.12.3'
springfoxVersion = '3.0.0'
springBootVersion = '2.5.0'
springFrameworkVersion = '5.3.7'
springSecurityVersion = '5.3.3.RELEASE'
springIntegrationVersion = '5.5.0'
springDataVersion = '2.5.1'
springDataJpaVersion = '2.5.1'
springBatchVersion = '4.3.3'
hibernateVersion = '5.4.18.Final'
hibernateValidatorVersion = '5.4.3.Final'
jettyVersion = "9.4.30.v20200611"
releaseDir = "${buildDir}/release"
}
eclipse {
classpath {
downloadSources=true
}
project {
}
}
eclipse.classpath.defaultOutputDir = file( 'build/classes' )
eclipse.classpath.file {
beforeMerged { classpath ->
classpath.entries.clear()
}
whenMerged { cp ->
cp.entries.findAll { it instanceof SourceFolder && it.path.startsWith("src/main/") }*.output = "build/bin/main"
cp.entries.findAll { it instanceof SourceFolder && it.path.startsWith("src/test/") }*.output = "build/bin/test"
cp.entries.removeAll { it.kind == "output" }
}
}
group = 'com.devteam'
version = '1.0'
sourceCompatibility = 11
compileJava.options.encoding = 'UTF-8'
configurations {
compile {
transitive = true
}
}
repositories {
mavenLocal()
mavenCentral()
maven { url "https://repo.spring.io/plugins-release" }
maven { url "https://repo.spring.io/milestone" }
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives sourcesJar
}
dependencies {
implementation "org.slf4j:slf4j-api:${slf4jVersion}"
implementation "org.slf4j:slf4j-ext:${slf4jVersion}"
implementation 'org.projectlombok:lombok:1.18.16'
annotationProcessor 'org.projectlombok:lombok:1.18.16'
api group: 'javax.annotation', name: 'javax.annotation-api', version: '1.3.2'
api group: 'junit', name: 'junit', version: '4.12'
testRuntimeOnly "org.junit.platform:junit-platform-commons:1.7.0"
implementation group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.7.2'
}
test {
forkEvery = 1
ignoreFailures = true
testLogging.showStandardStreams = true
filter {
includeTestsMatching "*UnitTest"
}
testLogging {
events "passed", "skipped", "failed"
}
}
task itest(type: Test) {
description = 'Runs integration tests.'
testLogging {
events "passed", "skipped", "failed"
}
useJUnitPlatform {
includeTags('integration')
}
}
task utest(type: Test) {
ignoreFailures = true
description = 'Runs Unit tests.'
testLogging {
events "passed", "skipped", "failed"
}
useJUnitPlatform {
includeTags('unit')
}
}
task tofix(type: Test) {
description = 'Runs tofix tests.'
testLogging.showStandardStreams = true
testLogging {
events "passed", "skipped", "failed"
}
useJUnitPlatform {
includeTags('tofix')
}
}
task testJar(type: Jar) {
classifier = 'tests'
from sourceSets.test.output
}
configurations {
tests
published.extendsFrom tests, archives
}
artifacts {
tests testJar
}
sourceSets {
main {
}
}
task stage(dependsOn: ['build', 'clean'])
build.mustRunAfter clean
}