build.gradle.kts 1.32 KB
Newer Older
Julien SADAOUI's avatar
Julien SADAOUI committed
1
2
plugins {
    id("java")
3
    id("org.springframework.boot") version "2.2.4.RELEASE"
Julien SADAOUI's avatar
Julien SADAOUI committed
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
    id("idea")
}

apply(plugin = "io.spring.dependency-management")

java {
    sourceCompatibility = JavaVersion.VERSION_11
    targetCompatibility = JavaVersion.VERSION_11
}

defaultTasks("bootRun")

dependencies {
    implementation("org.springframework.boot:spring-boot-starter-webflux")
    implementation("org.springframework.boot:spring-boot-starter-validation")
    implementation("org.springframework.boot:spring-boot-starter-security")
Julien SADAOUI's avatar
Julien SADAOUI committed
20
    implementation("org.springframework.boot:spring-boot-starter-data-mongodb-reactive")
Julien SADAOUI's avatar
Julien SADAOUI committed
21
22
    implementation("com.github.mongobee:mongobee:0.13")
    runtimeOnly("de.flapdoodle.embed:de.flapdoodle.embed.mongo")
Julien SADAOUI's avatar
Julien SADAOUI committed
23
    implementation("org.projectlombok:lombok")
Julien SADAOUI's avatar
Julien SADAOUI committed
24
25
26
27
28
29
30
31
32
33
34
35
    annotationProcessor("org.projectlombok:lombok")

    testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
    testImplementation("org.junit.jupiter:junit-jupiter-api")
    testImplementation("org.springframework.boot:spring-boot-starter-test") {
        exclude(module = "junit")
    }
    testImplementation("org.springframework.security:spring-security-test")
    testImplementation("io.projectreactor:reactor-test")
}

tasks.withType<Test> {
Julien SADAOUI's avatar
Julien SADAOUI committed
36
37
    enabled = false

Julien SADAOUI's avatar
Julien SADAOUI committed
38
39
40
41
42
43
    useJUnitPlatform()

    maxHeapSize = "1G"

    testLogging.showStandardStreams = true
}