Skip to content

Commit

Permalink
chore: fix gradle signing configuration fallback if no certificate ch…
Browse files Browse the repository at this point in the history
…ain or private key paths defined
  • Loading branch information
chrissimon-au committed Mar 10, 2024
1 parent a588fbd commit 0b32a81
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/intellij/contextive/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,11 @@ tasks {
signPlugin {
certificateChain.set(
System.getenv("CERTIFICATE_CHAIN") ?:
File(System.getenv("CERTIFICATE_CHAIN_PATH")).readText(Charsets.UTF_8)
System.getenv("CERTIFICATE_CHAIN_PATH")?.let { File(it).readText(Charsets.UTF_8) }
)
privateKey.set(System.getenv("PRIVATE_KEY") ?:
File(System.getenv("PRIVATE_KEY_PATH")).readText(Charsets.UTF_8)
privateKey.set(
System.getenv("PRIVATE_KEY") ?:
System.getenv("PRIVATE_KEY_PATH")?. let { File(it ).readText(Charsets.UTF_8) }
)
password.set(System.getenv("PRIVATE_KEY_PASSWORD"))
}
Expand Down

0 comments on commit 0b32a81

Please sign in to comment.