-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
69 lines (58 loc) · 2 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
import dev.famer.build.CopyResourcesTask
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.7.20"
kotlin("plugin.serialization") version "1.7.20"
id("org.jetbrains.compose") version "1.2.2"
}
group = "dev.famer"
version = "1.0"
repositories {
google()
mavenCentral()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
}
val ktor_version = "2.0.2"
dependencies {
testImplementation(kotlin("test"))
implementation("ch.qos.logback:logback-classic:1.4.5")
implementation("org.slf4j:slf4j-api:2.0.5")
implementation("org.slf4j:jcl-over-slf4j:2.0.5")
implementation(compose.desktop.currentOs)
implementation("org.apache.pdfbox:pdfbox:3.0.0-RC1") {
exclude(group = "commons-logging", module = "commons-logging")
}
implementation("io.ktor:ktor-client-cio:$ktor_version")
implementation("io.ktor:ktor-client-content-negotiation:$ktor_version")
implementation("io.ktor:ktor-serialization-kotlinx-json:$ktor_version")
}
tasks.test {
useJUnitPlatform()
}
tasks.withType<KotlinCompile>() {
kotlinOptions.jvmTarget = "11"
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}
compose.desktop {
application {
mainClass = "MainKt"
jvmArgs += "-Dapp.data=\${LOCALAPPDATA}"
nativeDistributions {
includeAllModules = true
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
packageName = "scissors"
packageVersion = "1.0.8"
appResourcesRootDir.set(project.layout.projectDirectory.dir("resources"))
windows {
shortcut = true
console = false
upgradeUuid = "a99d7179-418d-40de-afed-6c767e2c4632"
iconFile.set(project.layout.projectDirectory.file("src/main/resources/images/scissors.ico"))
}
}
}
}
tasks.register<CopyResourcesTask>("copyResources")