This repository was archived by the owner on Oct 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathbuild.gradle
More file actions
90 lines (74 loc) · 2.47 KB
/
build.gradle
File metadata and controls
90 lines (74 loc) · 2.47 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
import org.gradle.api.tasks.testing.logging.TestLogEvent
plugins {
id 'com.github.johnrengelman.shadow' version '8.1.1'
}
apply plugin: 'java'
apply plugin: 'application'
repositories {
mavenCentral()
}
dependencies {
implementation 'com.sparkjava:spark-core:2.9.4'
implementation 'org.slf4j:slf4j-simple:2.0.9'
implementation 'org.postgresql:postgresql:42.6.0'
implementation 'com.squareup.okhttp3:okhttp:4.12.0'
implementation 'com.google.code.gson:gson:2.10.1'
implementation 'net.dongliu:gson-java8-datatype:1.1.0'
testImplementation 'junit:junit:4.13.2'
testImplementation 'org.hamcrest:java-hamcrest:2.0.0.0'
testImplementation 'org.mockito:mockito-core:5.6.0'
testImplementation 'com.jayway.jsonpath:json-path-assert:2.8.0'
}
sourceSets {
integrationTest {
compileClasspath += main.output
runtimeClasspath += main.output
}
journeyTest
}
configurations {
integrationTestImplementation.extendsFrom testImplementation
integrationTestRuntime.extendsFrom testRuntime
journeyTestImplementation.extendsFrom testImplementation
journeyTestRuntime.extendsFrom testRuntime
}
// See http://stackoverflow.com/a/36199263/1668119 for explanation
tasks.withType(Test) {
testLogging {
events TestLogEvent.FAILED,
TestLogEvent.PASSED,
TestLogEvent.SKIPPED,
TestLogEvent.STANDARD_ERROR,
TestLogEvent.STANDARD_OUT
exceptionFormat TestExceptionFormat.FULL
showCauses true
showExceptions true
showStackTraces true
}
}
task integrationTest(type: Test) {
description 'Runs the integration tests.'
group 'Verification'
testClassesDirs = sourceSets.integrationTest.output.classesDirs
classpath = sourceSets.integrationTest.runtimeClasspath
}
task journeyTest(type: Test) {
description 'Runs the journey tests.'
group 'Verification'
testClassesDirs = sourceSets.journeyTest.output.classesDirs
classpath = sourceSets.journeyTest.runtimeClasspath
}
mainClassName = 'com.charleskorn.banking.internationaltransfers.Application'
shadowJar {
destinationDirectory = file('.batect/international-transfers-service')
archiveClassifier = ''
archiveVersion = ''
}
tasks.withType(AbstractArchiveTask) {
preserveFileTimestamps = false
reproducibleFileOrder = true
}
wrapper {
distributionType = Wrapper.DistributionType.ALL
}