-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathbuild.gradle.kts
85 lines (72 loc) · 2.17 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
group = "jp.kaleidot725"
version = "2.3.0"
plugins {
kotlin("jvm")
kotlin("plugin.serialization")
id("org.jetbrains.kotlin.plugin.compose")
id("org.jetbrains.compose")
id("org.jlleitschuh.gradle.ktlint")
id("com.mikepenz.aboutlibraries.plugin")
}
repositories {
google()
mavenCentral()
maven("https://jitpack.io")
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
}
dependencies {
implementation(compose.desktop.currentOs)
implementation(compose.material)
implementation(compose.materialIconsExtended)
implementation(libs.kotlin.coroutines)
implementation(libs.turtle)
implementation(libs.koin)
implementation(libs.kotlin.serialization)
implementation(libs.adam)
implementation(libs.jSystemThemeDetector)
implementation(libs.aboutlibraries.core)
implementation(libs.aboutlibraries.compose)
implementation(libs.napier)
implementation("io.github.vinceglb:filekit-core:0.8.2")
implementation("io.github.vinceglb:filekit-compose:0.8.2")
testImplementation(libs.junit)
testImplementation(libs.mockk)
testImplementation(libs.kotest)
}
tasks.test {
useJUnitPlatform()
}
configure<org.jlleitschuh.gradle.ktlint.KtlintExtension> {
reporters {
reporter(org.jlleitschuh.gradle.ktlint.reporter.ReporterType.CHECKSTYLE)
}
}
kotlin {
jvmToolchain(jdkVersion = 17)
}
compose.desktop {
application {
mainClass = "ScrcpyHubKt"
nativeDistributions {
packageName = "ScrcpyHub"
modules("jdk.management")
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
macOS {
bundleID = "jp.kaleidot725.scrcpyhub"
iconFile.set(project.file("icon.icns"))
entitlementsFile.set(project.file("default.entitlements"))
}
windows {
iconFile.set(project.file("icon.ico"))
}
linux {
iconFile.set(project.file("icon.ico"))
}
}
}
}
aboutLibraries {
registerAndroidTasks = false
prettyPrint = true
}