-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
69 lines (55 loc) · 1.51 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
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm")
alias(libs.plugins.compose)
alias(libs.plugins.kotlin.serialization)
}
group = "com.github.purofle"
version = "1.0"
repositories {
mavenCentral()
maven { url = uri("https://maven.pkg.jetbrains.space/public/p/compose/dev") }
google()
}
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath(libs.proguard.plugin)
}
}
kotlin {
jvmToolchain(17)
}
dependencies {
implementation(libs.log4j.api)
implementation(libs.log4j.core)
testImplementation(kotlin("test"))
implementation(compose.desktop.currentOs)
implementation(compose.material3)
implementation(compose.materialIconsExtended)
implementation(project(":library"))
implementation(project(":NMSLCore"))
}
tasks.test {
useJUnit()
}
tasks.withType<KotlinCompile>().configureEach {
kotlinOptions.freeCompilerArgs += "-opt-in=kotlin.RequiresOptIn"
}
compose.desktop {
application {
mainClass = "com.github.purofle.nmsl.MainKt"
nativeDistributions {
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
packageName = "NMSLauncher"
packageVersion = "1.0.0"
copyright = "Copyright (C) Purofle 2023-2023"
}
buildTypes.release.proguard {
configurationFiles.from(project.file("compose-desktop.pro"))
}
}
}