-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
120 lines (84 loc) · 2.86 KB
/
build.gradle.kts
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
116
117
118
import net.researchgate.release.ReleaseExtension
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import java.net.URI
plugins {
id("org.springframework.boot") version "3.0.5"
id("io.spring.dependency-management") version "1.1.0"
kotlin("jvm") version "1.8.10"
kotlin("plugin.spring") version "1.8.10"
id("io.gitlab.arturbosch.detekt") version "1.21.0"
id("org.jetbrains.kotlinx.kover") version "0.6.1"
id("io.gatling.gradle") version "3.9.5.1"
// manages releases, i.e. maven version number and git tags (not artifact publication)
id("net.researchgate.release") version "3.0.2"
// manages publication of snapshot and release artifacts to respective maven repos (not release management)
`maven-publish`
id("org.sonarqube") version "4.3.1.3277"
}
group = "org.heigit.ohsome.now.stats"
java.sourceCompatibility = JavaVersion.VERSION_17
repositories {
mavenCentral()
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter-actuator")
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.springframework.boot:spring-boot-starter-jdbc")
implementation("org.springframework.boot:spring-boot-starter-cache")
implementation("org.springframework.boot:spring-boot-starter-validation")
implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:2.0.4")
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("com.clickhouse:clickhouse-jdbc:0.4.6:all")
implementation("org.jdbi:jdbi3-core:3.37.1")
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("org.springframework.boot:spring-boot-starter-webflux")
testImplementation("org.testcontainers:junit-jupiter:1.18.0")
testImplementation("org.testcontainers:clickhouse:1.18.0")
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict", "-Xemit-jvm-type-annotations")
jvmTarget = "17"
}
}
tasks.withType<Test> {
useJUnitPlatform()
}
// only build the 'fat' jar
tasks.named<Jar>("jar") {
enabled = false
}
publishing {
publications {
create<MavenPublication>("bootJava") {
artifact(tasks.named("bootJar"))
}
}
repositories {
maven {
name = "heigitNexus"
url = URI(project.findProperty("repositoryUrl").toString())
credentials(PasswordCredentials::class)
}
}
}
configure<ReleaseExtension> {
// failOnUnversionedFiles.set(false)
// failOnUpdateNeeded.set(false)
// failOnCommitNeeded.set(false)
// failOnPublishNeeded.set(false)
}
kover {
htmlReport {
onCheck.set(true)
}
verify {
onCheck.set(true)
rule {
isEnabled = true
bound {
minValue = 80
}
}
}
}