You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The output of the quarkusShowEffectiveConfig task shows that the value is ignored, and the banner printed on app start uses the default project name: 2024-05-03 17:44:40,384 INFO [io.quarkus] (main) code-with-quarkus 1.0.0-SNAPSHOT on JVM (powered by Quarkus 3.10.0) started in 0.395s. Listening on: http://0.0.0.0:8080
Expected behavior
The output of ./gradlew -Dquarkus.application.name=my-overridden-app-name quarkusShowEffectiveConfig should show the value of the quarkus.application.name property to be my-overridden-app-name
Actual behavior
The output of ./gradlew -Dquarkus.application.name=my-overridden-app-name quarkusShowEffectiveConfig shows the value of the quarkus.application.name property to be the default, which is code-with-quarkus
How to Reproduce?
Generate a Quarkus project via https://code.quarkus.io/ using Gradle as the build tool and add the Kotlin extension
Run the quarkusShowEffectiveConfig from the root, providing a value for quarkus.application.name via the system property: ./gradlew -Dquarkus.application.name=my-overridden-app-name quarkusShowEffectiveConfig
Output of uname -a or ver
Darwin UKIMG9M7DG60QR 23.4.0 Darwin Kernel Version 23.4.0: Fri Mar 15 00:10:42 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6000 arm64
Output of java -version
openjdk version "21.0.2" 2024-01-16 LTS OpenJDK Runtime Environment Corretto-21.0.2.13.1 (build 21.0.2+13-LTS) OpenJDK 64-Bit Server VM Corretto-21.0.2.13.1 (build 21.0.2+13-LTS, mixed mode, sharing)
Quarkus version or git rev
3.10.0
Build tool (ie. output of mvnw --version or gradlew --version)
Gradle 8.6
Additional information
No response
The text was updated successfully, but these errors were encountered:
Encountered a closely related issue as quarkus.application.name put into application.yml also gets ignored. Already found the same code fragment to be responsible for it. As a workaround the property can be added as extra property on the gradle project which makes it end up in AbstractQuarkusExtension.forcedProperties which has a higher priority in EffectiveConfig:
Describe the bug
According to https://quarkus.io/guides/gradle-tooling#configuring-quarkus-builds, build config can be provided by passing system properties to Gradle, but providing a value for
quarkus.application.name
does not have any effect.The output of the
quarkusShowEffectiveConfig
task shows that the value is ignored, and the banner printed on app start uses the default project name:2024-05-03 17:44:40,384 INFO [io.quarkus] (main) code-with-quarkus 1.0.0-SNAPSHOT on JVM (powered by Quarkus 3.10.0) started in 0.395s. Listening on: http://0.0.0.0:8080
Expected behavior
The output of
./gradlew -Dquarkus.application.name=my-overridden-app-name quarkusShowEffectiveConfig
should show the value of thequarkus.application.name
property to bemy-overridden-app-name
Actual behavior
The output of
./gradlew -Dquarkus.application.name=my-overridden-app-name quarkusShowEffectiveConfig
shows the value of thequarkus.application.name
property to be the default, which iscode-with-quarkus
How to Reproduce?
quarkusShowEffectiveConfig
from the root, providing a value forquarkus.application.name
via the system property:./gradlew -Dquarkus.application.name=my-overridden-app-name quarkusShowEffectiveConfig
Output of
uname -a
orver
Darwin UKIMG9M7DG60QR 23.4.0 Darwin Kernel Version 23.4.0: Fri Mar 15 00:10:42 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6000 arm64
Output of
java -version
openjdk version "21.0.2" 2024-01-16 LTS OpenJDK Runtime Environment Corretto-21.0.2.13.1 (build 21.0.2+13-LTS) OpenJDK 64-Bit Server VM Corretto-21.0.2.13.1 (build 21.0.2+13-LTS, mixed mode, sharing)
Quarkus version or git rev
3.10.0
Build tool (ie. output of
mvnw --version
orgradlew --version
)Gradle 8.6
Additional information
No response
The text was updated successfully, but these errors were encountered: