properties shorthand function for accessing gradle.properties in a cleaner way (#92)

This commit is contained in:
Jakub Chrzanowski
2021-02-25 10:41:19 +01:00
committed by GitHub
parent b812e459d4
commit 507b055937
5 changed files with 21 additions and 31 deletions

View File

@@ -2,7 +2,7 @@
# -> https://plugins.jetbrains.com/docs/intellij/intellij-artifacts.html
pluginGroup = %GROUP%
pluginName_ = %NAME%
pluginName = %NAME%
pluginVersion = 0.0.1
pluginSinceBuild = 202
pluginUntilBuild = 203.*

View File

@@ -114,7 +114,7 @@ jobs:
run: |
PROPERTIES="$(./gradlew properties --console=plain -q)"
VERSION="$(echo "$PROPERTIES" | grep "^version:" | cut -f2- -d ' ')"
NAME="$(echo "$PROPERTIES" | grep "^pluginName_:" | cut -f2- -d ' ')"
NAME="$(echo "$PROPERTIES" | grep "^pluginName:" | cut -f2- -d ' ')"
CHANGELOG="$(./gradlew getChangelog --unreleased --no-header --console=plain -q)"
CHANGELOG="${CHANGELOG//'%'/'%25'}"
CHANGELOG="${CHANGELOG//$'\n'/'%0A'}"