-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
49 lines (42 loc) · 1.18 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
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
import org.jetbrains.compose.jetbrainsCompose
plugins {
kotlin("jvm")
id("org.jetbrains.compose")
id("org.openjfx.javafxplugin")
}
group = "zicheng"
version = "1.0-SNAPSHOT"
repositories {
google()
mavenCentral()
jetbrainsCompose()
}
dependencies {
implementation(project(":library"))
}
kotlin {
// See https://kotlinlang.org/docs/gradle-configure-project.html#gradle-java-toolchains-support
// and https://docs.gradle.org/current/userguide/toolchains.html
jvmToolchain {
languageVersion.set(JavaLanguageVersion.of("17"))
// vendor.set(JvmVendorSpec.ORACLE)
}
}
tasks.wrapper {
distributionType = Wrapper.DistributionType.ALL
gradleVersion = properties["gradle.version"] as String
}
compose.desktop {
application {
mainClass = "MainKt"
nativeDistributions {
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
packageName = "compose-video-player"
packageVersion = "1.0.0"
buildTypes.release.proguard {
configurationFiles.from("rules.pro")
}
}
}
}