I can’t seem to edit my post, let’s see if I can do mark up syntax in a comment.
eclipse.classpath.file.whenMerged { classpath ->
//remove the dlls as direct dependencies
classpath.entries.removeAll { entry -> entry.kind == ‘lib’ && entry.path.contains(‘dll’) }
//but add them as native libraries
def jacob = classpath.entries.findResult { entry ->
if (entry.kind == ‘lib’ && entry.path.contains(‘jacob’)) {
return entry
}
}
File file = findFileInConfiguration(configurations.runtime, ‘jacob-1.17-M2-x64’)
jacob.setNativeLibraryLocation(file.getParent())
}