-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Runtime property being resolved at build time #44246
Comments
@cdsap @radcortez not sure if it's a Gradle or SmallRye Config regression but it looks serious. |
I'll have a look. |
@radcortez can you reproduce it?
Pointing to |
It’s subtle, but the OP mentions that it’s a regression on main; i.e., you’ll need to build Quarkus locally so that |
Thanks a lot for reporting this issue! |
Describe the bug
Some configuration properties which are supposed to be resolved at runtime are being resolved at build time, resulting in build errors when referencing runtime properties such as
user.home
. This appears to be a regression on main and does not affect the released version 3.15.1.Expected behavior
quarkus.log.file.path
is resolved at runtime.Actual behavior
quarkus.log.file.path
is resolved at build time.How to Reproduce?
Reproducer: quarkus-reproducer.zip
Steps to reproduce
Add or edit this line in
application.properties
:Run
./gradlew quarkusAppPartsBuild
.The following error is reported:
Output of
uname -a
orver
Darwin Rods-MacBook-Pro.local 24.0.0 Darwin Kernel Version 24.0.0: Tue Sep 24 23:35:10 PDT 2024; root:xnu-11215.1.12~1/RELEASE_ARM64_T6031 arm64
Output of
java -version
openjdk version "21.0.4" 2024-07-16 OpenJDK Runtime Environment Homebrew (build 21.0.4) OpenJDK 64-Bit Server VM Homebrew (build 21.0.4, mixed mode, sharing)
Quarkus version or git rev
e81fa0c
Build tool (ie. output of
mvnw --version
orgradlew --version
)Gradle 8.9
Additional information
No response
The text was updated successfully, but these errors were encountered: