-
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
java.util.NoSuchElementException: Property quarkus.application.name not found #9177
Comments
This only affects tests (a known limitation), dev-mode and the jar work properly. I propose that you do the following in order to make the property available in tests:
You could also set the value manually to what the artifactId of the project is (this is what Quarkus defaults to). |
Not, exactly dev mode not work ./gradlew quarkusDev It is stated in reproduction flow. |
I can provide simple test project. |
Then that is new. Yes please create a sample project and attach it to the issue. |
cc @aloubyansky who has done a lot of Gradle work lately |
Sample project. Generated from Starter, removed irrelevant REST resource and added Camel route. |
Thanks a lot for the reproducer. Bad news, looks like with master it's getting even worse
|
This is an example of a major issue in our gradle app model resolver. This wouldn't happen in an equivalent Maven project. Although, I think it's a good opportunity to review both and come up with a single principle to version alignment. |
Oh, once the version alignment is properly done, I'm seeing the original issue about the property not being found. |
Describe the bug
Config quarkus.application.name not accessible in application.properties
Expected behavior
${quarkus.application.name} should be interpolated.
Actual behavior
java.util.NoSuchElementException: Property quarkus.application.name not found
To Reproduce
Steps to reproduce the behavior:
`# Configuration file
camel.context.name = ${quarkus.application.name}
`
./gradlew quarkusDev
Configuration
Environment (please complete the following information):
uname -a
orver
: 19.4.0 Darwin Kernel Version 19.4.0java -version
: openjdk version "11.0.6" 2020-01-14 LTSmvnw --version
orgradlew --version
): Gradle 6.3The text was updated successfully, but these errors were encountered: