-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
64 lines (53 loc) · 2.38 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
plugins {
kotlin("jvm") version "1.5.31"
id("org.jetbrains.compose") version "1.0.0-beta5"
}
group = "szewek.craftery"
val asmVersion = "9.2"
val jacksonVersion = "2.13.0"
val composeVersion = "1.0.0-beta5"
val desktoposeVersion = "0.3.0"
repositories {
mavenCentral()
maven { url = uri("https://maven.pkg.jetbrains.space/public/p/compose/dev") }
maven { url = uri("https://jitpack.io") }
google()
}
java.toolchain.languageVersion.set(JavaLanguageVersion.of(16))
compose.desktop {
application {
mainClass = "szeweq.craftery.Craftery"
nativeDistributions {
targetFormats(TargetFormat.Dmg, TargetFormat.Exe, TargetFormat.Deb)
packageName = "craftery"
}
}
}
dependencies {
implementation(compose.desktop.currentOs)
implementation("com.github.szeweq.desktopose:core:$desktoposeVersion")
implementation("com.github.szeweq.desktopose:hover:$desktoposeVersion")
implementation("com.github.szeweq.desktopose:combo-box:$desktoposeVersion")
implementation("com.github.szeweq.desktopose:progress:$desktoposeVersion")
implementation("com.fasterxml.jackson.core:jackson-core:$jacksonVersion")
implementation("com.fasterxml.jackson.core:jackson-databind:$jacksonVersion")
implementation("com.fasterxml.jackson.core:jackson-annotations:$jacksonVersion")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:$jacksonVersion")
implementation("org.jetbrains.compose.material:material-icons-extended-desktop:$composeVersion")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:1.5.2")
implementation("org.jetbrains.kotlin:kotlin-reflect:1.5.31")
implementation("com.electronwill.night-config:toml:3.6.4")
implementation("org.ow2.asm:asm:$asmVersion")
implementation("org.ow2.asm:asm-tree:$asmVersion")
implementation("org.ow2.asm:asm-analysis:$asmVersion")
implementation("org.ow2.asm:asm-commons:$asmVersion")
implementation("org.ow2.asm:asm-util:$asmVersion")
testImplementation(kotlin("test-junit"))
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "16"
kotlinOptions.freeCompilerArgs = listOf("-Xopt-in=kotlin.RequiresOptIn", "-Xlambdas=indy")
}