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

Gradle Task quarkusTest stopped working with version 2.6.1 #22663

Closed
stefannegele opened this issue Jan 5, 2022 · 2 comments · Fixed by #22667
Closed

Gradle Task quarkusTest stopped working with version 2.6.1 #22663

stefannegele opened this issue Jan 5, 2022 · 2 comments · Fixed by #22667
Assignees
Labels
area/gradle Gradle kind/bug Something isn't working
Milestone

Comments

@stefannegele
Copy link

stefannegele commented Jan 5, 2022

Describe the bug

./gradlew quarkusTest stopped working after upgrading Quarkus to version 2.6.1

./gradlew quarkusDev still works as expected (and also runs the tests, if told so)

Expected behavior

./gradlew quarkusTest runs quarkus in test mode

Actual behavior

Logs an error:

> Task :quarkusGenerateCode
preparing quarkus application

> Task :quarkusGenerateCodeTests
preparing quarkus application

> Task :quarkusTest FAILED

FAILURE: Build failed with an exception.

* What went wrong:
A problem was found with the configuration of task ':quarkusTest' (type 'QuarkusTest').
  - In plugin 'io.quarkus' type 'io.quarkus.gradle.tasks.QuarkusTest' property 'quarkusDevConfiguration' doesn't have a configured value.

    Reason: This property isn't marked as optional and no value has been configured.

    Possible solutions:
      1. Assign a value to 'quarkusDevConfiguration'.
      2. Mark property 'quarkusDevConfiguration' as optional.

    Please refer to https://docs.gradle.org/7.3.3/userguide/validation_problems.html#value_not_set for more details about this problem.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 9s
6 actionable tasks: 6 executed

How to Reproduce?

Steps to reproduce the behaviour:

  1. Download and unpack empty project with gradle from code.quarkus.io
  2. Run ./gradlew quarkusTest inside the folder

Output of uname -a or ver

Darwin FXMBPFVFF771GQ05N 21.2.0 Darwin Kernel Version 21.2.0: Sun Nov 28 20:29:10 PST 2021; root:xnu-8019.61.5~1/RELEASE_ARM64_T8101 arm64

Output of java -version

openjdk version "11.0.13" 2021-10-19

GraalVM version (if different from Java)

OpenJDK Runtime Environment GraalVM CE 21.3.0 (build 11.0.13+7-jvmci-21.3-b05)

Quarkus version or git rev

2.6.1

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

Gradle 7.3.3

Additional information

No response

@stefannegele stefannegele added the kind/bug Something isn't working label Jan 5, 2022
@quarkus-bot
Copy link

quarkus-bot bot commented Jan 5, 2022

/cc @glefloch, @quarkusio/devtools

@stefannegele
Copy link
Author

Thanks a lot, that was quick!

@gsmet gsmet modified the milestones: 2.7 - main, 2.6.2.Final Jan 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/gradle Gradle kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants