44 lines
1.4 KiB
Groovy
44 lines
1.4 KiB
Groovy
apply plugin: 'java'
|
|
apply plugin: 'kotlin'
|
|
apply plugin: 'application'
|
|
apply plugin: "io.spring.dependency-management"
|
|
apply plugin: "org.springframework.boot"
|
|
|
|
repositories {
|
|
mavenLocal()
|
|
mavenCentral()
|
|
maven {
|
|
url = "http://repo.maven.apache.org/maven2"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation "org.springframework.boot:spring-boot-starter-data-jpa"
|
|
implementation "org.springframework.boot:spring-boot-starter-security"
|
|
implementation "org.springframework.session:spring-session-jdbc"
|
|
implementation "org.springframework.boot:spring-boot-starter-web"
|
|
implementation "com.fasterxml.jackson.module:jackson-module-kotlin:2.9.8"
|
|
implementation "org.jetbrains.kotlin:kotlin-reflect:1.3.61"
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.61"
|
|
implementation "io.springfox:springfox-swagger2:2.8.0"
|
|
implementation "io.springfox:springfox-swagger-ui:2.8.0"
|
|
runtimeOnly "mysql:mysql-connector-java:8.0.15"
|
|
testImplementation "org.springframework.boot:spring-boot-starter-test"
|
|
testImplementation "org.springframework.security:spring-security-test:5.1.5.RELEASE"
|
|
}
|
|
|
|
jar {
|
|
description = "twigs-server"
|
|
}
|
|
|
|
mainClassName = "com.wbrawner.budgetserver.BudgetServerApplicationKt"
|
|
|
|
sourceCompatibility = 11
|
|
targetCompatibility = 11
|
|
|
|
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
|
|
kotlinOptions {
|
|
jvmTarget = '11'
|
|
}
|
|
}
|
|
|