ottobotv2/build.gradle

69 lines
1.7 KiB
Groovy
Raw Permalink Normal View History

2019-05-20 23:10:28 +02:00
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"
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")
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'
testImplementation "org.junit.jupiter:junit-jupiter:5.4.2"
2019-05-20 23:10:28 +02:00
implementation 'net.dv8tion:JDA:4.2.0_179'
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-20 23:10:28 +02:00
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"
2019-05-20 23:10:28 +02:00
}
bootJar {
mainClassName = 'nl.voidcorp.discord.MainKt'
archiveName = "ottobot.jar"
}
2019-05-20 23:10:28 +02:00
compileKotlin {
kotlinOptions {
freeCompilerArgs = ["-Xjsr305=strict"]
jvmTarget = "1.8"
}
}
compileTestKotlin {
kotlinOptions {
freeCompilerArgs = ["-Xjsr305=strict"]
jvmTarget = "1.8"
}
}