-
Notifications
You must be signed in to change notification settings - Fork 29
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
microsoft-kiota-** dependencies have conflicting Automatic-Module-Name #1108
Comments
Hi @dnijssen
If all that holds true, I'd like to suggest the following module names:
Thoughts? I'd also like to get @andreaTP opinion on the matter. |
Thanks for looping me in @baywet , in my experience, it's rare that ppl will use |
I see this issue has been moved to the v1.14 milestone, is there anything holding this issue up? Would love to see this issue resolved, suggested module names sounds more than right in my opinion :) |
@dnijssen this has been moved from one milestone to another as part of our release process (1.13 was released) but nobody is working on that at the moment (staff shortage/other priorities). jar {
manifest {
name = "mylibrary"
instruction "Automatic-Module-Name", "com.acme.mylibrary"
}
}
|
with the discussion in #1224 we realized that we have split packages, which would require moving classes to different packages to fully implement that change. We're unlikely to so that soon since it'd represent a source breaking change. Queuing for the next major version. |
We use for our projects both
jdeps
andjlink
tools to generate a slim JRE. However since the switch tocom.microsoft.graph:microsoft-graph:6.4.0
(v6 of the SDK, recently released), which builds on top of themicrosoft-kiota-**
dependencies. We can't seem to run ourjdeps
command succesfully anymore.Previously (without the
microsoft-kiota-**
dependencies on the class-/module path we have been using the following command; (exectued fromtarget/
)Which would list something like this; java.base,spring.boot,spring.boot.autoconfigure,spring.context,spring.core
Note: When running this on a Windows machine, be sure to change
./lib/*
to./lib
(as there is an issue with the*
wildcard.Howafter after switching to
com.microsoft.graph:microsoft-graph:6.4.0
we not get the following exception when we run the same command;A quick look here in the repository shows me that all
components/**/build.gradle
files are containing this piece of code;So the
Automatic-Module-Name
is set to an unique value, which isn't correct in my opinion. Might be better to use theartifactId
here maybe? But that is up to you guys ;)Following
pom.xml
file can be used to simulate this issue. Note themaven-dependency-plugin
which copies all the dependencies (onmvn install
) totarget/lib
for easier testing with the command.The text was updated successfully, but these errors were encountered: