2019-05-20 23:10:28 +02:00
|
|
|
plugins {
|
|
|
|
id 'java'
|
2020-03-15 11:27:03 +01:00
|
|
|
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"
|
2019-05-28 22:35:24 +02:00
|
|
|
|
2019-05-20 23:10:28 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
apply plugin: 'kotlin-jpa'
|
|
|
|
apply plugin: 'io.spring.dependency-management'
|
|
|
|
apply plugin: 'kotlin-kapt'
|
|
|
|
|
|
|
|
|
|
|
|
apply plugin: 'kotlin-allopen'
|
|
|
|
|
|
|
|
allOpen {
|
|
|
|
annotation("javax.persistence.Entity")
|
2019-05-24 21:26:27 +02:00
|
|
|
annotation("com.fasterxml.jackson.annotation.JsonIgnoreProperties")
|
2019-05-20 23:10:28 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
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'
|
2019-05-21 23:12:06 +02:00
|
|
|
|
|
|
|
testImplementation "org.junit.jupiter:junit-jupiter:5.4.2"
|
2019-05-20 23:10:28 +02:00
|
|
|
|
2020-03-15 11:27:03 +01:00
|
|
|
implementation 'net.dv8tion:JDA:4.1.1_101'
|
2019-05-20 23:10:28 +02:00
|
|
|
|
2019-06-09 19:00:23 +02:00
|
|
|
runtimeOnly "com.h2database:h2"
|
|
|
|
|
|
|
|
runtimeOnly "org.postgresql:postgresql"
|
2019-05-24 21:26:27 +02:00
|
|
|
|
2019-05-20 23:10:28 +02:00
|
|
|
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
|
2019-05-28 22:35:24 +02:00
|
|
|
kapt 'org.springframework.boot:spring-boot-configuration-processor'
|
2019-05-24 21:26:27 +02:00
|
|
|
implementation "org.springframework:spring-web"
|
|
|
|
implementation "com.fasterxml.jackson.core:jackson-databind"
|
|
|
|
implementation "com.fasterxml.jackson.module:jackson-module-kotlin"
|
2019-05-20 23:10:28 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2019-05-22 13:25:54 +02:00
|
|
|
bootJar {
|
|
|
|
mainClassName = 'nl.voidcorp.discord.MainKt'
|
2019-05-24 21:26:27 +02:00
|
|
|
archiveName = "ottobot.jar"
|
2019-05-22 13:25:54 +02:00
|
|
|
}
|
|
|
|
|
2019-05-20 23:10:28 +02:00
|
|
|
compileKotlin {
|
|
|
|
kotlinOptions {
|
|
|
|
freeCompilerArgs = ["-Xjsr305=strict"]
|
|
|
|
jvmTarget = "1.8"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
compileTestKotlin {
|
|
|
|
kotlinOptions {
|
|
|
|
freeCompilerArgs = ["-Xjsr305=strict"]
|
|
|
|
jvmTarget = "1.8"
|
|
|
|
}
|
|
|
|
}
|