2
0

Prepare for 2.7 release.

This commit is contained in:
Maarten Billemont 2018-07-10 00:39:52 -04:00
parent e5ff374a9c
commit 462dd4e89b
2 changed files with 17 additions and 13 deletions

View File

@ -2,7 +2,7 @@ allprojects {
apply plugin: 'findbugs' apply plugin: 'findbugs'
group = 'com.lyndir.masterpassword' group = 'com.lyndir.masterpassword'
version = 'GIT-SNAPSHOT' version = '2.7'
tasks.withType( JavaCompile ) { tasks.withType( JavaCompile ) {
options.encoding = 'UTF-8' options.encoding = 'UTF-8'

View File

@ -16,18 +16,22 @@ dependencies {
} }
// release with: STORE_PW=$(mpw masterpassword.keystore) KEY_PW_ANDROID=$(mpw masterpassword-android) gradle masterpassword-gui:shadowJar // release with: STORE_PW=$(mpw masterpassword.keystore) KEY_PW_DESKTOP=$(mpw masterpassword-desktop) gradle clean masterpassword-gui:shadowJar
shadowJar.doLast { shadowJar {
manifest {
attributes 'Implementation-Title': description
attributes 'Implementation-Version': version
}
doLast {
if (System.getenv( 'KEY_PW_DESKTOP' ) != null) if (System.getenv( 'KEY_PW_DESKTOP' ) != null)
ant.signjar( ant.signjar( jar: archivePath,
jar: archivePath,
alias: 'masterpassword-desktop', alias: 'masterpassword-desktop',
keystore: 'masterpassword.keystore', keystore: 'masterpassword.keystore',
storepass: System.getenv( 'STORE_PW' ), storepass: System.getenv( 'STORE_PW' ),
keypass: System.getenv( 'KEY_PW_DESKTOP' ), keypass: System.getenv( 'KEY_PW_DESKTOP' ),
preservelastmodified: 'true', preservelastmodified: 'true',
destdir: '.' destdir: '.' )
) }
} }
run { run {