mirror of
https://github.com/jlengrand/quarkus.git
synced 2026-03-10 08:41:22 +00:00
This changes the way Quarkus ClassLoading works, to allow for isolated class loaders. It also unifies how Quarkus is launched, so every different mode we support uses the same mechanism for both curation and launch. Tests are now run in an isolated ClassLoader, which means that a proxy is created that runs the tests from within the isolated ClassLoader. This currently has a quirk where @BeforeAll methods are run twice, which will be fixed in the next JUnit release. This can be worked around by using @QuarkusBeforeAll.
Quarkus Gradle Plugin
Builds a Quarkus application, and provides helpers to launch dev-mode, the Quarkus CLI and the build of native images.
Releases are published at https://plugins.gradle.org/plugin/io.quarkus .
Functional Tests
To run the functional tests, run the following command:
./gradlew functionalTests
Local development
-
Build the entire Quarkus codebase by running
mvn clean install -DskipTests -DskipITsin the project root- This should install the Gradle plugin in your local maven repository.
-
Create a sample project using the Maven plugin:
mvn io.quarkus:quarkus-maven-plugin:999-SNAPSHOT:create \
-DprojectGroupId=org.acme \
-DprojectArtifactId=my-gradle-project \
-DclassName="org.acme.quickstart.GreetingResource" \
-DplatformArtifactId=quarkus-bom \
-Dpath="/hello" \
-DbuildTool=gradle
Follow the instructions in the Gradle Tooling Guide for more information about the available commands.
Importing using Intellij
Disable "Maven Auto Import" for the Quarkus projects. Since the Gradle plugin has a pom.xml, IntelliJ will configure this project as a Maven project. You need to configure it to be a Gradle project. To do so, follow these instructions:
- Go to File -> Project Structure
- In Modules, remove the
quarkus-gradle-pluginand re-import as a Gradle project.