All Downloads are FREE. Search and download functionalities are using the official Maven repository.

kotlin-spring.libraries.spring-boot.buildGradleKts.mustache Maven / Gradle / Ivy

There is a newer version: 3.3.4.2
Show newest version
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

buildscript {
    repositories {
        jcenter()
        mavenCentral()
    }
    dependencies {
        classpath("org.springframework.boot:spring-boot-gradle-plugin:2.0.3.RELEASE")
    }
}

group = "{{groupId}}"
version = "{{artifactVersion}}"

repositories {
    jcenter()
    mavenCentral()
}

tasks.withType {
    kotlinOptions.jvmTarget = "1.8"
}

plugins {
    val kotlinVersion = "1.2.60"
    id("org.jetbrains.kotlin.jvm") version kotlinVersion
    id("org.jetbrains.kotlin.plugin.jpa") version kotlinVersion
    id("org.jetbrains.kotlin.plugin.spring") version kotlinVersion
    id("org.springframework.boot") version "2.0.3.RELEASE"
    id("io.spring.dependency-management") version "1.0.5.RELEASE"
}

dependencies {
    compile("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
    compile("org.jetbrains.kotlin:kotlin-reflect")
    compile("org.springframework.boot:spring-boot-starter-web")
{{#swaggerAnnotations}}
    compile("io.swagger:swagger-annotations:1.5.21")
{{/swaggerAnnotations}}
    compile("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml")
    compile("com.fasterxml.jackson.dataformat:jackson-dataformat-xml")
    compile("com.fasterxml.jackson.module:jackson-module-kotlin")

    testCompile("org.springframework.boot:spring-boot-starter-test") {
        exclude(module = "junit")
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy