-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
84 lines (73 loc) · 2.41 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
plugins {
id 'checkstyle'
id 'org.springframework.boot' version '3.0.2'
id 'io.spring.dependency-management' version '1.1.0'
id 'java'
}
group = 'com.bitpay'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '17'
repositories {
mavenCentral()
}
sourceSets {
intTest {
compileClasspath += sourceSets.main.output
runtimeClasspath += sourceSets.main.output
java {
srcDir file('src/integration-test/java')
}
resources.srcDir file('src/integration-test/resources')
}
}
dependencies {
developmentOnly("org.springframework.boot:spring-boot-devtools")
compileOnly 'org.projectlombok:lombok:1.18.26'
implementation 'com.google.code.gson:gson:2.10.1'
implementation 'com.bitpay:bitpay_sdk:9.0.0-beta1'
implementation 'org.liquibase:liquibase-core:4.19.0'
implementation 'com.h2database:h2:2.1.214'
implementation 'org.springframework:spring-webflux:6.0.5'
implementation 'org.springframework:spring-websocket:6.0.5'
implementation 'org.springframework:spring-messaging:6.0.5'
implementation "org.springframework.boot:spring-boot-starter-data-jpa:3.0.2"
implementation 'org.springframework.boot:spring-boot-starter-log4j2'
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
implementation 'org.springframework.boot:spring-boot-starter-web'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
intTestImplementation 'org.springframework.boot:spring-boot-starter-test'
}
configurations {
all {
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-logging'
}
intTestImplementation.extendsFrom implementation
intTestRuntimeOnly.extendsFrom runtimeOnly
}
tasks.named('test') {
useJUnitPlatform()
dependsOn 'cleanTest'
testLogging {
events "failed"
}
}
task integrationTest(type: Test) {
useJUnitPlatform()
dependsOn 'cleanTest'
testLogging {
events "failed"
}
testClassesDirs = sourceSets.intTest.output.classesDirs
classpath = sourceSets.intTest.runtimeClasspath
shouldRunAfter test
}
checkstyle {
toolVersion = "8.39"
project.ext.checkstyleVersion = '8.39'
configFile = rootProject.file("${rootProject.projectDir}/config/checkstyle/checkstyle.xml")
}
tasks.withType(Checkstyle) {
reports {
xml.destination rootProject.file("build/reports/checkstyle-result.xml")
}
}