plugins { id 'java' id 'org.jetbrains.kotlin.jvm' version '1.3.70' id 'org.springframework.boot' version '2.2.5.RELEASE' id "io.spring.dependency-management" version "1.0.9.RELEASE" id 'org.jetbrains.kotlin.plugin.spring' version '1.3.70' id 'org.jetbrains.kotlin.plugin.jpa' version '1.3.70' id "org.jetbrains.kotlin.kapt" version "1.3.70" } apply plugin: 'kotlin-jpa' apply plugin: 'io.spring.dependency-management' apply plugin: 'kotlin-kapt' apply plugin: 'kotlin-allopen' allOpen { annotation("javax.persistence.Entity") annotation("com.fasterxml.jackson.annotation.JsonIgnoreProperties") } group 'nl.voidcorp.discord' version '1.0-SNAPSHOT' sourceCompatibility = 1.8 repositories { jcenter() } dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8" implementation 'org.jetbrains.kotlin:kotlin-reflect' testImplementation "org.junit.jupiter:junit-jupiter:5.4.2" implementation 'net.dv8tion:JDA:4.1.1_101' runtimeOnly "com.h2database:h2" runtimeOnly "org.postgresql:postgresql" implementation 'org.springframework.boot:spring-boot-starter-data-jpa' kapt 'org.springframework.boot:spring-boot-configuration-processor' implementation "org.springframework:spring-web" implementation "com.fasterxml.jackson.core:jackson-databind" implementation "com.fasterxml.jackson.module:jackson-module-kotlin" } bootJar { mainClassName = 'nl.voidcorp.discord.MainKt' archiveName = "ottobot.jar" } compileKotlin { kotlinOptions { freeCompilerArgs = ["-Xjsr305=strict"] jvmTarget = "1.8" } } compileTestKotlin { kotlinOptions { freeCompilerArgs = ["-Xjsr305=strict"] jvmTarget = "1.8" } }