2021-03-30 01:31:22 +00:00
|
|
|
import java.net.URI
|
|
|
|
|
|
|
|
plugins {
|
|
|
|
java
|
|
|
|
kotlin("jvm")
|
|
|
|
id("org.springframework.boot")
|
|
|
|
}
|
|
|
|
|
|
|
|
apply(plugin = "io.spring.dependency-management")
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenLocal()
|
|
|
|
mavenCentral()
|
|
|
|
maven {
|
2021-07-06 01:05:25 +00:00
|
|
|
url = URI("https://repo.maven.apache.org/maven2")
|
2021-03-30 01:31:22 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
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"
|
|
|
|
|
2021-07-06 01:07:19 +00:00
|
|
|
val twigsMain = "com.wbrawner.twigs.server.TwigsServerApplication"
|
2021-03-30 01:31:22 +00:00
|
|
|
|
|
|
|
tasks.bootJar {
|
|
|
|
mainClassName = twigsMain
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.bootRun {
|
|
|
|
main = twigsMain
|
|
|
|
}
|