From 77572cebaced7b4d056620da36255e7b86475a38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Igor=20Spasic=CC=81?= Date: Fri, 9 Jun 2023 16:03:30 +0200 Subject: [PATCH] Add justfile --- .gitignore | 3 ++- build.gradle.kts | 4 ++-- gradle/libs.versions.toml | 2 +- justfile | 18 ++++++++++++++++++ 4 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 justfile diff --git a/.gitignore b/.gitignore index 288e1cb..b989b72 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,5 @@ out .qodana build libs -.env \ No newline at end of file +.env +certificate \ No newline at end of file diff --git a/build.gradle.kts b/build.gradle.kts index 0a99996..9a35020 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -111,8 +111,8 @@ tasks { } signPlugin { - certificateChain = environment("CERTIFICATE_CHAIN") - privateKey = environment("PRIVATE_KEY") + certificateChainFile.set(file("certificate/chain.crt")) + privateKeyFile.set(file("certificate/private.pem")) password = environment("PRIVATE_KEY_PASSWORD") } diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index e2ba88e..f6a5dd0 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -6,7 +6,7 @@ annotations = "24.0.1" dokka = "1.8.10" kotlin = "1.8.21" changelog = "2.0.0" -gradleIntelliJPlugin = "1.13.3" +gradleIntelliJPlugin = "1.14.1" qodana = "0.1.13" kover = "0.6.1" diff --git a/justfile b/justfile new file mode 100644 index 0000000..4f219aa --- /dev/null +++ b/justfile @@ -0,0 +1,18 @@ +set dotenv-load + +# just displays the receipes +default: + @just --list + +# build the plugin +build: + ./gradlew buildPlugin + +# sign the plugin +## requires enviroment variabels and certificates to be set +sign: build + ./gradlew signPlugin + +# publish the plugin +publish: sign + ./gradlew publishPlugin \ No newline at end of file