-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
85 lines (76 loc) · 2.79 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
plugins {
kotlin("multiplatform")
id("org.jetbrains.compose")
}
group = "it.meta.term"
version = libs.versions.appVersion.get()
repositories {
google()
mavenCentral()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
}
kotlin {
jvm {
jvmToolchain(11)
withJava()
}
sourceSets {
val jvmMain by getting {
dependencies {
implementation(compose.desktop.currentOs)
implementation(compose.materialIconsExtended)
implementation(compose.foundation)
implementation(compose.animation)
implementation(libs.koin)
implementation(libs.decompose)
implementation(libs.decompose.extensions)
implementation(projects.coreCommon)
implementation(projects.coreData)
implementation(projects.coreLocalization)
implementation(projects.corePersistence)
implementation(projects.coreRepository)
implementation(projects.featureBase)
implementation(projects.featureBase.intro)
implementation(projects.featureBase.main)
implementation(projects.featureBase.dialog.settings)
implementation(projects.featureTerms)
implementation(projects.featureTermbases)
implementation(projects.featureTermbases.dialog.create)
implementation(projects.featureTermbases.dialog.edit)
implementation(projects.featureTermbases.dialog.management)
implementation(projects.featureTermbases.dialog.statistics)
}
}
val jvmTest by getting {
dependencies {
implementation(projects.coreCommon.tests)
implementation(projects.coreLocalization.tests)
implementation(projects.corePersistence.tests)
implementation(projects.coreRepository.tests)
}
}
}
}
compose.desktop {
application {
mainClass = "MainKt"
nativeDistributions {
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
packageName = "MetaTerm"
packageVersion = libs.versions.appVersion.get().substring(0, 5)
version = libs.versions.buildNumber.get()
includeAllModules = true
macOS {
iconFile.set(project.file("res/icon.icns"))
setDockNameSameAsPackageName = true
}
windows {
iconFile.set(project.file("res/icon.ico"))
}
linux {
iconFile.set(project.file("res/icon.png"))
}
}
}
}