forked from JetBrains/jewel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
58 lines (50 loc) · 1.75 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
@file:Suppress("UnstableApiUsage")
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
plugins {
jewel
alias(libs.plugins.composeDesktop)
}
dependencies {
implementation(libs.kotlin.reflect)
implementation(libs.filePicker)
implementation(projects.intUi.intUiStandalone)
implementation(projects.intUi.intUiDecoratedWindow)
implementation(projects.markdown.intUiStandaloneStyling)
implementation(projects.markdown.extension.gfmAlerts)
implementation(projects.markdown.extension.autolink)
implementation(compose.desktop.currentOs) {
exclude(group = "org.jetbrains.compose.material")
}
}
compose.desktop {
application {
mainClass = "org.jetbrains.jewel.samples.standalone.MainKt"
jvmArgs("-Dorg.jetbrains.jewel.debug=true")
nativeDistributions {
targetFormats(TargetFormat.Dmg)
packageName = "Jewel Sample"
packageVersion = "1.0"
description = "Jewel Sample Application"
vendor = "JetBrains"
licenseFile = rootProject.file("LICENSE")
macOS {
dockName = "Jewel Sample"
bundleID = "org.jetbrains.jewel.sample.standalone"
iconFile = file("icons/jewel.icns")
}
}
}
}
tasks {
withType<JavaExec> {
// afterEvaluate is needed because the Compose Gradle Plugin
// register the task in the afterEvaluate block
afterEvaluate {
javaLauncher = project.javaToolchains.launcherFor {
languageVersion = JavaLanguageVersion.of(17)
vendor = JvmVendorSpec.JETBRAINS
}
setExecutable(javaLauncher.map { it.executablePath.asFile.absolutePath }.get())
}
}
}