2017-03-10 11:31:22 -05:00
|
|
|
plugins {
|
2018-05-25 13:08:05 -04:00
|
|
|
id 'java-library'
|
2017-03-10 11:31:22 -05:00
|
|
|
}
|
2017-02-06 11:16:04 -05:00
|
|
|
|
2018-05-25 13:08:05 -04:00
|
|
|
description = 'Master Password Algorithm Implementation'
|
2017-03-10 11:31:22 -05:00
|
|
|
|
2018-07-26 15:05:58 -04:00
|
|
|
tasks.withType( JavaCompile ) {
|
|
|
|
// Native headers
|
2018-07-28 14:03:49 -04:00
|
|
|
options.compilerArgs += ["-h", new File( new File( project.project( ':masterpassword-core' ).projectDir, 'src' ), 'java' ).absolutePath]
|
2018-07-26 15:05:58 -04:00
|
|
|
}
|
|
|
|
|
2018-05-25 13:08:05 -04:00
|
|
|
configurations {
|
2018-05-27 23:43:35 -04:00
|
|
|
lib
|
2017-02-06 11:16:04 -05:00
|
|
|
}
|
2018-05-22 01:00:14 -04:00
|
|
|
|
2018-05-25 13:08:05 -04:00
|
|
|
dependencies {
|
2018-06-10 15:22:37 -04:00
|
|
|
implementation group: 'com.lyndir.lhunath.opal', name: 'opal-system', version: '1.7-p2'
|
2019-09-24 11:19:21 -04:00
|
|
|
implementation group: 'com.github.spotbugs', name: 'spotbugs-annotations', version: '4.0.0-beta4'
|
2018-05-22 01:00:14 -04:00
|
|
|
|
2019-09-23 14:13:03 -04:00
|
|
|
api group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: '2.9.8'
|
|
|
|
api group: 'org.jetbrains', name: 'annotations', version: '16.0.2'
|
2018-05-22 01:00:14 -04:00
|
|
|
|
2018-05-27 23:43:35 -04:00
|
|
|
lib project( path: ':masterpassword-core', configuration: 'default' )
|
2018-05-22 01:00:14 -04:00
|
|
|
}
|
|
|
|
|
2018-05-27 23:43:35 -04:00
|
|
|
processResources {
|
2018-07-03 11:21:48 -04:00
|
|
|
dependsOn task( type: Sync, 'processResources-lib', {
|
|
|
|
into new File( processResources.outputs.files.singleFile, "lib" )
|
|
|
|
|
2018-05-27 23:43:35 -04:00
|
|
|
dependsOn configurations.lib {
|
2018-07-26 15:05:58 -04:00
|
|
|
files.each { libFile -> from( zipTree( libFile ) ) }
|
2018-05-27 23:43:35 -04:00
|
|
|
}
|
|
|
|
} )
|
2018-05-22 01:00:14 -04:00
|
|
|
}
|