2017-03-10 16:31:22 +00:00
|
|
|
plugins {
|
2018-05-25 17:08:05 +00:00
|
|
|
id 'java-library'
|
2017-03-10 16:31:22 +00:00
|
|
|
}
|
2017-02-06 16:16:04 +00:00
|
|
|
|
2018-05-25 17:08:05 +00:00
|
|
|
description = 'Master Password Algorithm Implementation'
|
2017-03-10 16:31:22 +00:00
|
|
|
|
2018-05-25 17:08:05 +00:00
|
|
|
configurations {
|
2018-05-28 03:43:35 +00:00
|
|
|
lib
|
2017-02-06 16:16:04 +00:00
|
|
|
}
|
2018-05-22 05:00:14 +00:00
|
|
|
|
2018-05-25 17:08:05 +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-22 05:00:14 +00:00
|
|
|
|
2018-05-28 03:43:35 +00:00
|
|
|
api group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: '2.9.5'
|
2018-05-25 17:08:05 +00:00
|
|
|
api group: 'org.jetbrains', name: 'annotations', version: '13.0'
|
2018-06-04 05:43:46 +00:00
|
|
|
api group: 'com.google.code.findbugs', name: 'jsr305', version: '3.0.2'
|
|
|
|
api group: 'com.google.code.findbugs', name: 'findbugs-annotations', version: '3.0.1'
|
2018-05-22 05:00:14 +00:00
|
|
|
|
2018-05-28 03:43:35 +00:00
|
|
|
lib project( path: ':masterpassword-core', configuration: 'default' )
|
2018-05-22 05:00:14 +00:00
|
|
|
}
|
|
|
|
|
2018-05-28 03:43:35 +00:00
|
|
|
processResources {
|
|
|
|
dependsOn task( type: Sync, 'copyResources', {
|
|
|
|
dependsOn configurations.lib {
|
|
|
|
files.each { libFile ->
|
|
|
|
from zipTree( libFile )
|
|
|
|
into new File( processResources.outputs.files.singleFile, "lib" )
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} )
|
2018-05-22 05:00:14 +00:00
|
|
|
}
|
2018-06-03 21:58:24 +00:00
|
|
|
|
|
|
|
compileJava {
|
|
|
|
doLast {
|
|
|
|
ant.javah( class: 'com.lyndir.masterpassword.impl.MPAlgorithmV0',
|
2018-06-06 00:22:46 +00:00
|
|
|
outputFile: '../../c/core/src/mpw-jni.h',
|
2018-06-03 21:58:24 +00:00
|
|
|
classpath: files( sourceSets.main.compileClasspath, sourceSets.main.output ).asPath )
|
|
|
|
}
|
|
|
|
}
|