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

Can't find micronautserviceconfigs when running as jlink-ed application #10982

Merged
merged 7 commits into from
Aug 6, 2024

Conversation

rfscholte
Copy link
Contributor

These few lines of code should be the base of the fix. And it actually doesn't require a predefined set. Tests are still missing as I'm struggling with the spock support in my IDE.

This fixes #10842

@CLAassistant
Copy link

CLAassistant commented Jul 16, 2024

CLA assistant check
All committers have signed the CLA.

@graemerocher graemerocher self-assigned this Jul 16, 2024
@graemerocher graemerocher added the type: improvement A minor improvement to an existing feature label Jul 16, 2024
@graemerocher
Copy link
Contributor

You can write the test in JUnit 5 / java if it is easier for you

@graemerocher
Copy link
Contributor

could you sign the CLA? Thanks.

@@ -187,6 +189,20 @@ private void findMicronautMetaServiceConfigs(BiConsumer<URI, String> consumer) t
uniqueURIs.add(uri);
}

if(uniqueURIs.isEmpty()) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not 100% sure if this emtpy-check is correct. For JLink it is, which was the usecase. In case of combining classpath and modulepath this might need to be revisited, although I wonder if people would do that.

Copy link
Contributor

@graemerocher graemerocher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is test.jar missing from the commit? The test appears to be failing and "build/resources/test/test.jar" doesn't exist

@graemerocher
Copy link
Contributor

//cc @rfscholte

@rfscholte
Copy link
Contributor Author

that's absolutely possible. Currently enjoying JCrete, while this code is still at home. I'll come back on this next week.

@graemerocher
Copy link
Contributor

thank you!

@graemerocher
Copy link
Contributor

unfortunately seems to break native image support. Let me investigate what can be done

@graemerocher graemerocher merged commit f3b381a into micronaut-projects:4.6.x Aug 6, 2024
12 checks passed
@graemerocher
Copy link
Contributor

Thanks for the contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: improvement A minor improvement to an existing feature
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Can't find micronautserviceconfigs when running as jlink-ed application
3 participants