forked from walt-id/waltid-walletkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
98 lines (82 loc) · 3.13 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.5.31"
kotlin("plugin.serialization") version "1.6.10"
application
`maven-publish`
}
group = "id.walt"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
maven("https://jitpack.io")
maven("https://maven.walt.id/repository/waltid/")
maven("https://maven.walt.id/repository/waltid-ssi-kit/")
maven("https://repo.danubetech.com/repository/maven-public/")
mavenLocal()
}
dependencies {
implementation("io.javalin:javalin-bundle:4.3.0")
implementation("com.github.kmehrunes:javalin-jwt:0.3")
implementation("com.beust:klaxon:5.5")
implementation("com.nimbusds:oauth2-oidc-sdk:9.27")
// CLI
implementation("com.github.ajalt.clikt:clikt-jvm:3.4.0")
implementation("com.github.ajalt.clikt:clikt:3.4.0")
// SSIKIT
implementation("id.walt:waltid-ssi-kit:1.11-SNAPSHOT")
implementation("id.walt:waltid-ssikit-vclib:1.18.0")
// Service-Matrix
implementation("id.walt.servicematrix:WaltID-ServiceMatrix:1.1.0")
// Logging
implementation("org.slf4j:slf4j-api:2.0.0-alpha6")
implementation("org.slf4j:slf4j-simple:2.0.0-alpha6")
implementation("io.github.microutils:kotlin-logging-jvm:2.1.21")
implementation("io.ktor:ktor-serialization-kotlinx-json:2.0.1")
// Testing
//testImplementation(kotlin("test-junit"))
testImplementation("io.mockk:mockk:1.12.2")
testImplementation("io.kotest:kotest-runner-junit5:5.1.0")
testImplementation("io.kotest:kotest-assertions-core:5.1.0")
testImplementation("io.kotest:kotest-assertions-json:5.1.0")
// HTTP
testImplementation("io.ktor:ktor-client-core:2.0.1")
testImplementation("io.ktor:ktor-client-cio:2.0.1")
testImplementation("io.ktor:ktor-client-logging:2.0.1")
testImplementation("io.github.rybalkinsd:kohttp:0.12.0")
testImplementation("io.ktor:ktor-client-content-negotiation:2.0.1")
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "16"
}
tasks.withType<Test> {
useJUnitPlatform()
}
application {
mainClass.set("id.walt.MainKt")
}
publishing {
publications {
create<MavenPublication>("mavenJava") {
pom {
name.set("walt.id SSI Wallet Kit")
description.set("Kotlin/Java wallet API backend, including issuer and verifier API backends.")
url.set("https://walt.id")
}
from(components["java"])
}
}
repositories {
maven {
url = uri("https://maven.walt.id/repository/waltid-ssi-kit/")
val usernameFile = File("secret_maven_username.txt")
val passwordFile = File("secret_maven_password.txt")
val secretMavenUsername = System.getenv()["MAVEN_USERNAME"] ?: if (usernameFile.isFile) { usernameFile.readLines()[0] } else { "" }
val secretMavenPassword = System.getenv()["MAVEN_PASSWORD"] ?: if (passwordFile.isFile) { passwordFile.readLines()[0] } else { "" }
credentials {
username = secretMavenUsername
password = secretMavenPassword
}
}
}
}