forked from michelin/ns4kafka
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
113 lines (93 loc) · 2.92 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
100
101
102
103
104
105
106
107
108
109
110
111
112
plugins {
id("com.github.johnrengelman.shadow") version "7.1.2"
id("io.micronaut.application") version "3.7.0"
id("jacoco")
id("org.sonarqube") version "3.5.0.2730"
id("pl.allegro.tech.build.axion-release") version "1.14.3"
}
version = scmVersion.version
group = "com.michelin.ns4kafka"
repositories {
mavenCentral()
}
dependencies {
annotationProcessor("org.projectlombok:lombok")
annotationProcessor("io.micronaut:micronaut-http-validation")
annotationProcessor("io.micronaut.openapi:micronaut-openapi")
annotationProcessor("io.micronaut.security:micronaut-security-annotations")
implementation("io.micronaut:micronaut-http-client")
implementation("io.micronaut:micronaut-jackson-databind")
implementation("io.micronaut.kafka:micronaut-kafka")
implementation("io.micronaut.security:micronaut-security")
implementation("io.micronaut.security:micronaut-security-jwt")
implementation("io.micronaut.security:micronaut-security-ldap")
implementation("io.swagger.core.v3:swagger-annotations")
implementation("jakarta.annotation:jakarta.annotation-api")
implementation("io.micronaut.rxjava3:micronaut-rxjava3")
implementation("io.micronaut.rxjava3:micronaut-rxjava3-http-client")
implementation("io.micronaut.openapi:micronaut-openapi")
compileOnly("org.projectlombok:lombok")
runtimeOnly("ch.qos.logback:logback-classic")
testImplementation("org.mockito:mockito-core")
testImplementation("org.testcontainers:junit-jupiter")
testImplementation("org.testcontainers:testcontainers")
testImplementation("org.testcontainers:kafka") {
version {
strictly '1.15.3'
}
}
testImplementation("org.mockito:mockito-junit-jupiter:4.11.0")
testAnnotationProcessor("org.projectlombok:lombok")
testCompileOnly("org.projectlombok:lombok")
}
application {
mainClass.set("com.michelin.ns4kafka.Application")
}
java {
sourceCompatibility = JavaVersion.toVersion('17')
targetCompatibility = JavaVersion.toVersion('17')
}
run {
//environment("MICRONAUT_ENVIRONMENTS","dev")
}
micronaut {
runtime("netty")
testRuntime("junit5")
processing {
incremental(true)
annotations("com.michelin.ns4kafka.*")
}
}
shadowJar {
archiveClassifier.set('')
dependsOn(distTar, distZip)
}
dockerfile {
baseImage = "eclipse-temurin:17-jre-alpine"
}
dockerBuild {
images = ["michelin/ns4kafka:" + version]
}
tasks.withType(JavaCompile) {
options.fork = true
options.forkOptions.jvmArgs << '-Dmicronaut.openapi.views.spec=rapidoc.enabled=true'
}
sonarqube {
properties {
property "sonar.projectKey", "michelin_ns4kafka"
property "sonar.organization", "michelin"
property "sonar.host.url", "https://sonarcloud.io"
}
}
jacocoTestReport {
dependsOn test
reports {
html.enabled true
xml.enabled true
}
}
test {
reports {
html.enabled false
}
}