mirror of
https://github.com/gotson/komga.git
synced 2025-12-15 21:12:27 +01:00
56 lines
1.1 KiB
Text
56 lines
1.1 KiB
Text
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
|
|
|
plugins {
|
|
run {
|
|
kotlin("jvm")
|
|
kotlin("plugin.spring")
|
|
}
|
|
alias(libs.plugins.gradleGitProperties)
|
|
id("org.jetbrains.compose") version "1.8.2"
|
|
id("org.jetbrains.kotlin.plugin.compose") version "2.2.0"
|
|
id("dev.hydraulic.conveyor") version "1.12"
|
|
application
|
|
}
|
|
|
|
group = "org.gotson"
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
google()
|
|
}
|
|
|
|
kotlin {
|
|
compilerOptions {
|
|
jvmTarget = JvmTarget.JVM_17
|
|
}
|
|
}
|
|
|
|
tasks {
|
|
withType<JavaCompile> {
|
|
sourceCompatibility = "17"
|
|
targetCompatibility = "17"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation(project(":komga"))
|
|
|
|
implementation(compose.desktop.currentOs)
|
|
implementation(compose.components.resources)
|
|
|
|
linuxAmd64(compose.desktop.linux_x64)
|
|
macAmd64(compose.desktop.macos_x64)
|
|
macAarch64(compose.desktop.macos_arm64)
|
|
windowsAmd64(compose.desktop.windows_x64)
|
|
}
|
|
|
|
application {
|
|
mainClass = "org.gotson.komga.DesktopApplicationKt"
|
|
}
|
|
|
|
// Work around temporary Compose bugs
|
|
configurations.all {
|
|
attributes {
|
|
attribute(Attribute.of("ui", String::class.java), "awt")
|
|
}
|
|
}
|