2017-02-06 16:16:04 +00:00
|
|
|
plugins {
|
|
|
|
id 'java'
|
|
|
|
id 'application'
|
2019-09-23 18:13:03 +00:00
|
|
|
id 'com.github.johnrengelman.shadow' version '5.1.0'
|
2017-02-06 16:16:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
description = 'Master Password GUI'
|
2018-07-29 18:01:07 +00:00
|
|
|
mainClassName = 'com.lyndir.masterpassword.gui.MasterPassword'
|
2017-02-06 16:16:04 +00:00
|
|
|
|
|
|
|
dependencies {
|
2018-06-10 19:22:37 +00:00
|
|
|
implementation group: 'com.lyndir.lhunath.opal', name: 'opal-system', version: '1.7-p2'
|
2018-05-28 03:43:35 +00:00
|
|
|
implementation group: 'ch.qos.logback', name: 'logback-classic', version: '1.1.2'
|
|
|
|
implementation group: 'com.yuvimasory', name: 'orange-extensions', version: '1.3.0'
|
2018-07-31 18:55:19 +00:00
|
|
|
implementation group: 'com.github.tulskiy', name: 'jkeymaster', version: '1.2'
|
2019-09-24 15:19:21 +00:00
|
|
|
implementation group: 'com.github.spotbugs', name: 'spotbugs-annotations', version: '4.0.0-beta4'
|
2017-02-06 16:16:04 +00:00
|
|
|
|
2018-05-28 03:43:35 +00:00
|
|
|
compile project( ':masterpassword-model' )
|
2017-02-06 16:16:04 +00:00
|
|
|
}
|
2018-04-26 16:45:29 +00:00
|
|
|
|
2018-05-19 15:45:57 +00:00
|
|
|
|
2018-07-10 04:39:52 +00:00
|
|
|
// release with: STORE_PW=$(mpw masterpassword.keystore) KEY_PW_DESKTOP=$(mpw masterpassword-desktop) gradle clean masterpassword-gui:shadowJar
|
|
|
|
shadowJar {
|
|
|
|
manifest {
|
|
|
|
attributes 'Implementation-Title': description
|
|
|
|
attributes 'Implementation-Version': version
|
|
|
|
}
|
|
|
|
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',
|
2019-09-23 18:13:03 +00:00
|
|
|
signedJar: "${rootDir}/public/site/${project.name}-${project.version}.jar" )
|
2018-07-10 04:39:52 +00:00
|
|
|
}
|
2018-05-19 15:45:57 +00:00
|
|
|
}
|
|
|
|
|
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.
|
2018-07-26 19:05:58 +00:00
|
|
|
//systemProperties = System.properties
|
2018-04-26 16:45:29 +00:00
|
|
|
}
|