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 Quarkus app I'm writing is made up entirely of extensions, and requires no source of its own. There are tests to make sure that everything wired up correctly. This means that the application project looks like this:
$ find -type f
./build.gradle
./src/test/java/org/acme/ExampleTest.java
It appears that the Quarkus Gradle app plugin expects a build/classes/java/main to exist. When running a build, I get this:
$ gradle build
Configuration on demand is an incubating feature.
> Task :app:test FAILED
ExampleTest > test() FAILED
java.lang.RuntimeException at QuarkusTestExtension.java:632
Caused by: java.lang.IllegalArgumentException at PathTree.java:28
Caused by: java.nio.file.NoSuchFileException at UnixException.java:92
1 test completed, 1 failed
FAILURE: Build failed with an exception.
Expected behavior
The Quarkus Gradle app should recognize that the directory doesn't exist because there's no source and simply accept that there will be an empty list of classes.
Actual behavior
The Quarkus Gradle app crashes with a file access exception. Checking the contents of the stack, the relevant stack frame says:
The workaround that I've used is to drop an empty public class EmptyClass {} in src/main/java to bypass this.
How to Reproduce?
Steps to reproduce:
Create deployment and runtime extension projects.
Create an app project which depends on the runtime project.
Add a QuarkusTest with a "test" function to the src/main/test of the app project. The test function can be empty and test nothing; the key is simply that an eligible test is detected by JUnit so the testing suite starts.
Run "gradle build" in the app project or root project.
Output of uname -a or ver
Linux jacob-ubuntu-dev 5.15.0-35-generic #36-Ubuntu SMP Sat May 21 02:24:07 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Output of java -version
openjdk version "11.0.15" 2022-04-19 OpenJDK Runtime Environment (build 11.0.15+10-Ubuntu-0ubuntu0.22.04.1) OpenJDK 64-Bit Server VM (build 11.0.15+10-Ubuntu-0ubuntu0.22.04.1, mixed mode, sharing)
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.9.2.Final
Build tool (ie. output of mvnw --version or gradlew --version)
Gradle 7.4.2
Additional information
Reproduction git repo will be in the comments once I get the issue number.
The text was updated successfully, but these errors were encountered:
Describe the bug
The Quarkus app I'm writing is made up entirely of extensions, and requires no source of its own. There are tests to make sure that everything wired up correctly. This means that the application project looks like this:
It appears that the Quarkus Gradle app plugin expects a build/classes/java/main to exist. When running a build, I get this:
Expected behavior
The Quarkus Gradle app should recognize that the directory doesn't exist because there's no source and simply accept that there will be an empty list of classes.
Actual behavior
The Quarkus Gradle app crashes with a file access exception. Checking the contents of the stack, the relevant stack frame says:
The workaround that I've used is to drop an empty
public class EmptyClass {}
in src/main/java to bypass this.How to Reproduce?
Steps to reproduce:
Output of
uname -a
orver
Linux jacob-ubuntu-dev 5.15.0-35-generic #36-Ubuntu SMP Sat May 21 02:24:07 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Output of
java -version
openjdk version "11.0.15" 2022-04-19 OpenJDK Runtime Environment (build 11.0.15+10-Ubuntu-0ubuntu0.22.04.1) OpenJDK 64-Bit Server VM (build 11.0.15+10-Ubuntu-0ubuntu0.22.04.1, mixed mode, sharing)
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.9.2.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Gradle 7.4.2
Additional information
Reproduction git repo will be in the comments once I get the issue number.
The text was updated successfully, but these errors were encountered: