-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
92 lines (79 loc) · 2.99 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
plugins {
id 'org.springframework.boot' version '2.2.2.RELEASE'
id 'io.spring.dependency-management' version '1.0.8.RELEASE'
id 'java'
}
group = 'com.crio.stock'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '1.8'
buildDir = '/tmp/external_build'
configurations {
developmentOnly
runtimeClasspath {
extendsFrom developmentOnly
}
compileOnly {
extendsFrom annotationProcessor
}
}
ext {
buildId = System.currentTimeMillis()
// Dependency versions
springBootVersion = '2.1.8.RELEASE'
springCoreVersion = '5.1.9.RELEASE'
jacksonVersion = "2.9.8"
}
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
compileOnly 'org.projectlombok:lombok'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
annotationProcessor 'org.projectlombok:lombok'
compile("org.springframework.boot:spring-boot-starter-log4j2:$rootProject.ext.springBootVersion") {
exclude group: 'org.apache.logging.log4j', module: 'log4j-slf4j-impl'
exclude group: 'org.apache.logging.log4j', module: 'log4j-core'
exclude group: 'org.apache.logging.log4j', module: 'log4j-jul'
exclude group: 'org.slf4j', module: 'jul-to-slf4j'
}
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.7'
// log4j2 dependencies
compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.12.1'
compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.12.1'
//compile group: 'org.apache.logging.log4j', name: 'log4j-slf4j-impl', version: '2.12.1'
compile group: 'org.apache.logging.log4j', name: 'log4j-jul', version: '2.12.1'
compile group: 'org.slf4j', name: 'jul-to-slf4j', version: '1.7.28'
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
}
test {
reports {
junitXml.enabled = true
def destinationDirectory = System.getProperty("user.home") + "/.gradle/daemon/${buildId}/test-results"
junitXml.destination = file(destinationDirectory)
html.enabled = true
}
useJUnitPlatform {
}
testLogging.events ("standard_error");
testLogging.events ("standard_out");
afterSuite { desc, result ->
if (!desc.parent) {
println "\nTEST RESULT: ${result.resultType}"
println "TEST SUMMARY: RAN ${result.testCount} TESTS, " +
"${result.successfulTestCount} SUCCEEDED, " +
"${result.failedTestCount} FAILED, " +
"${result.skippedTestCount} SKIPPED"
}
}
}
task installGitHooks(type: Copy) {
from new File(rootProject.rootDir, '__CRIO__/pre-push')
into { new File(rootProject.rootDir, '.git/hooks') }
fileMode 0777
}
build.dependsOn installGitHooks