-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
63 lines (50 loc) · 1.8 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
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
plugins {
kotlin("jvm")
kotlin("plugin.serialization") version "1.9.0"
id("org.jetbrains.compose") version("1.6.1")
id("com.github.johnrengelman.shadow") version "7.1.2"
}
group = "net.solvetheriddle.cardgame"
version = project.properties["applicationVersion"] as String
compose.desktop {
application {
mainClass = "DesktopAppKt"
nativeDistributions {
targetFormats(TargetFormat.Dmg, TargetFormat.Msi)
packageName = "simple-card-game"
packageVersion = project.properties["applicationVersion"] as String
// icon("src/main/resources/icon.png") // Not supported by Compose yet
}
}
}
tasks.shadowJar {
manifest {
attributes["Main-Class"] = "DesktopAppKt"
}
}
apply(from = "gradle/customTasks.gradle.kts")
repositories {
mavenCentral()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
google()
}
dependencies {
implementation(project(":engine"))
// Note, if you develop a library, you should use compose.desktop.common.
// compose.desktop.currentOs should be used in launcher-sourceSet
// (in a separate module for demo project and in testMain).
// With compose.desktop.common you will also lose @Preview functionality
implementation(compose.desktop.currentOs)
implementation(compose.material3)
// Koin
val koinVersion = "3.5.3"
implementation(platform("io.insert-koin:koin-bom:$koinVersion"))
implementation("io.insert-koin:koin-core")
// Firebase
implementation("dev.gitlive:firebase-database:1.13.0")
// Serialization
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.1")
// Test
testImplementation("org.jetbrains.kotlin:kotlin-test")
}