2021-03-30 01:31:22 +00:00
|
|
|
import java.net.URI
|
|
|
|
|
|
|
|
plugins {
|
|
|
|
java
|
|
|
|
kotlin("jvm")
|
2021-07-06 15:48:48 +00:00
|
|
|
application
|
2022-06-03 02:28:44 +00:00
|
|
|
alias(libs.plugins.shadow)
|
2021-03-30 01:31:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2021-07-29 16:40:22 +00:00
|
|
|
implementation(project(":api"))
|
|
|
|
implementation(project(":core"))
|
2021-08-12 21:22:06 +00:00
|
|
|
implementation(project(":db"))
|
2021-08-16 03:10:39 +00:00
|
|
|
implementation(project(":web"))
|
2022-06-03 02:28:44 +00:00
|
|
|
implementation(libs.kotlin.reflect)
|
2022-06-22 18:42:01 +00:00
|
|
|
implementation(libs.bundles.ktor.server)
|
2022-06-04 04:46:02 +00:00
|
|
|
implementation(libs.kotlinx.coroutines.core)
|
2024-02-23 05:13:17 +00:00
|
|
|
implementation(libs.bcrypt)
|
2022-06-03 02:28:44 +00:00
|
|
|
implementation(libs.logback)
|
2022-06-04 04:46:02 +00:00
|
|
|
implementation(libs.mail)
|
2024-03-27 22:50:06 +00:00
|
|
|
implementation(project(mapOf("path" to ":service")))
|
2021-08-26 13:15:14 +00:00
|
|
|
testImplementation(project(":testhelpers"))
|
2023-09-27 02:04:55 +00:00
|
|
|
testImplementation(libs.ktor.client.content.negotiation)
|
|
|
|
testImplementation(libs.ktor.server.test)
|
2021-03-30 01:31:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
description = "twigs-server"
|
|
|
|
|
2021-08-12 21:22:06 +00:00
|
|
|
val twigsMain = "com.wbrawner.twigs.server.ApplicationKt"
|
2021-03-30 01:31:22 +00:00
|
|
|
|
2021-07-06 15:48:48 +00:00
|
|
|
application {
|
|
|
|
mainClass.set(twigsMain)
|
|
|
|
}
|
|
|
|
|
2021-08-12 21:22:06 +00:00
|
|
|
tasks.shadowJar {
|
|
|
|
manifest {
|
|
|
|
attributes("Main-Class" to twigsMain)
|
|
|
|
archiveBaseName.set("twigs")
|
|
|
|
archiveClassifier.set("")
|
|
|
|
archiveVersion.set("")
|
|
|
|
}
|
2021-03-30 01:31:22 +00:00
|
|
|
}
|
2021-08-16 21:25:32 +00:00
|
|
|
|
2021-08-26 13:15:14 +00:00
|
|
|
tasks.getByName<Test>("test") {
|
|
|
|
useJUnitPlatform()
|
|
|
|
}
|
2023-09-27 13:24:21 +00:00
|
|
|
|
|
|
|
tasks.test {
|
|
|
|
reports {
|
|
|
|
junitXml.required.set(true)
|
|
|
|
html.required.set(false)
|
|
|
|
}
|
|
|
|
}
|