mirror of
https://github.com/angryip/ipscan.git
synced 2025-10-26 11:18:17 +00:00
include jna in tests on Windows
This commit is contained in:
parent
74fa13870a
commit
fac335b79a
17
build.gradle
17
build.gradle
@ -38,13 +38,16 @@ repositories {
|
||||
}
|
||||
|
||||
configurations {
|
||||
linux64.extendsFrom(implementation)
|
||||
win32.extendsFrom(implementation)
|
||||
win64.extendsFrom(implementation)
|
||||
mac.extendsFrom(implementation)
|
||||
any.extendsFrom(implementation)
|
||||
linux64
|
||||
win32
|
||||
win64
|
||||
mac
|
||||
any
|
||||
jna
|
||||
|
||||
compileOnly.extendsFrom(getAt(platform)) // // compile with current platform's SWT
|
||||
// compile and test with current platform's SWT and JNA
|
||||
compileOnly.extendsFrom(getAt(platform))
|
||||
compileOnly.extendsFrom(jna)
|
||||
testImplementation.extendsFrom(getAt(platform))
|
||||
runtimeClasspath.extendsFrom(getAt(platform))
|
||||
all*.exclude module: 'org.eclipse.swt' // transitive dependency in Maven that fails
|
||||
@ -57,7 +60,7 @@ dependencies {
|
||||
win32 "org.eclipse.platform:org.eclipse.swt.win32.win32.x86:3.108.0"
|
||||
mac "org.eclipse.platform:org.eclipse.swt.cocoa.macosx.x86_64:${swtVersion}"
|
||||
|
||||
compileOnly files('lib/jna.jar')
|
||||
jna files('lib/jna.jar')
|
||||
testCompile 'junit:junit:4.12'
|
||||
testCompile 'org.mockito:mockito-core:2.23.0'
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user