From aacc82a41d274828ba06182ee0f07f70efbcdbb6 Mon Sep 17 00:00:00 2001 From: Peter Vanusanik Date: Sun, 15 Jan 2023 19:16:09 +0100 Subject: [PATCH] fixed #16 --- build.gradle.kts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index a483b86..dc3ddb0 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -51,9 +51,13 @@ tasks { } signPlugin { - certificateChain.set(File("./signcerts/chain.crt").readText(Charsets.UTF_8)) - privateKey.set(File("./signcerts/private.pem").readText(Charsets.UTF_8)) - password.set(System.getenv("PRIVATE_KEY_PASSWORD")) + try { + certificateChain.set(File("./signcerts/chain.crt").readText(Charsets.UTF_8)) + privateKey.set(File("./signcerts/private.pem").readText(Charsets.UTF_8)) + password.set(System.getenv("PRIVATE_KEY_PASSWORD")) + } catch (_: Exception) { + + } } publishPlugin {