Skip to content

Instantly share code, notes, and snippets.

@Tonel
Created June 28, 2020 08:09
Show Gist options
  • Save Tonel/0330edd93015692a4c9c64963dfd9e52 to your computer and use it in GitHub Desktop.
Save Tonel/0330edd93015692a4c9c64963dfd9e52 to your computer and use it in GitHub Desktop.
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("org.springframework.boot") version "2.3.1.RELEASE"
id("io.spring.dependency-management") version "1.0.9.RELEASE"
kotlin("jvm") version "1.3.72"
kotlin("plugin.spring") version "1.3.72"
kotlin("kapt") version "1.3.72"
}
group = "com.example"
version = "0.0.1-SNAPSHOT"
java.sourceCompatibility = JavaVersion.VERSION_1_8
repositories {
mavenCentral()
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter")
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation("org.springframework.boot:spring-boot-starter-web:2.3.1.RELEASE")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.9.8")
implementation("org.mapstruct:mapstruct-jdk8:1.3.1.Final")
kapt("org.mapstruct:mapstruct-processor:1.3.1.Final")
}
tasks.withType<Test> {
useJUnitPlatform()
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "1.8"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment