2017-02-06 16:16:04 +00:00
|
|
|
plugins {
|
|
|
|
id 'java'
|
|
|
|
id 'application'
|
2018-05-19 15:45:57 +00:00
|
|
|
id 'com.github.johnrengelman.shadow' version '2.0.4'
|
2017-02-06 16:16:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
description = 'Master Password GUI'
|
|
|
|
mainClassName = 'com.lyndir.masterpassword.gui.GUI'
|
|
|
|
|
|
|
|
dependencies {
|
2018-04-26 17:05:45 +00:00
|
|
|
compile project( ':masterpassword-model' )
|
2017-02-06 16:16:04 +00:00
|
|
|
|
2018-04-26 17:05:45 +00:00
|
|
|
compile group: 'ch.qos.logback', name: 'logback-classic', version: '1.1.2'
|
|
|
|
compile group: 'com.yuvimasory', name: 'orange-extensions', version: '1.3.0'
|
2017-02-06 16:16:04 +00:00
|
|
|
}
|
2018-04-26 16:45:29 +00:00
|
|
|
|
2018-05-19 15:45:57 +00:00
|
|
|
|
|
|
|
// release with: STORE_PW=$(mpw masterpassword.keystore) KEY_PW_ANDROID=$(mpw masterpassword-android) gradle masterpassword-gui:shadowJar
|
|
|
|
shadowJar.doLast {
|
|
|
|
if (System.getenv( 'KEY_PW_DESKTOP' ) != null)
|
|
|
|
ant.signjar(
|
|
|
|
jar: archivePath,
|
|
|
|
alias: 'masterpassword-desktop',
|
|
|
|
keystore: 'masterpassword.keystore',
|
|
|
|
storepass: System.getenv( 'STORE_PW' ),
|
|
|
|
keypass: System.getenv( 'KEY_PW_DESKTOP' ),
|
|
|
|
preservelastmodified: 'true',
|
|
|
|
destdir: '.'
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
2018-04-26 16:45:29 +00:00
|
|
|
run {
|
|
|
|
// I don't fully understand why this is necessary, but without it -Dmp.log.level is lost.
|
|
|
|
systemProperties = System.properties
|
|
|
|
}
|