-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
89 lines (68 loc) · 2.48 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
plugins {
id("com.github.johnrengelman.shadow") version "7.1.2"
id("io.micronaut.application") version "3.7.2"
id "org.owasp.dependencycheck" version "${owaspVersion}"
}
ext {
driver_version = '4.14.1'
logging_version = '2.19.0'
}
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
version = release_version
group = "com.exactpro.th2"
repositories {
mavenCentral()
}
dependencies {
annotationProcessor "io.micronaut:micronaut-http-validation"
annotationProcessor "io.micronaut.openapi:micronaut-openapi:4.4.3"
annotationProcessor "com.datastax.oss:java-driver-mapper-processor:${driver_version}"
implementation("io.swagger.core.v3:swagger-annotations")
implementation("io.micronaut:micronaut-http-client")
implementation("io.micronaut:micronaut-jackson-databind:3.8.5")
implementation("jakarta.annotation:jakarta.annotation-api")
implementation("io.micronaut:micronaut-validation")
testImplementation "io.micronaut.test:micronaut-test-spock"
testImplementation ("org.spockframework:spock-core") {
exclude group: "org.codehaus.groovy", module: "groovy-all"
}
implementation "com.datastax.oss:java-driver-core:${driver_version}"
implementation "com.datastax.oss:java-driver-mapper-processor:${driver_version}"
implementation "com.datastax.oss:java-driver-mapper-runtime:${driver_version}"
implementation "org.apache.logging.log4j:log4j-slf4j-impl:${logging_version}"
implementation "org.apache.logging.log4j:log4j-1.2-api:${logging_version}"
implementation "org.apache.logging.log4j:log4j-api:${logging_version}"
}
dependencyCheck {
formats=['SARIF', 'JSON', 'HTML']
failBuildOnCVSS=5
analyzers {
assemblyEnabled = false
nugetconfEnabled = false
nodeEnabled = false
}
}
tasks.withType(JavaCompile) {
options.fork = true
options.forkOptions.jvmArgs << '-Dmicronaut.openapi.views.spec=rapidoc.enabled=true,swagger-ui.enabled=true,swagger-ui.theme=flattop'
}
configurations.all {
exclude group: "ch.qos.logback", module: "logback-classic"
}
application {
mainClass.set("com.exactpro.th2.storageservices.Application")
}
java {
sourceCompatibility = JavaVersion.toVersion("11")
targetCompatibility = JavaVersion.toVersion("11")
}
graalvmNative.toolchainDetection = false
micronaut {
runtime("netty")
testRuntime("junit5")
processing {
incremental(true)
annotations("com.exactpro.th2.*")
}
}