-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
126 lines (113 loc) · 3.62 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
119
120
121
122
123
124
125
126
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.springframework.boot.gradle.tasks.bundling.BootBuildImage
plugins {
base
alias(libs.plugins.spring.boot)
alias(libs.plugins.spring.dependency.management)
alias(libs.plugins.kotlin.jvm)
alias(libs.plugins.kotlin.plugin.spring)
alias(libs.plugins.kotlin.plugin.serialization)
jacoco
}
repositories {
mavenCentral()
maven {
url = uri("https://jitpack.io")
}
maven {
url = uri("https://repo.danubetech.com/repository/maven-public")
}
maven {
url = uri("https://build.shibboleth.net/nexus/content/repositories/releases/")
}
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter")
implementation("org.springframework.boot:spring-boot-starter-webflux")
implementation("org.springframework.boot:spring-boot-starter-security")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
implementation("io.projectreactor.kotlin:reactor-kotlin-extensions")
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-reactor")
implementation(libs.kotlinx.serialization.json)
implementation(libs.arrow.core) {
because("Functional programming support")
}
implementation(libs.arrow.fx.coroutines)
implementation(libs.nimbus.jose.jwt)
implementation(libs.bouncy.castle) {
because("To support X509 certificates parsing")
}
implementation(libs.did.common) {
because("To support parsing of DID URLs")
}
implementation(libs.multiformat) {
because("To support resolution of did:key")
}
implementation(libs.result.monad) {
because("Optional dependency from org.erwinkok.multiformat:multiformat that we require")
}
implementation(libs.nimbus.oauth2) {
because("To support DPoP")
}
testImplementation(kotlin("test"))
testImplementation(libs.kotlinx.coroutines.test)
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("io.projectreactor:reactor-test")
}
java {
val javaVersion = libs.versions.java.get()
sourceCompatibility = JavaVersion.toVersion(javaVersion)
}
kotlin {
jvmToolchain {
val javaVersion = libs.versions.java.get()
languageVersion.set(JavaLanguageVersion.of(javaVersion))
}
}
tasks.withType<KotlinCompile>().configureEach {
kotlinOptions {
freeCompilerArgs += "-Xcontext-receivers"
freeCompilerArgs += "-Xjsr305=strict"
}
}
tasks.test {
finalizedBy(tasks.jacocoTestReport)
}
tasks.jacocoTestReport {
dependsOn(tasks.test)
reports {
xml.required = true
csv.required = true
html.required = true
}
}
testing {
suites {
val test by getting(JvmTestSuite::class) {
useJUnitJupiter()
}
}
}
jacoco {
toolVersion = libs.versions.jacoco.get()
}
springBoot {
buildInfo()
}
tasks.named<BootBuildImage>("bootBuildImage") {
imageName.set("registry.gitlab.corp.authada.de/backend/research/eudi/eudi-wallet-backend:authada-main-snapshot")
publish.set(false)
// environment.set(System.getenv())
// val env = environment.get()
// docker {
// publishRegistry {
// env["REGISTRY_URL"]?.let { url = it }
// env["REGISTRY_USERNAME"]?.let { username = it }
// env["REGISTRY_PASSWORD"]?.let { password = it }
// }
// env["DOCKER_METADATA_OUTPUT_TAGS"]?.let { tagStr ->
// tags = tagStr.split(delimiters = arrayOf("\n", " ")).onEach { println("Tag: $it") }
// }
// }
}