59 lines
1.3 KiB
Groovy
59 lines
1.3 KiB
Groovy
plugins {
|
|
id 'java'
|
|
id 'org.jetbrains.kotlin.jvm' version '1.3.31'
|
|
id 'org.springframework.boot' version '2.1.4.RELEASE'
|
|
id "io.spring.dependency-management" version "1.0.7.RELEASE"
|
|
id 'org.jetbrains.kotlin.plugin.spring' version '1.3.31'
|
|
id 'org.jetbrains.kotlin.plugin.jpa' version '1.3.31'
|
|
}
|
|
|
|
apply plugin: 'kotlin-jpa'
|
|
apply plugin: 'io.spring.dependency-management'
|
|
apply plugin: 'kotlin-kapt'
|
|
|
|
|
|
apply plugin: 'kotlin-allopen'
|
|
|
|
allOpen {
|
|
annotation("javax.persistence.Entity")
|
|
}
|
|
|
|
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.ALPHA.0_88'
|
|
|
|
implementation "com.h2database:h2"
|
|
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
|
|
|
|
|
|
}
|
|
|
|
bootJar {
|
|
mainClassName = 'nl.voidcorp.discord.MainKt'
|
|
}
|
|
|
|
compileKotlin {
|
|
kotlinOptions {
|
|
freeCompilerArgs = ["-Xjsr305=strict"]
|
|
jvmTarget = "1.8"
|
|
}
|
|
}
|
|
compileTestKotlin {
|
|
kotlinOptions {
|
|
freeCompilerArgs = ["-Xjsr305=strict"]
|
|
jvmTarget = "1.8"
|
|
}
|
|
} |