feat: bootstrap MusicManager with scanner and Subsonic auth
- Gradle/Kotlin/Ktor project on JVM 21 with ShadowJar - SQLite WAL, Flyway migrations and config-driven users/folders - deterministic IDs, MP3 tag extraction, cover cache and delta scanner - OpenSubsonic JSON envelope with token/password authentication - system endpoints: ping, license, extensions, scan status
This commit is contained in:
1 parent
961341b449
commit
e194badefb
45 files changed
+4079
-126
No files matched your search
@@ -0,0 +1,81 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
|
||||
plugins {
|
||||
kotlin("jvm") version "2.1.20"
|
||||
kotlin("plugin.serialization") version "2.1.20"
|
||||
application
|
||||
id("com.gradleup.shadow") version "8.3.6"
|
||||
}
|
||||
|
||||
group = "win.taptap"
|
||||
version = "0.1.0"
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
kotlin {
|
||||
jvmToolchain(21)
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_21)
|
||||
}
|
||||
}
|
||||
|
||||
application {
|
||||
mainClass.set("win.taptap.musicmanager.ApplicationKt")
|
||||
}
|
||||
|
||||
dependencies {
|
||||
// Ktor
|
||||
implementation("io.ktor:ktor-server-core-jvm:3.1.2")
|
||||
implementation("io.ktor:ktor-server-netty-jvm:3.1.2")
|
||||
implementation("io.ktor:ktor-server-content-negotiation-jvm:3.1.2")
|
||||
implementation("io.ktor:ktor-serialization-kotlinx-json-jvm:3.1.2")
|
||||
implementation("io.ktor:ktor-server-partial-content-jvm:3.1.2")
|
||||
implementation("io.ktor:ktor-server-status-pages-jvm:3.1.2")
|
||||
implementation("io.ktor:ktor-server-call-logging-jvm:3.1.2")
|
||||
implementation("io.ktor:ktor-server-auto-head-response-jvm:3.1.2")
|
||||
|
||||
// Database
|
||||
implementation("org.jetbrains.exposed:exposed-core:0.60.0")
|
||||
implementation("org.jetbrains.exposed:exposed-jdbc:0.60.0")
|
||||
implementation("org.jetbrains.exposed:exposed-java-time:0.60.0")
|
||||
implementation("org.xerial:sqlite-jdbc:3.49.1.0")
|
||||
implementation("com.zaxxer:HikariCP:6.2.1")
|
||||
implementation("org.flywaydb:flyway-core:11.8.2")
|
||||
|
||||
// Media
|
||||
implementation("net.jthink:jaudiotagger:3.0.1")
|
||||
implementation("net.coobird:thumbnailator:0.4.20")
|
||||
|
||||
// Config & logging
|
||||
implementation("org.yaml:snakeyaml:2.7")
|
||||
implementation("ch.qos.logback:logback-classic:1.5.17")
|
||||
implementation("io.github.oshai:kotlin-logging-jvm:7.0.0")
|
||||
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.10.1")
|
||||
|
||||
// Tests
|
||||
testImplementation("io.ktor:ktor-server-test-host-jvm:3.1.2")
|
||||
testImplementation(kotlin("test-junit5"))
|
||||
testImplementation("org.junit.jupiter:junit-jupiter:5.11.4")
|
||||
}
|
||||
|
||||
tasks.test {
|
||||
useJUnitPlatform()
|
||||
testLogging {
|
||||
events("passed", "skipped", "failed")
|
||||
}
|
||||
}
|
||||
|
||||
tasks.withType<JavaCompile>().configureEach {
|
||||
options.encoding = "UTF-8"
|
||||
}
|
||||
|
||||
tasks.shadowJar {
|
||||
archiveClassifier.set("all")
|
||||
mergeServiceFiles()
|
||||
}
|
||||
|
||||
tasks.build {
|
||||
dependsOn(tasks.shadowJar)
|
||||
}
|
||||
Reference in new issue
Block a user