-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle.kts
63 lines (55 loc) · 1.52 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
plugins {
id("io.micronaut.application") version "3.7.5"
id("io.micronaut.test-resources") version "3.7.5"
id("io.micronaut.aot") version "3.7.5"
}
version = "0.1"
group = "demo"
repositories {
mavenCentral()
}
dependencies {
annotationProcessor(mn.micronaut.http.validation)
annotationProcessor(mn.micronaut.data.processor)
implementation(mn.micronaut.http.client)
implementation(mn.micronaut.jackson.databind)
implementation(mn.micronaut.runtime)
implementation(mn.jakarta.annotation.api)
implementation(mn.micronaut.validation)
implementation(mn.micronaut.data.jdbc)
implementation(mn.micronaut.jdbc.hikari)
runtimeOnly(mn.logback)
runtimeOnly(mn.mysql.connector.java)
// runtimeOnly(mn.postgresql)
// Dependencies required for Micronaut AOT
// aotPlugins(mn.logback) {
// version {
// require "1.3.0-alpha14"
// }
// }
// aotPlugins(libs.jansi)
}
application {
mainClass.set("demo.Application")
}
java {
sourceCompatibility = JavaVersion.toVersion("17")
targetCompatibility = JavaVersion.toVersion("17")
}
graalvmNative.toolchainDetection.set(false)
micronaut {
runtime("netty")
testRuntime("junit5")
processing {
incremental(true)
annotations("demo.*")
}
aot {
cacheEnvironment.set(true)
optimizeServiceLoading.set(true)
optimizeClassLoading.set(true)
convertYamlToJava.set(true)
precomputeOperations.set(true)
deduceEnvironment.set(true)
}
}