Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Native folders are not created #24

Open
chjan opened this issue Oct 22, 2017 · 3 comments
Open

Native folders are not created #24

chjan opened this issue Oct 22, 2017 · 3 comments

Comments

@chjan
Copy link

chjan commented Oct 22, 2017

Minimizing the problem to one file only, like one of these alternatives, a dll or the dll packed in a jar, a native folder is not created. Are you sure this plugin still works?

dependencies {
//native library
compile files('src/main/jnilibs/win_mdnsresponder64/mDNSResponder.dll')
compile files('src/main/jnilibs/mDNSResponder.jar')
}

@cjstehno
Copy link
Owner

Nope. I have listed it as abandoned. I will try to take a look this week though.

Not sure it worked if the native library is outside of a jar (as your example) file though...that was never the intention.

What Gradle version?

@chjan
Copy link
Author

chjan commented Oct 23, 2017

latest gradle 4.2.1.

I you accept a suggestion, then it is a fact that the Java plugin of Gradle is not "up to standard" as it does not provide loading of JNI things (as Gradle does for Android). Gradle is not yet fully functional for pure Java, in other words. This is a bummer.

What is needed, is that your plugin is able to load native files into such an such folder in a simple and straight forward way. I don't understand the purpose of putting that type of files in a jar, but it is a working solution if it keeps your plugin more simple. Even better would be to allow direct, non-jared file load. As indicated above. This is what is still missing in the Gradle Java plugin (odd if you ask me!). This is what we most often do when we want to load native layers in Java.
Hope you refurbish this plugin along these lines, because it is needed.

@cjstehno
Copy link
Owner

I have officially abandoned this project. Feel free to submit pull requests to address issues if you want to. See the README for more information. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants