Describe the bug
Running a Quarkus app using ./gradlew quarkusRun always uses the prod profile irrespective of the value of quarkus.profile in application.properties. This is in contrast to packaging and running the app using ./gradlew build && java -jar build/quarkus-app/quarkus-run.jar.
Expected behavior
Gradle quarkusRun and running the JAR from Gradle build should have the same behaviour.
Actual behavior
Gradle quarkusRun always uses the prod profile.
Note also that, despite this, Gradle quarkusRun emits a log line on startup using the profile from application.properties; e.g., Profile dev activated.
How to Reproduce?
Reproducer: quarkus-reproducer.zip
Steps to reproduce
- Run the application using
./gradlew quarkusRun.
- Navigate to http://localhost:8080/hello in a browser.
Expected result
The browser displays the text Hello from Quarkus.
Actual result
The browser displays the text Hello from Production.
Output of uname -a or ver
Darwin Rods-MacBook-Pro.local 24.5.0 Darwin Kernel Version 24.5.0: Tue Apr 22 19:52:00 PDT 2025; root:xnu-11417.121.6~2/RELEASE_ARM64_T6031 arm64
Output of java -version
openjdk version "21.0.7" 2025-04-15 OpenJDK Runtime Environment Homebrew (build 21.0.7) OpenJDK 64-Bit Server VM Homebrew (build 21.0.7, mixed mode, sharing)
Quarkus version or git rev
3.23.4
Build tool (ie. output of mvnw --version or gradlew --version)
Gradle 8.14.1
Additional information
No response
Describe the bug
Running a Quarkus app using
./gradlew quarkusRunalways uses the prod profile irrespective of the value ofquarkus.profileinapplication.properties. This is in contrast to packaging and running the app using./gradlew build && java -jar build/quarkus-app/quarkus-run.jar.Expected behavior
Gradle quarkusRun and running the JAR from Gradle build should have the same behaviour.
Actual behavior
Gradle quarkusRun always uses the prod profile.
Note also that, despite this, Gradle quarkusRun emits a log line on startup using the profile from
application.properties; e.g.,Profile dev activated.How to Reproduce?
Reproducer: quarkus-reproducer.zip
Steps to reproduce
./gradlew quarkusRun.Expected result
The browser displays the text
Hello from Quarkus.Actual result
The browser displays the text
Hello from Production.Output of
uname -aorverDarwin Rods-MacBook-Pro.local 24.5.0 Darwin Kernel Version 24.5.0: Tue Apr 22 19:52:00 PDT 2025; root:xnu-11417.121.6~2/RELEASE_ARM64_T6031 arm64
Output of
java -versionopenjdk version "21.0.7" 2025-04-15 OpenJDK Runtime Environment Homebrew (build 21.0.7) OpenJDK 64-Bit Server VM Homebrew (build 21.0.7, mixed mode, sharing)
Quarkus version or git rev
3.23.4
Build tool (ie. output of
mvnw --versionorgradlew --version)Gradle 8.14.1
Additional information
No response