Included a .dll to my project, how to set library path?

From my build.gradle:

sourceSets {
	main {
		java { srcDir 'mySrc' }
		resources { srcDirs = ['assets', './natives'] } //natives includes a dll
 	}
}

test {
    systemProperty "java.library.path", "./natives" //also tried with libs, ., even absolute path don't work
}

gradle run always complain that can’t find the lib. :frowning:

Any help would be appreciated, thanks!

Solved with javafx-gradle-plugin and this code

task addNativeLibs(type: Copy) {
    from 'natives'
    into "build/jfx/native/$jfx.appName"
}

release.dependsOn addNativeLibs

:slight_smile: