-
Notifications
You must be signed in to change notification settings - Fork 66
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
Make Lingua usable within Java 9 modules #120
Comments
Hi @drinkitup777, thank you for trying out my library and for your question. I have no experience with Java 9 modules so far but it seems that I have to add a |
@pemistahl I'll be looking forward to it. I'm planning to use it for short text, so lingua is a perfect fit. Thanks for the fast reply. |
The ModiTect plugin might be useful when implementing this for Lingua. It allows adding a module descriptor to an existing JAR. Its (I have not tried the Gradle plugin yet, but for Gson its Maven variant is used, in case that is helpful). |
@Marcono1234 I've tried your Gradle plugin but it seems it's not compatible with the Kotlin plugin. I get the following error:
Instead, I will create the file
@drinkitup777 Are you perhaps able to test it before I release version 1.2.0? Thank you. |
Ah you are right, I am seeing the same error as well. Have reported it as moditect/moditect-gradle-plugin#14; but it appears there is a workaround.
Should the Have created #138 which tries to solve this using moditect-gradle-plugin. |
This issue has been resolved by #138, so I close it now. @drinkitup777 If you still have problems with the current solution, then please open a new issue. Thank you. |
I've added lingua to my
build.gradle
like so:My
module-info.java
requires
it like so:Still, it doesn't compile:
What configuration do I need to do to get my project to recognize lingua as a module? (This was all done in a blank Hello World project with default IntelliJ gradle project settings. Other dependencies I add are recognized, but lingua is not.)
The text was updated successfully, but these errors were encountered: