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

Migrate extension Config to @ConfigMapping #600

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

gastaldi
Copy link
Contributor

@gastaldi
Copy link
Contributor Author

It fails with

Caused by: java.lang.ClassNotFoundException: io.quarkus.workshop.superheroes.version.deployment.VersionConfig
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
	at io.quarkus.bootstrap.classloading.QuarkusClassLoader.loadClass(QuarkusClassLoader.java:533)
	at io.quarkus.bootstrap.classloading.QuarkusClassLoader.loadClass(QuarkusClassLoader.java:481)
	at io.quarkus.bootstrap.classloading.QuarkusClassLoader.loadClass(QuarkusClassLoader.java:533)
	at io.quarkus.bootstrap.classloading.QuarkusClassLoader.loadClass(QuarkusClassLoader.java:481)
	at io.quarkus.runtime.configuration.AbstractConfigBuilder.withMapping(AbstractConfigBuilder.java:64)
	... 21 more

Not sure what's causing this, investigating

@dmlloyd
Copy link
Member

dmlloyd commented Sep 18, 2024

Run time config interfaces must be in the runtime artifact, not the deployment artifact; could it be that simple?

@radcortez
Copy link
Member

That is the most likely issue :)

@gastaldi
Copy link
Contributor Author

Weird how that always worked with @configroot, but that makes sense

@gastaldi gastaldi force-pushed the extension_config branch 2 times, most recently from 33d9c46 to 21aa7a0 Compare September 18, 2024 18:37
@gastaldi gastaldi requested a review from geoand September 18, 2024 18:37
Moving the config interface to runtime

If the config is runtime, the call to the config should be done in the recorder
Copy link

github-actions bot commented Sep 18, 2024

😭 Deploy PR Preview failed.

@dmlloyd
Copy link
Member

dmlloyd commented Sep 18, 2024

Previously it was not explicitly bound to a phase, so I guess it defaulted to "build time", which is probably why it worked before.

@geoand
Copy link
Collaborator

geoand commented Sep 18, 2024

+1

@gastaldi
Copy link
Contributor Author

Looks like it's ready to be merged now

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

Successfully merging this pull request may close these issues.

4 participants