-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
58 lines (47 loc) · 1.4 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
58 lines (47 loc) · 1.4 KB
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
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "2.3.10"
id("com.google.devtools.ksp").version("2.3.5")
}
val konvertVersion = "0.1.0-SNAPSHOT"
val jUnitVersion = "6.0.2"
dependencies {
implementation(kotlin("stdlib-jdk8"))
implementation("io.mcarle:konvert-api:$konvertVersion")
implementation("io.mcarle:konvert-spring-annotations:$konvertVersion")
testImplementation("org.junit.jupiter:junit-jupiter-api:$jUnitVersion")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:$jUnitVersion")
testRuntimeOnly("org.junit.platform:junit-platform-launcher:$jUnitVersion")
// KSP to generate mapping code
ksp("io.mcarle:konvert:$konvertVersion")
ksp("io.mcarle:konvert-spring-injector:$konvertVersion")
}
repositories {
mavenLocal()
mavenCentral()
}
tasks.test {
useJUnitPlatform()
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlin {
sourceSets.main {
kotlin.srcDir("build/generated/ksp/main/kotlin")
}
sourceSets.test {
kotlin.srcDir("build/generated/ksp/test/kotlin")
}
}
tasks.withType<KotlinCompile>().configureEach {
compilerOptions {
jvmTarget = JvmTarget.JVM_17
javaParameters = true
}
}
ksp {
arg("konvert.konverter.generate-class", "true")
}