update for common plugin v0.2.0

- cleanup Mapper.kt
- update build.gradle.kts to use certificate plugin
- update catalog version
This commit is contained in:
2024-12-10 22:37:46 +01:00
parent 5c1a0693b3
commit 0e5c4e3e9f
3 changed files with 5 additions and 18 deletions

View File

@@ -1,6 +1,7 @@
plugins {
alias(hlaeja.plugins.kotlin.jvm)
alias(hlaeja.plugins.kotlin.spring)
alias(hlaeja.plugins.ltd.hlaeja.plugin.certificate)
alias(hlaeja.plugins.ltd.hlaeja.plugin.service)
alias(hlaeja.plugins.spring.dependency.management)
alias(hlaeja.plugins.springframework.boot)
@@ -30,20 +31,6 @@ dependencies {
group = "ltd.hlaeja"
tasks {
named("processResources") {
dependsOn("copyKeystore", "copyPublicKey")
}
register<Copy>("copyKeystore") {
group = "hlaeja"
from("cert/keystore.p12")
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() }
}
tasks.named("processResources") {
dependsOn("copyCertificates")
}