-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
73 lines (59 loc) · 2.05 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
plugins {
id 'org.springframework.boot' version '3.0.1'
id 'io.spring.dependency-management' version '1.1.0'
id 'java'
}
jar {
enabled = false
}
group 'cricket-club'
version '1.0-SNAPSHOT'
sourceCompatibility = JavaVersion.VERSION_19
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-webflux'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.liquibase:liquibase-core'
implementation 'io.springfox:springfox-boot-starter:3.0.0'
implementation 'io.springfox:springfox-swagger-ui:3.0.0'
runtimeOnly 'mysql:mysql-connector-java'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'io.projectreactor:reactor-test'
testImplementation 'org.junit.jupiter:junit-jupiter-api'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
testImplementation 'org.testcontainers:testcontainers:1.17.6'
testImplementation 'org.testcontainers:mysql:1.17.6'
testImplementation 'org.testcontainers:junit-jupiter:1.17.6'
}
test {
testLogging {
events "passed", "skipped", "failed"
}
useJUnitPlatform()
}
sourceSets {
testIntegration {
java {
compileClasspath += main.output
compileClasspath += main.compileClasspath
compileClasspath += test.output
compileClasspath += test.compileClasspath
runtimeClasspath += test.runtimeClasspath
}
java.srcDir file('src/testIntegration/java')
resources.srcDir file('src/testIntegration/resources')
}
}
task testIntegration(type: Test, description: 'Runs integration tests.') {
classpath = sourceSets.testIntegration.runtimeClasspath
setTestClassesDirs(sourceSets.testIntegration.output.classesDirs)
testLogging {
events "passed", "started", "skipped", "failed"
}
useJUnitPlatform()
}
build.dependsOn testIntegration