69 lines
1.7 KiB
Groovy
69 lines
1.7 KiB
Groovy
plugins {
|
|
id 'java'
|
|
id 'org.jetbrains.kotlin.jvm' version '1.3.72'
|
|
id 'org.springframework.boot' version '2.3.1.RELEASE'
|
|
id "io.spring.dependency-management" version "1.0.9.RELEASE"
|
|
id 'org.jetbrains.kotlin.plugin.spring' version '1.3.72'
|
|
id 'org.jetbrains.kotlin.plugin.jpa' version '1.3.72'
|
|
id "org.jetbrains.kotlin.kapt" version "1.3.72"
|
|
|
|
}
|
|
|
|
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.2.0_179'
|
|
|
|
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"
|
|
}
|
|
} |