-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
73 lines (68 loc) · 2.36 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
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
plugins {
kotlin("multiplatform")
id("org.jetbrains.compose")
kotlin("plugin.serialization") version "1.7.20"
}
group = "com.helium"
version = "1.0.0-alpha"
repositories {
google()
mavenCentral()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
maven("https://jitpack.io")
}
configurations {
all {
exclude(group = "org.jetbrains.compose.material", module = "material")
}
}
kotlin {
jvm {
compilations.all {
kotlinOptions.jvmTarget = "11"
}
withJava()
}
sourceSets {
val jvmMain by getting {
dependencies {
val lwjglVersion = "3.3.1"
implementation(compose.desktop.currentOs)
@OptIn(org.jetbrains.compose.ExperimentalComposeLibrary::class)
implementation(compose.material3)
@OptIn(org.jetbrains.compose.ExperimentalComposeLibrary::class)
implementation(compose.desktop.components.splitPane)
implementation("com.github.Qawaz.compose-code-editor:codeeditor-desktop:3.0.5")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.1")
listOf("lwjgl", "lwjgl-nfd").forEach { lwjglDep ->
implementation("org.lwjgl:${lwjglDep}:${lwjglVersion}")
listOf(
"natives-windows", "natives-windows-x86", "natives-windows-arm64",
"natives-macos", "natives-macos-arm64",
"natives-linux", "natives-linux-arm64", "natives-linux-arm32"
).forEach { native ->
runtimeOnly("org.lwjgl:${lwjglDep}:${lwjglVersion}:${native}")
}
}
sourceSets["jvmMain"].apply {
kotlin.srcDir("$rootDir/src/jvmMain/kotlin")
}
}
}
val jvmTest by getting
}
}
compose.desktop {
application {
mainClass = "MainKt"
buildTypes.release.proguard {
configurationFiles.from("rules.pro")
}
nativeDistributions {
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
packageName = "helium"
packageVersion = "1.0.0"
}
}
}