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:
@@ -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")
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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,
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user