-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.gradle.kts
49 lines (45 loc) · 1.55 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
plugins {
kotlin("jvm") version "1.9.0"
id("org.jetbrains.compose") version "1.5.0"
}
dependencies {
// Note, if you develop a library, you should use compose.desktop.common.
// compose.desktop.currentOs should be used in launcher-sourceSet
// (in a separate module for demo project and in testMain).
// With compose.desktop.common you will also lose @Preview functionality
implementation(compose.desktop.currentOs)
implementation(compose.runtime)
implementation(compose.foundation)
implementation(compose.material)
// Add the org.json library for handling JSON data
implementation("org.json:json:20210307")
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
compose.desktop {
application {
mainClass = "MainKt"
nativeDistributions {
macOS {
iconFile.set(project.file("translate.icns"))
}
windows {
iconFile.set(project.file("translate.ico"))
}
linux {
iconFile.set(project.file("translate.png"))
}
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
packageName = "com.coding.meet.translate"
description = "String Translator Desktop App"
vendor = "Meet"
version = "1.0.0"
licenseFile.set(project.file("LICENSE"))
outputBaseDir.set(project.rootDir.resolve("customOutputDir"))
}
}
}