-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
105 lines (90 loc) · 3.67 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
95
96
97
98
99
100
101
102
103
104
105
plugins {
id("org.jetbrains.kotlin.jvm") version "1.8.0"
id("org.jetbrains.kotlin.kapt") version "1.8.0"
id("org.jetbrains.kotlin.plugin.allopen") version "1.8.0"
id("com.github.johnrengelman.shadow") version "7.1.2"
id("io.micronaut.application") version "3.6.7"
id("com.google.cloud.tools.jib") version "3.3.1"
id("org.sonarqube") version "3.5.0.2730"
jacoco
}
version = "0.5"
group = "com.neutrine.knostr"
val kotlinVersion = project.properties["kotlinVersion"]
repositories {
mavenCentral()
}
dependencies {
kapt("io.micronaut.data:micronaut-data-processor")
kapt("io.micronaut:micronaut-http-validation")
implementation("io.micronaut:micronaut-http-client")
implementation("io.micronaut:micronaut-jackson-databind")
implementation("io.micronaut.kotlin:micronaut-kotlin-runtime")
implementation("io.micronaut.cache:micronaut-cache-caffeine")
implementation("io.micronaut.data:micronaut-data-jdbc")
runtimeOnly("io.micronaut.sql:micronaut-jdbc-hikari") // ?
annotationProcessor("io.micronaut.data:micronaut-data-processor")
runtimeOnly("org.postgresql:postgresql")
implementation("io.micronaut.flyway:micronaut-flyway")
implementation("io.micronaut.tracing:micronaut-tracing-opentelemetry-http")
implementation("io.opentelemetry:opentelemetry-exporter-otlp")
implementation("io.micronaut:micronaut-management")
implementation("io.micronaut.micrometer:micronaut-micrometer-core")
annotationProcessor("io.micronaut.micrometer:micronaut-micrometer-annotation")
annotationProcessor("io.micronaut.tracing:micronaut-tracing-opentelemetry-annotation")
implementation("jakarta.annotation:jakarta.annotation-api")
implementation("jakarta.persistence:jakarta.persistence-api:3.1.0")
implementation("jakarta.annotation:jakarta.annotation-api")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-reactive:1.6.4")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-reactor:1.6.4")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:1.6.4")
implementation("org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion")
implementation("io.github.microutils:kotlin-logging:1.6.22")
implementation("org.apache.logging.log4j:log4j-to-slf4j:2.19.0")
api("net.logstash.logback:logstash-logback-encoder:7.2")
runtimeOnly("ch.qos.logback:logback-classic")
compileOnly("org.graalvm.nativeimage:svm")
implementation("io.micronaut:micronaut-validation")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
testCompileOnly("org.junit.jupiter:junit-jupiter-params:5.9.0")
testImplementation("io.mockk:mockk:1.13.3")
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.6.4")
testImplementation("org.testcontainers:postgresql:1.17.6")
}
application {
mainClass.set("com.neutrine.knostr.ApplicationKt")
}
java {
sourceCompatibility = JavaVersion.toVersion("17")
}
allOpen {
annotations("io.micronaut.aop.Around", "jakarta.inject.Singleton", "io.micronaut.websocket.annotation.ServerWebSocket")
}
tasks {
compileKotlin {
kotlinOptions {
jvmTarget = "17"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "17"
}
}
jacocoTestReport {
reports {
xml.required.set(true)
}
}
}
graalvmNative.toolchainDetection.set(false)
micronaut {
runtime("netty")
testRuntime("junit5")
processing {
incremental(true)
annotations("com.neutrine.knostr.*")
}
}