jna: make gradle project vars settable with command line args
@@ -4,10 +4,10 @@ apply plugin: 'signing'
// export project variables for maven publishing
// if publishing is used wiht this java library, values should be overriden via 'secret-settings.gradle'
ext {
- sonatypeUsername='SONATYPE_USER_NAME_NOT_CONFIGURED'
- sonatypePassword='SONATYPE_USER_PASSWORD_NOT_CONFIGURED'
- signingPassword='KEY_PASSWORD_NOT_CONFIGURED'
- signingSecretKey='ASCII_ARMORED_PGP_SECRET_KEY_NOT_CONFIGURED'
+ sonatypeUsername = project.properties['sonatypeUsername'] ?: 'SONATYPE_USER_NAME_NOT_CONFIGURED'
+ sonatypePassword = project.properties['sonatypePassword'] ?: 'SONATYPE_USER_PASSWORD_NOT_CONFIGURED'
+ signingPassword = project.properties['signingPassword'] ?: 'KEY_PASSWORD_NOT_CONFIGURED'
+ signingSecretKey = project.properties['signingSecretKey'] ?: 'ASCII_ARMORED_PGP_SECRET_KEY_NOT_CONFIGURED'
}
// apply optional secret settings (used for maven central plublishing)
