81 lines
2.6 KiB
Plaintext
81 lines
2.6 KiB
Plaintext
plugins {
|
|
kotlin("jvm") version "2.1.0"
|
|
`maven-publish`
|
|
alias(libs.plugins.ktor)
|
|
}
|
|
|
|
group = "net.lamgc.scext"
|
|
version = "0.1.0-SNAPSHOT"
|
|
|
|
dependencies {
|
|
compileOnly("org.slf4j:slf4j-api:2.0.10")
|
|
compileOnly("io.github.microutils:kotlin-logging:3.0.5")
|
|
compileOnly("net.lamgc:scalabot-extension:0.8.0-1")
|
|
|
|
implementation("com.fasterxml.jackson.core:jackson-core:2.16.1")
|
|
implementation("com.fasterxml.jackson.core:jackson-databind:2.16.1")
|
|
implementation("com.fasterxml.jackson.core:jackson-annotations:2.16.1")
|
|
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.16.1")
|
|
|
|
val exposedVersion = "0.45.0"
|
|
implementation("org.jetbrains.exposed:exposed-core:$exposedVersion")
|
|
implementation("org.jetbrains.exposed:exposed-crypt:$exposedVersion")
|
|
implementation("org.jetbrains.exposed:exposed-dao:$exposedVersion")
|
|
implementation("org.jetbrains.exposed:exposed-jdbc:$exposedVersion")
|
|
implementation("org.jetbrains.exposed:exposed-kotlin-datetime:$exposedVersion")
|
|
implementation("org.jetbrains.exposed:exposed-java-time:$exposedVersion")
|
|
|
|
implementation("org.xerial:sqlite-jdbc:3.44.1.0")
|
|
implementation("mysql:mysql-connector-java:8.0.33")
|
|
implementation("com.zaxxer:HikariCP:5.1.0")
|
|
|
|
implementation("com.microsoft.graph:microsoft-graph:5.77.0")
|
|
implementation("com.azure:azure-identity:1.14.2")
|
|
|
|
implementation(libs.ktor.server.content.negotiation)
|
|
implementation(libs.ktor.server.core)
|
|
implementation(libs.ktor.serialization.gson)
|
|
implementation(libs.ktor.server.swagger)
|
|
implementation(libs.ktor.server.openapi)
|
|
implementation(libs.ktor.server.hsts)
|
|
implementation(libs.ktor.server.auth)
|
|
implementation(libs.ktor.server.netty)
|
|
implementation(libs.ktor.server.config.yaml)
|
|
|
|
testImplementation("org.jetbrains.kotlin:kotlin-test")
|
|
|
|
implementation(project(":onedrive-transfer-remote-common"))
|
|
}
|
|
|
|
tasks.test {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
kotlin {
|
|
jvmToolchain(17)
|
|
}
|
|
|
|
publishing {
|
|
repositories {
|
|
maven("https://git.lamgc.me/api/packages/LamGC/maven") {
|
|
credentials {
|
|
username = project.properties["repo.credentials.self-git.username"].toString()
|
|
password = project.properties["repo.credentials.self-git.password"].toString()
|
|
}
|
|
}
|
|
mavenLocal()
|
|
}
|
|
|
|
publications {
|
|
create<MavenPublication>("maven") {
|
|
from(components["java"])
|
|
|
|
pom {
|
|
name.set("ScalaExt-OneDriveTransfer")
|
|
description.set("将 Telegram 中的文件转存至 OneDrive.")
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|