3 Commits

Author SHA1 Message Date
36721abdb9 [RELEASE] - release version: 0.2.0 2024-12-10 23:53:56 +01:00
0e5c4e3e9f update for common plugin v0.2.0
- cleanup Mapper.kt
- update build.gradle.kts to use certificate plugin
- update catalog version
2024-12-10 22:37:46 +01:00
5c1a0693b3 [RELEASE] - bump version 2024-11-30 20:53:19 +01:00
3 changed files with 6 additions and 19 deletions

View File

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

View File

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

View File

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