-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
99 lines (82 loc) · 2.75 KB
/
build.gradle
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
import org.asciidoctor.gradle.base.process.ProcessMode
plugins {
id("com.github.johnrengelman.shadow") version "8.1.1"
id("io.micronaut.application") version "4.0.0"
id("io.micronaut.aot") version "4.0.0"
id("org.asciidoctor.jvm.convert") version "3.3.2"
}
group = 'com.senderman'
version = '3.10.5'
apply from: "gradle/asciidoc.gradle"
asciidoctor {
inProcess = ProcessMode.JAVA_EXEC
forkOptions {
jvmArgs("--add-opens", "java.base/sun.nio.ch=ALL-UNNAMED", "--add-opens", "java.base/java.io=ALL-UNNAMED")
}
sourceDir = 'src/docs/asciidoc'
outputDir = "build/classes/java/main/META-INF/docs"
resources {
from('src/docs') {
include 'css/**'
include 'fonts/**'
}
}
}
repositories {
mavenCentral()
}
dependencies {
annotationProcessor('io.micronaut:micronaut-http-validation')
annotationProcessor('io.micronaut.serde:micronaut-serde-processor')
implementation('io.micronaut.serde:micronaut-serde-jackson')
annotationProcessor('io.micronaut.micrometer:micronaut-micrometer-annotation')
implementation('io.micronaut:micronaut-management')
implementation('io.micronaut.micrometer:micronaut-micrometer-core')
implementation('io.micronaut.micrometer:micronaut-micrometer-registry-prometheus')
implementation('jakarta.annotation:jakarta.annotation-api')
implementation('org.yaml:snakeyaml:2.0')
implementation('org.kamranzafar:jtar:2.3')
implementation('ch.qos.logback:logback-classic')
compileOnly('com.google.code.findbugs:jsr305')
annotationProcessor("io.micronaut.openapi:micronaut-openapi")
compileOnly("io.swagger.core.v3:swagger-annotations")
}
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
dependsOn(asciidoctor)
}
// set version in application.yml during build
processResources {
def props = [version: version]
inputs.properties props
filteringCharset 'UTF-8'
filesMatching('application.yml') {
expand props
}
}
application {
mainClass.set("com.senderman.jlogrep.JLogRep")
}
java {
sourceCompatibility = JavaVersion.toVersion("17")
targetCompatibility = JavaVersion.toVersion("17")
}
graalvmNative.toolchainDetection = false
micronaut {
runtime("netty")
processing {
incremental(true)
annotations("com.senderman.jlogrep.*")
}
aot {
// Please review carefully the optimizations enabled below
// Check https://micronaut-projects.github.io/micronaut-aot/latest/guide/ for more details
optimizeServiceLoading = true
convertYamlToJava = true
precomputeOperations = true
cacheEnvironment = true
optimizeClassLoading = true
deduceEnvironment = false
optimizeNetty = true
}
}