-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Smallrye ConfigSourceFactory not loading class #21703
Comments
Seems to be an issue in the generate code mojo (egg/chicken problem?). |
Yes, but then the code doesn't compile - we use quarkus-avro. |
Sure, not saying it's the solution, just something I observed while running the steps to reproduce it 😉 |
Caused by #20819 and quarkus/core/deployment/src/main/java/io/quarkus/deployment/CodeGenerator.java Lines 95 to 98 in d06fa24
@michalszynkiewicz can we disable discover sources for this Config instance? I believe no one is expecting to have their sources contributing config here. |
Or if it is really required, any configuration component that requires compilation needs to be into a separate module. |
@radcortez if I understand the quesiton correctly, then the answer is yes. |
Describe the bug
When using a
ConfigSourceFactory
the class is not loaded and the build (both maven and gradle) fails with:Goals tested:
quarkus:dev
,compile
,package
.The class referenced in the
src/main/resources/META-INF/services/io.smallrye.config.ConfigSourceFactory
file is being loaded before its compilation.Works when using Quarkus 1.13.4.
Expected behavior
The config factory should be loaded and executed.
Actual behavior
Buidl failes with:
How to Reproduce?
Run quarkus:dev to reproduce:
A "workaround":
Run
./mvnw compile
Uncomment the class
Run:
bidder-maven.zip
Output of
uname -a
orver
Darwin Andre-MacBook-Pro.local 20.6.0 Darwin Kernel Version 20.6.0: Mon Aug 30 06:12:21 PDT 2021; root:xnu-7195.141.6~3/RELEASE_X86_64 x86_64
Output of
java -version
openjdk version "17.0.1" 2021-10-19 OpenJDK Runtime Environment GraalVM CE 21.3.0 (build 17.0.1+12-jvmci-21.3-b05) OpenJDK 64-Bit Server VM GraalVM CE 21.3.0 (build 17.0.1+12-jvmci-21.3-b05, mixed mode, sharing)
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.5.0.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.8.1 (05c21c65bdfed0f71a2f2ada8b84da59348c4c5d)
Additional information
No response
The text was updated successfully, but these errors were encountered: