Skip to content

Commit f8a5195

Browse files
committed
fix signing from environment
1 parent 25c3ce5 commit f8a5195

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

build.gradle

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ String getBuildProperty(String property) {
2525
project.findProperty (property) ?: System.getenv (property) ?: 'n/a'
2626
}
2727

28+
String getBuildSignKey(String property) {
29+
project.findProperty (property) ?:
30+
System.getenv (property) ? System.getenv (property).replace("\\n", "\n"): 'n/a'
31+
}
32+
2833
ext {
2934
processorApiVersion = '2021.1'
3035
processorCoreVersion = '2021.1-SNAPSHOT'
@@ -34,7 +39,7 @@ ext {
3439
publishUser = getBuildProperty ('PUBLISH_USER')
3540
publishKey = getBuildProperty ('PUBLISH_KEY')
3641

37-
signKey = getBuildProperty ('SIGN_KEY')
42+
signKey = getBuildSignKey ('SIGN_KEY')
3843
signPwd = getBuildProperty ('SIGN_PWD')
3944

4045
isReleaseVersion = !version.endsWith("SNAPSHOT")

0 commit comments

Comments
 (0)