-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
91 lines (71 loc) · 2.56 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
import org.jetbrains.compose.compose
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.9.20"
id("org.jetbrains.compose") version "1.5.10"
kotlin("plugin.serialization") version "1.6.10"
}
val appVersion : String by project
val exposedVersion : String by project
val h2Version : String by project
val koinVersion : String by project
group = "me.conha"
version = version
repositories {
google()
mavenCentral()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
}
dependencies {
testImplementation("org.junit.jupiter:junit-jupiter:5.9.2")
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.7.3")
implementation(compose.desktop.currentOs)
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.0")
testImplementation ("org.mockito.kotlin:mockito-kotlin:4.0.0")
// local storage - database
implementation("com.h2database:h2:$h2Version")
// local storage - orm
implementation("org.jetbrains.exposed:exposed-core:$exposedVersion")
implementation("org.jetbrains.exposed:exposed-dao:$exposedVersion")
implementation("org.jetbrains.exposed:exposed-jdbc:$exposedVersion")
implementation("org.jetbrains.exposed:exposed-java-time:$exposedVersion")
// Koin Core features
implementation("io.insert-koin:koin-core:$koinVersion")
// Koin Test features
testImplementation("io.insert-koin:koin-test:$koinVersion")
testImplementation("io.insert-koin:koin-test-junit5:$koinVersion")
// Jetpack Compose
//implementation("io.insert-koin:koin-androidx-compose:$koinVersion")
// logger
implementation("org.slf4j:slf4j-simple:2.0.5")
implementation("io.github.microutils:kotlin-logging-jvm:3.0.5")
}
tasks.test {
useJUnitPlatform()
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "17"
}
compose.desktop {
application {
mainClass = "MainKt"
nativeDistributions {
// runtime modules
modules(
"java.instrument",
"java.net.http",
"java.sql",
"jdk.unsupported"
)
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
// Distributable info
packageName = "Monster Lookup"
packageVersion = appVersion
description = "App for all your DnD monster look up needs!"
windows {
menuGroup = "Monster Lookup"
}
}
}
}