Skip to content
Snippets Groups Projects
build.gradle.kts 2.44 KiB
Newer Older
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
Jan-Niclas Strüwer's avatar
Jan-Niclas Strüwer committed
    id("org.springframework.boot") version "3.0.6"
    id("io.spring.dependency-management") version "1.1.0"
    id("org.jetbrains.kotlin.plugin.allopen") version "1.8.21"
    kotlin("jvm") version "1.7.22"
    kotlin("plugin.spring") version "1.7.22"
    kotlin("plugin.jpa") version "1.7.22"
    kotlin("plugin.serialization") version "1.8.21"
Jan-Niclas Strüwer's avatar
Jan-Niclas Strüwer committed
    annotation("javax.persistence.Entity")
    annotation("javax.persistence.Embeddable")
    annotation("javax.persistence.MappedSuperclass")
    annotation("jakarta.persistence.Entity")
    annotation("jakarta.persistence.Embeddable")
    annotation("jakarta.persistence.MappedSuperclass")
}

group = "de.fraunhofer.iem"
version = "0.0.1-SNAPSHOT"
java.sourceCompatibility = JavaVersion.VERSION_17

configurations {
Jan-Niclas Strüwer's avatar
Jan-Niclas Strüwer committed
    compileOnly {
        extendsFrom(configurations.annotationProcessor.get())
    }
Jan-Niclas Strüwer's avatar
Jan-Niclas Strüwer committed
    mavenCentral()
Jan-Niclas Strüwer's avatar
Jan-Niclas Strüwer committed
    implementation("org.springframework.boot:spring-boot-starter-data-jpa")
    implementation("org.springframework.boot:spring-boot-starter-validation")
    implementation("org.springframework.boot:spring-boot-starter-security")
    implementation("org.springframework.boot:spring-boot-starter-webflux")
    implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
    implementation("org.jetbrains.kotlin:kotlin-reflect")
    implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core")
    implementation("org.jetbrains.kotlinx:kotlinx-coroutines-reactive")
    implementation("org.jetbrains.kotlinx:kotlinx-coroutines-reactor")
    implementation("org.gitlab4j:gitlab4j-api:6.0.0-rc.1")
    implementation("org.eclipse.jgit:org.eclipse.jgit:6.5.0.202303070854-r")
    implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.1")
Jan-Niclas Strüwer's avatar
Jan-Niclas Strüwer committed
    implementation("org.springframework.boot:spring-boot-starter-actuator")
Jan-Niclas Strüwer's avatar
Jan-Niclas Strüwer committed
    developmentOnly("org.springframework.boot:spring-boot-devtools")
    runtimeOnly("org.postgresql:postgresql")
    testImplementation("org.springframework.boot:spring-boot-starter-test")
    testImplementation("org.springframework.security:spring-security-test")
    testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.7.1")
    testImplementation("io.mockk:mockk:1.13.5")
}

tasks.withType<KotlinCompile> {
Jan-Niclas Strüwer's avatar
Jan-Niclas Strüwer committed
    kotlinOptions {
        freeCompilerArgs = listOf("-Xjsr305=strict")
        jvmTarget = "17"
    }
}

tasks.withType<Test> {
Jan-Niclas Strüwer's avatar
Jan-Niclas Strüwer committed
    useJUnitPlatform()

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.