-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbuild.gradle
More file actions
75 lines (67 loc) · 2.51 KB
/
build.gradle
File metadata and controls
75 lines (67 loc) · 2.51 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
plugins {
id 'org.springframework.boot' version '2.1.4.RELEASE'
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'groovy'
apply plugin: 'io.spring.dependency-management'
group = 'com.barrettotte'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
//mavenCentral()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
compile 'org.springframework.boot:spring-boot-starter'
compile 'org.codehaus.groovy:groovy-all:2.5.6'
compile group: 'net.sf.jt400', name: 'jt400', version: '9.8', classifier: 'jt400_jdk8'
compile group: 'org.springframework', name: 'spring-jdbc', version: '5.1.6.RELEASE'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-jdbc', version: '2.1.4.RELEASE'
compile group: 'io.springfox', name: 'springfox-swagger2', version: '2.9.0'
compile group: 'io.springfox', name: 'springfox-swagger-ui', version: '2.9.0'
compile group: 'org.json', name: 'json', version: '20180813'
//compile group: 'log4j', name: 'log4j', version: '1.2.17'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
//implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-web'
runtimeOnly 'org.springframework.boot:spring-boot-devtools'
testCompile 'org.mockito:mockito-core:2.27.0'
testCompile 'org.mockito:mockito-junit-jupiter:2.27.0'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.security:spring-security-test'
testImplementation 'org.junit.jupiter:junit-jupiter:5.4.2'
}
sourceSets {
main {
java.srcDirs = ['src/main/java']
groovy.srcDirs = ['src/main/groovy']
}
test {
java.srcDirs = ['src/test/java']
groovy.srcDirs = ['src/test/groovy']
}
}
test {
useJUnitPlatform{
includeEngines 'junit-jupiter' //'junit-vintage'
}
testLogging {
exceptionFormat = 'full'
showExceptions true
events 'PASSED', 'FAILED', 'SKIPPED'
showStandardStreams = true
}
afterSuite {
desc, result ->
if (!desc.parent) {
println "\nTest result: ${result.resultType}"
println "Test summary: " +
"${result.testCount} tests, " +
"${result.successfulTestCount} succeeded, " +
"${result.failedTestCount} failed, " +
"${result.skippedTestCount} skipped"
}
}
}