Shan
03/31/2019, 3:26 PMlocal.properties
file into a buildscript with the gradle kotlin dsl? I can only find really old posts that don't seem to work anymore. For context, I'm trying to load a GPG user/pass/keyring into my buildscript for publishing a release version of my project to sonatype.. if anyone knows a better way to do this I am all ears.tapchicoma
03/31/2019, 6:26 PM~/.gradle/gradle.properties
tapchicoma
03/31/2019, 6:26 PMtapchicoma
03/31/2019, 6:27 PMjava.util.Properties
to load local.properties
and get keysShan
03/31/2019, 7:12 PMtapchicoma
03/31/2019, 7:13 PM-Pkey=some -Ppass=some-pass
params to gradle taskShan
03/31/2019, 7:14 PMShan
03/31/2019, 7:15 PMtapchicoma
03/31/2019, 7:15 PMtapchicoma
03/31/2019, 7:16 PMmaven-publish
?Shan
03/31/2019, 7:16 PMtapchicoma
03/31/2019, 7:19 PMmaven-publish
is using for signing.
So you can use -Psigning,keyId=<key_id> -Psigning.pasword=<password>
Shan
03/31/2019, 7:23 PM