How to connect the dll to a gradle project?

There is a gradle project in java. The project uses the engine jcpt, it requires to connect several jar nicknames and native library (link) (windiws - .dll linux .so). If .so for linux even clear how to get (habré found this article that suggest all files .so to put in a jar archive and add this archive), how to connect .dll for Windows is very strange (to put in the jar also did not work). How can I do that?

build.gradle looks like this:
apply plugin: 'java'
apply plugin: "application"

mainClassName = "EN-us.cfif11.cosmo.Main"

sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_7
version = '1.0'

repositories {
mavenCentral()
}

dependencies {
 testCompile group: 'junit', name: 'junit', version: '4.11'
 compile files("jpct/lib/jpct/jpct.jar")
 compile files("jpct/lib/lwjgl-2.8.0/jar/lwjgl.jar")
 compile files("jpct/lib/lwjgl-2.8.0/jar/lwjgl_util.jar")

}

jar {
 manifest.attributes("Main-Class": mainClassName);
}

P. S. better Yet, automatically detect the system and put the path for linux or windiws automatically
September 26th 19 at 06:35
0 answer

Find more questions by tags DLLGradleJava