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

[1.13.7] Using dotenv file and get unrecognized configuration key warn. #17818

Closed
edufolly opened this issue Jun 9, 2021 · 4 comments · Fixed by #18008
Closed

[1.13.7] Using dotenv file and get unrecognized configuration key warn. #17818

edufolly opened this issue Jun 9, 2021 · 4 comments · Fixed by #18008
Assignees
Labels
area/config kind/bug Something isn't working
Milestone

Comments

@edufolly
Copy link

edufolly commented Jun 9, 2021

Describe the bug

Get this warn message:

2021-06-09 20:33:16,068 WARN  [io.qua.config] (Quarkus Main Thread) Unrecognized configuration key "quarkus.hibernate.orm.database.generation" was provided; it will be ignored; verify that the dependency extension for this configuration is set or that you did not make a typo
2021-06-09 20:33:16,068 WARN  [io.qua.config] (Quarkus Main Thread) Unrecognized configuration key "quarkus.datasource.db.kind" was provided; it will be ignored; verify that the dependency extension for this configuration is set or that you did not make a typo

Expected behavior

No warn message for QUARKUS_DATASOURCE_DB_KIND and QUARKUS_HIBERNATE_ORM_DATABASE_GENERATION.

Actual behavior

Quarkus works fine, but the warning message is shown.

If I set QUARKUS_DATASOURCE_DB-KIND=postgresql the warning message is not displayed, but Quarkus doesn't work correctly. Same behavior for QUARKUS_HIBERNATE_ORM_DATABASE_GENERATION=drop-and-create.

To Reproduce

Create any project with dotenv file and add some property with -.

Configuration

QUARKUS_DATASOURCE_DB_KIND=postgresql
QUARKUS_DATASOURCE_USERNAME=postgres
QUARKUS_DATASOURCE_PASSWORD=postgres
QUARKUS_DATASOURCE_JDBC_URL=jdbc:postgresql://localhost:5432/hibernate_dev
QUARKUS_HIBERNATE_ORM_DATABASE_GENERATION=drop-and-create

Environment (please complete the following information):

Output of uname -a or ver

Darwin MacBook.local 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33 PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64

Output of java -version

openjdk 11.0.11 2021-04-20
OpenJDK Runtime Environment AdoptOpenJDK-11.0.11+9 (build 11.0.11+9)
OpenJDK 64-Bit Server VM AdoptOpenJDK-11.0.11+9 (build 11.0.11+9, mixed mode)

Quarkus version or git rev

1.13.7

Build tool (ie. output of mvnw --version or gradlew --version)


Gradle 6.8.3

Build time: 2021-02-22 16:13:28 UTC
Revision: 9e26b4a9ebb910eaa1b8da8ff8575e514bc61c78

Kotlin: 1.4.20
Groovy: 2.5.12
Ant: Apache Ant(TM) version 1.10.9 compiled on September 27 2020
JVM: 11.0.11 (AdoptOpenJDK 11.0.11+9)
OS: Mac OS X 11.4 x86_64

@edufolly edufolly added the kind/bug Something isn't working label Jun 9, 2021
@quarkus-bot
Copy link

quarkus-bot bot commented Jun 9, 2021

/cc @evanchooly

@kontoeniki
Copy link

Same with 1.13.6.Final. Until 1.13.4 the underscore configuration worked fine.

@gsmet
Copy link
Member

gsmet commented Jun 10, 2021

/cc @radcortez

@radcortez
Copy link
Member

This was fixed with #17798. It seems we didn't backport it. Anyway, I'll add these as an additional test case to make sure it is correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/config kind/bug Something isn't working
Projects
None yet
4 participants