twigs/api/build.gradle.kts
William Brawner 8e6454cb72 Convert code to Kotlin
Convert ErrorResponse to Kotlin

Convert TwigsServerApplication to Kotlin

Convert BudgetController to Kotlin

Convert CategoryController to Kotlin

Convert UserController to Kotlin

Convert TransactionController to Kotlin

Convert Budget models to Kotlin

Convert Category models to Kotlin

Convert PasswordResetRequest models to Kotlin

Convert Transaction models to Kotlin

Convert user models to Kotlin

Convert permission models to Kotlin

Conver session models to Kotlin

Finish Kotlin conversions

Fix more Kotlin conversion issues

Remove swagger

Use Kotlin DSL for Gradle scripts

Signed-off-by: William Brawner <me@wbrawner.com>

Resolve some warnings

Move source to src/main/kotlin

Move source to src/main/kotlin
2021-06-20 13:23:37 -06:00

43 lines
1.2 KiB
Text

import java.net.URI
plugins {
java
kotlin("jvm")
id("org.springframework.boot")
}
apply(plugin = "io.spring.dependency-management")
repositories {
mavenLocal()
mavenCentral()
maven {
url = URI("http://repo.maven.apache.org/maven2")
}
}
val kotlinVersion: String by rootProject.extra
dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion")
implementation("org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion")
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")
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")
}
description = "twigs-server"
val twigsMain = "com.wbrawner.budgetserver.TwigsServerApplication"
tasks.bootJar {
mainClassName = twigsMain
}
tasks.bootRun {
main = twigsMain
}