This repository has been archived by the owner on May 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
55 lines (48 loc) · 1.78 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
// plugins -----------------------
plugins {
id("org.jetbrains.kotlin.jvm") version "1.9.23"
id("org.jetbrains.kotlin.plugin.allopen") version "1.9.23"
id("com.google.devtools.ksp") version "1.9.23-1.0.19"
id("groovy")
id("com.github.johnrengelman.shadow") version "8.1.1"
id("io.micronaut.application") version "4.3.5"
}
// repos --------------------------
repositories {
mavenCentral()
}
// properties --------------------
version = "0.0.1"
group = "com.graqr"
var jdkVersion = "17"
var threshrVersion = "0.0.12"
val kotlinVersion = project.properties["kotlinVersion"]
//dependencies --------------------
dependencies {
ksp("io.micronaut:micronaut-http-validation")
ksp("io.micronaut.serde:micronaut-serde-processor")
implementation("io.micronaut.kotlin:micronaut-kotlin-runtime")
implementation("io.micronaut.serde:micronaut-serde-jackson")
implementation("org.jetbrains.kotlin:kotlin-reflect:${kotlinVersion}")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:${kotlinVersion}")
implementation("com.graqr:threshr:${threshrVersion}") {
exclude(group = "org.apache.maven.reporting", module = "maven-reporting-api")
}
compileOnly("io.micronaut:micronaut-http-client")
runtimeOnly("ch.qos.logback:logback-classic")
runtimeOnly("org.yaml:snakeyaml")
runtimeOnly("com.fasterxml.jackson.module:jackson-module-kotlin")
testImplementation("io.micronaut:micronaut-http-client")
}
// configuration -----------------
application { mainClass.set("com.graqr.ApplicationKt") }
java { sourceCompatibility = JavaVersion.toVersion(jdkVersion) }
graalvmNative.toolchainDetection.set(false)
micronaut {
runtime("netty")
testRuntime("spock2")
processing {
incremental(true)
annotations("com.graqr.*")
}
}