-
Notifications
You must be signed in to change notification settings - Fork 9
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
Add JPMS module name or descriptor #53
Comments
I think the project should at least just follow the way the original repo did, and simply define the "Automatic-Module-Name" in the pom/gradle: ext.moduleName = "com.palantir.javapoet"
jar {
inputs.property("moduleName", moduleName)
manifest {
attributes 'Automatic-Module-Name': moduleName
}
} |
I would like to provide the PR, but I am not sure, which "build.gradle" should be used. Is it the one inside the "javapoet" folder or the root one? |
I believe it would go into this one: https://github.com/palantir/javapoet/blob/develop/javapoet/build.gradle |
Thanks for the contribution! I expect it to work, but you should be able to merge within ~10 minutes or so when the artifact hits maven central :-) |
0.4.0 just hit the central; |
What happened?
For the Java Platform Module System, square/javapoet defines an
Automatic-Module-Name
(seepom.xml
config).It looks like this fork here neither defines an
Automatic-Module-Name
, nor does it have amodule-info.class
. This makes it difficult to use in a modular project.What did you want to happen?
This project should either define an
Automatic-Module-Name
in the manifest, or contain amodule-info.class
(respectivelyMETA-INF/versions/9/module-info.class
and in manifestMulti-Release: true
).The text was updated successfully, but these errors were encountered: