-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
94 lines (73 loc) · 2.12 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.8.20"
id("io.spring.dependency-management") version "1.1.0"
id("org.openjfx.javafxplugin") version "0.0.9"
id("com.google.devtools.ksp") version "1.8.20-1.0.10"
application
}
group = "com.deotime.dekotpiler"
version = "1.0.0"
repositories {
mavenCentral()
mavenLocal()
maven("https://repo.q64.io/deotime")
}
javafx {
version = "19"
modules = listOf("javafx.controls")
}
dependencies {
// cli
implementation("com.github.ajalt.clikt:clikt:3.5.0")
// coroutines
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
// cfr
implementation("org.benf:cfr-kt:0.153-SNAPSHOT")
// asm
implementation("org.ow2.asm:asm:9.4")
// metadata
implementation("org.jetbrains.kotlinx:kotlinx-metadata-jvm:0.6.0")
// ui (temp??)
implementation("org.openjfx:javafx-base:19")
// kpoet
implementation("com.squareup:kotlinpoet:1.12.0")
// reflection
implementation("org.jetbrains.kotlin:kotlin-reflect:1.8.20-Beta")
// vision
implementation("com.deotime:vision:1.0.5")
// kpoetdsl
val kotlinPoetDslVersion = "2.0.6"
implementation("me.deotime:kotlin-poet-dsl-dsl:$kotlinPoetDslVersion")
implementation("me.deotime:kotlin-poet-dsl-metadata:$kotlinPoetDslVersion")
// di
implementation("io.insert-koin:koin-core:3.4.0")
implementation("io.insert-koin:koin-annotations:1.2.0")
ksp("io.insert-koin:koin-ksp-compiler:1.2.0")
}
tasks.test {
useJUnitPlatform()
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
kotlinOptions.languageVersion = "1.9"
kotlinOptions.freeCompilerArgs = listOf(
"-Xskip-prerelease-check",
// "-Xuse-k2",
"-Xuse-experimental",
"-XXLanguage:+EnumEntries",
"-Xcontext-receivers"
)
}
tasks.withType<Jar> {
manifest {
attributes["Main-Class"] = "com.deotime.dekotpiler.Main"
}
}
sourceSets.main {
java.srcDirs("build/generated/ksp/main")
}
application {
mainClass.set("MainKt")
applicationName = "dekotpiler"
}