set up jwt for identity
This commit is contained in:
@@ -7,11 +7,15 @@ plugins {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(hlaeja.jjwt.api)
|
||||
implementation(hlaeja.kotlin.reflect)
|
||||
implementation(hlaeja.kotlinx.coroutines)
|
||||
implementation(hlaeja.org.springframework.springboot.actuator.starter)
|
||||
implementation(hlaeja.org.springframework.springboot.webflux.starter)
|
||||
|
||||
runtimeOnly(hlaeja.jjwt.impl)
|
||||
runtimeOnly(hlaeja.jjwt.jackson)
|
||||
|
||||
testImplementation(hlaeja.io.mockk)
|
||||
testImplementation(hlaeja.io.projectreactor.reactor.test)
|
||||
testImplementation(hlaeja.kotlin.test.junit5)
|
||||
@@ -25,7 +29,7 @@ group = "ltd.hlaeja"
|
||||
|
||||
tasks {
|
||||
named("processResources") {
|
||||
dependsOn("copyKeystore")
|
||||
dependsOn("copyKeystore", "copyPublicKey")
|
||||
}
|
||||
register<Copy>("copyKeystore") {
|
||||
group = "hlaeja"
|
||||
@@ -33,4 +37,10 @@ tasks {
|
||||
into("${layout.buildDirectory.get()}/resources/main/cert")
|
||||
onlyIf { file("cert/keystore.p12").exists() }
|
||||
}
|
||||
register<Copy>("copyPublicKey") {
|
||||
group = "hlaeja"
|
||||
from("cert/public_key.pem")
|
||||
into("${layout.buildDirectory.get()}/resources/main/cert")
|
||||
onlyIf { file("cert/public_key.pem").exists() }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user