This repository has been archived by the owner on Jun 14, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
79 lines (70 loc) · 2.33 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
plugins {
id "com.github.johnrengelman.shadow" version "6.0.0"
id "io.micronaut.application" version '1.0.5'
id 'jacoco'
id "org.sonarqube" version "3.1.1"
}
sonarqube {
properties {
property "sonar.projectKey", "twobeeb_kafka-namespaces-service"
property "sonar.organization", "twobeeb"
property "sonar.host.url", "https://sonarcloud.io"
}
}
version "0.1"
group "com.michelin.ns4kafka"
repositories {
mavenCentral()
jcenter()
}
dockerBuild {
images = ["twobeeb/ns4kafka:dev"]
}
micronaut {
runtime "netty"
testRuntime "junit5"
processing {
incremental true
annotations "com.michelin.ns4kafka.*"
}
}
dependencies {
compileOnly 'org.projectlombok:lombok:1.18.16'
annotationProcessor 'org.projectlombok:lombok:1.18.16'
annotationProcessor("io.micronaut.openapi:micronaut-openapi")
annotationProcessor("io.micronaut.security:micronaut-security-annotations")
implementation("io.micronaut:micronaut-validation")
implementation("io.micronaut:micronaut-runtime")
implementation("javax.annotation:javax.annotation-api")
implementation("io.micronaut:micronaut-http-client")
implementation("io.swagger.core.v3:swagger-annotations")
implementation("io.micronaut.security:micronaut-security")
implementation("io.micronaut.security:micronaut-security-jwt")
implementation("io.micronaut.kafka:micronaut-kafka")
runtimeOnly("ch.qos.logback:logback-classic")
testCompileOnly 'org.projectlombok:lombok:1.18.16'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.16'
testImplementation 'org.apache.kafka:kafka-clients:2.6.0:test'
testImplementation 'org.apache.kafka:kafka_2.12:2.6.0'
testImplementation 'org.apache.kafka:kafka_2.12:2.6.0:test'
testImplementation("org.mockito:mockito-core")
}
mainClassName = "com.michelin.ns4kafka.Application"
java {
sourceCompatibility = JavaVersion.toVersion('11')
targetCompatibility = JavaVersion.toVersion('11')
}
tasks.withType(JavaCompile) {
options.fork = true
options.forkOptions.jvmArgs << '-Dmicronaut.openapi.views.spec=rapidoc.enabled=true'
}
tasks.run {
environment( "MICRONAUT_ENVIRONMENTS","dev")
}
jacocoTestReport {
dependsOn test // tests are required to run before generating the report
reports {
xml.enabled true
csv.enabled false
}
}