-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
127 lines (104 loc) · 4.22 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
127
val ktor_version: String by project
val kotlin_version: String by project
val logback_version: String by project
val kompendium_version: String by project
val exposed_version: String by project
val version: String by project
val coverage_excludes: String by project
val acapy_java_library_version: String by project
plugins {
application
kotlin("jvm") version "1.6.10"
id("org.jetbrains.kotlin.plugin.serialization") version "1.6.10"
jacoco
id("org.jetbrains.dokka") version "1.7.20"
}
jacoco {
toolVersion = "0.8.8"
reportsDirectory.set(layout.projectDirectory.dir("jacoco-report"))
}
group = "org.eclipse.tractusx"
application {
mainClass.set("org.eclipse.tractusx.managedidentitywallets.ApplicationKt")
}
repositories {
mavenCentral()
maven { url = uri("https://maven.pkg.jetbrains.space/public/p/ktor/eap") }
maven { url = uri("https://repo.danubetech.com/repository/maven-public/") }
maven { url = uri("https://jitpack.io") }
}
dependencies {
implementation("io.ktor:ktor-server-core:$ktor_version")
// for 1.6.7
implementation("io.ktor:ktor-client-core:$ktor_version")
implementation("io.ktor:ktor-client-core-jvm:$ktor_version")
implementation("io.ktor:ktor-client-apache:$ktor_version")
implementation("io.ktor:ktor-client-serialization:$ktor_version")
implementation("io.ktor:ktor-serialization:$ktor_version")
implementation("io.ktor:ktor-webjars:$ktor_version")
implementation("io.ktor:ktor-websockets:$ktor_version")
implementation("io.ktor:ktor-auth:$ktor_version")
implementation("io.ktor:ktor-auth-jwt:$ktor_version")
implementation("io.ktor:ktor-client-jackson:$ktor_version")
// for 2.0.0-beta
// implementation("io.ktor:ktor-server-websockets:$ktor_version")
// implementation("io.ktor:ktor-server-content-negotiation:$ktor_version")
// implementation("io.ktor:ktor-serialization-kotlinx-json:$ktor_version")
implementation("io.ktor:ktor-server-netty:$ktor_version")
implementation("ch.qos.logback:logback-classic:$logback_version")
implementation("io.ktor:ktor-client-logging:$ktor_version")
implementation("io.bkbn:kompendium-core:$kompendium_version")
implementation("io.bkbn:kompendium-auth:$kompendium_version")
implementation("org.postgresql:postgresql:42.5.1")
implementation("org.xerial:sqlite-jdbc:3.36.0.3")
// for now: using kotlinx.serialization
// implementation("com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.9.7")
// for now: using redocs instead of swagger ui
// implementation("io.bkbn:kompendium-swagger-ui:$kompendium_version")
implementation("org.jetbrains.exposed:exposed-core:$exposed_version")
implementation("org.jetbrains.exposed:exposed-dao:$exposed_version")
implementation("org.jetbrains.exposed:exposed-jdbc:$exposed_version")
implementation("org.jetbrains.exposed:exposed-java-time:$exposed_version")
implementation("decentralized-identity:did-common-java:1.0.0")
implementation("network.idu.acapy:aries-client-python:$acapy_java_library_version")
// https://mvnrepository.com/artifact/com.github.kagkarlsson/db-scheduler
implementation("com.github.kagkarlsson:db-scheduler:11.2")
testImplementation("org.mockito:mockito-inline:4.9.0")
testImplementation("org.mockito.kotlin:mockito-kotlin:4.0.0")
testImplementation("io.ktor:ktor-client-mock:$ktor_version")
testImplementation("io.ktor:ktor-server-tests:$ktor_version")
testImplementation(kotlin("test"))
}
tasks.withType<Test> {
useJUnitPlatform()
}
tasks.jacocoTestReport {
dependsOn(tasks.test)
classDirectories.setFrom(
files(classDirectories.files.map {
fileTree(it) {
exclude(coverage_excludes.split(","))
}
})
)
}
tasks.jacocoTestCoverageVerification {
dependsOn(tasks.test)
violationRules {
rule {
limit {
minimum = "0.8".toBigDecimal()
}
}
}
classDirectories.setFrom(
files(classDirectories.files.map {
fileTree(it) {
exclude(coverage_excludes.split(","))
}
})
)
}
tasks.test {
finalizedBy(tasks.jacocoTestReport, tasks.jacocoTestCoverageVerification)
}