-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
115 lines (96 loc) · 2.84 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
113
114
115
plugins {
id "jacoco"
id "java-library"
id "maven-publish"
id "org.jetbrains.intellij" version "1.17.3"
id "org.sonarqube" version "4.2.0.3129"
id "com.diffplug.spotless" version "6.19.0"
}
repositories {
mavenLocal()
mavenCentral()
}
prepareKotlinBuildScriptModel.enabled = false
group = groupId
version = artifactVersion
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
intellij {
plugins = ["java", "Kotlin"]
version = "2024.1"
downloadSources = false
}
runIde {
autoReloadPlugins = true
}
patchPluginXml {
sinceBuild = "223"
}
spotless {
java {
encoding("UTF-8")
importOrder()
removeUnusedImports()
eclipse("4.21").configFile("${rootDir}/config/codestyle.xml")
}
}
sonarqube {
properties {
property "sonar.host.url", "https://sonarcloud.io"
property "sonar.organization", "goodforgod"
property "sonar.projectKey", "GoodforGod_DummyMapper"
}
}
configurations {
configureEach {
exclude module: "slf4j-api"
resolutionStrategy {
force "com.fasterxml.jackson.core:jackson-core:$jacksonVersion"
force "com.fasterxml.jackson.core:jackson-databind:$jacksonVersion"
force "com.fasterxml.jackson.core:jackson-annotations:$jacksonVersion"
force "com.fasterxml.jackson.dataformat:jackson-dataformat-avro:$jacksonVersion"
force "com.fasterxml.jackson.datatype:jackson-datatype-jdk8:$jacksonVersion"
force "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jacksonVersion"
force "com.fasterxml.jackson.module:jackson-module-parameter-names:$jacksonVersion"
}
}
}
dependencies {
implementation "com.github.goodforgod:dummymaker:4.0.0"
implementation "org.javassist:javassist:3.29.2-GA"
implementation "io.goodforgod:jackson-datetime-configuration:2.0.0"
implementation "com.fasterxml.jackson.dataformat:jackson-dataformat-avro:$jacksonVersion"
implementation "com.github.victools:jsonschema-generator:4.28.0"
implementation "org.apache.avro:avro-compiler:1.11.2"
implementation "io.leangen.graphql:spqr:0.12.3"
}
test {
useJUnitPlatform()
testLogging {
events("passed", "skipped", "failed")
exceptionFormat("full")
showStandardStreams(false)
}
reports {
html.required = false
junitXml.required = false
}
}
tasks.withType(JavaCompile) {
options.encoding("UTF-8")
options.incremental(true)
options.fork = true
}
check.dependsOn jacocoTestReport
jacocoTestReport {
reports {
xml.required = true
html.destination file("${buildDir}/jacocoHtml")
}
}
javadoc {
options.encoding = "UTF-8"
if (JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption("html5", true)
}
}