This repository has been archived by the owner on Nov 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
129 lines (105 loc) · 3.5 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
import org.jetbrains.compose.compose
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
plugins {
kotlin("multiplatform") version "1.5.10"
kotlin("plugin.serialization") version "1.5.10"
id("org.jetbrains.compose") version "0.5.0-build224"
id("org.jlleitschuh.gradle.ktlint") version "10.3.0"
id("com.adarshr.test-logger") version "3.2.0"
id("net.rdrei.android.buildtimetracker") version "0.11.0"
}
group = "blue.starry"
version = "1.0"
allprojects {
repositories {
mavenCentral()
maven(url = "https://maven.pkg.jetbrains.space/public/p/compose/dev")
}
}
kotlin {
jvm("desktop")
sourceSets {
named("commonMain") {
dependencies {
api(compose.runtime)
api(compose.foundation)
api(compose.material)
api(project(":modules:api"))
api(project(":modules:player-component"))
api(project(":modules:ui-components"))
implementation("io.ktor:ktor-client:1.6.8")
implementation("io.ktor:ktor-client-serialization:1.6.8")
implementation("io.ktor:ktor-client-logging:1.6.8")
implementation("io.github.microutils:kotlin-logging:2.1.23")
}
}
named("desktopMain") {
dependencies {
implementation(compose.desktop.currentOs)
implementation("com.charleskorn.kaml:kaml:0.48.0")
implementation("io.ktor:ktor-client-cio:1.6.8")
implementation("ch.qos.logback:logback-core:1.4.1")
implementation("ch.qos.logback:logback-classic:1.4.1")
implementation("org.fusesource.jansi:jansi:2.4.0")
}
}
named("desktopTest") {
dependencies {
implementation(kotlin("test"))
}
}
}
sourceSets.all {
languageSettings.useExperimentalAnnotation("kotlin.RequiresOptIn")
}
}
tasks.withType<Test> {
useTestNG()
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions.jvmTarget = "16"
}
ktlint {
verbose.set(true)
outputToConsole.set(true)
reporters {
reporter(org.jlleitschuh.gradle.ktlint.reporter.ReporterType.CHECKSTYLE)
}
}
buildtimetracker {
reporters {
register("summary") {
options["ordered"] = "true"
options["barstyle"] = "ascii"
options["shortenTaskNames"] = "false"
}
}
}
compose.desktop {
application {
mainClass = "blue.starry.teleskope.MainKt"
javaHome = System.getenv("JDK_16")
nativeDistributions {
targetFormats(TargetFormat.Exe, TargetFormat.Dmg, TargetFormat.Deb)
packageName = "Teleskope"
packageVersion = "1.0.0"
description = "Universal Mirakurun & EPGStation Desktop Client"
copyright = "(c) 2021 starry.blue. All rights reserved."
includeAllModules = true
windows {
dirChooser = true
perUserInstall = true
menu = true
menuGroup = "Teleskope"
// see https://wixtoolset.org/documentation/manual/v3/howtos/general/generate_guids.html
upgradeUuid = "6FAB797B-E8AE-4958-ACF0-E099A298C70A"
}
macOS {
bundleID = "blue.starry.teleskope"
}
linux {
menuGroup = "Teleskope"
}
}
}
}