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")
}

View File

@@ -1,7 +1,7 @@
kotlin.code.style=official
org.gradle.jvmargs=-Xmx1g
version=0.2.0-SNAPSHOT
catalog=0.5.0
catalog=0.6.0-SNAPSHOT
docker.port.expose=8443
container.port.expose=8443
container.port.host=9000

View File

@@ -5,6 +5,6 @@ import ltd.hlaeja.library.deviceConfiguration.Node
fun Node.Response.toDeviceResponse(): Map<String, String> {
return mapOf(
"version" to timestamp.toEpochSecond().toString(),
"data" to configuration
"data" to configuration,
)
}