Add copyCertificates

- update README.md with certificate plugin
- add Ltd_hlaeja_plugin_hlaeja_common_plugin_certificate_gradle.kts
This commit is contained in:
2024-12-10 18:42:43 +01:00
parent 867b07575c
commit 0c657764db
2 changed files with 24 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
val filesToCopy = listOf(
"private_key.pem",
"public_key.pem",
"keystore.p12",
)
tasks {
register<Copy>("copyCertificates") {
group = "hlaeja"
into("${layout.buildDirectory.get()}/resources/main/cert")
filesToCopy.filter { file("cert/$it").exists() }
.forEach { file ->
from("cert/$file") {
include(file)
}
}
}
}