-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25772 from sebersole/README
Work on README for Gradle plugin projects
- Loading branch information
Showing
4 changed files
with
119 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
= Quarkus Gradle Support | ||
:app-plugin-path: ./gradle-application-plugin | ||
:extension-plugin-path: ./gradle-extension-plugin | ||
|
||
Gradle plugins for building xref:{app-plugin-path}/README.adoc[Quarkus applications] and | ||
building xref:{extension-plugin-path}/README.adoc[Quarkus extensions]. | ||
|
||
|
||
[[dev]] | ||
== Develop | ||
|
||
Before starting development on these plugins, be sure to have <<build,built>> the project. | ||
|
||
For IntelliJ users, see the notes for <<importing-intellij,importing>> the project. | ||
|
||
Be sure to see the notes about <<testing,testing>> your changes. | ||
|
||
|
||
[[build]] | ||
== Building | ||
|
||
Generally, after each pull or rebase the entire project should be built: | ||
|
||
[source] | ||
---- | ||
./mvnw -Dquickly | ||
---- | ||
|
||
This builds the entire Quarkus codebase and publishes everything to mavenLocal. | ||
|
||
From there, this project works like any normal Gradle build. Run Gradle commands here | ||
or any of the subprojects. | ||
|
||
However, see the important notes about <<testing, testing>>. | ||
|
||
|
||
[[testing]] | ||
== Running Tests | ||
|
||
Each subproject defines its own set of tests which can just be run using normal Gradle operations. | ||
|
||
There are also integration tests located in `integration-tests/gradle`. | ||
|
||
[IMPORTANT] | ||
==== | ||
Before running integration tests, it is important that the entire Quarkus codebase be <<build,built>> | ||
and published into mavenLocal. | ||
==== | ||
|
||
To run the integration tests, from the `integration-tests/gradle` directory: | ||
|
||
[source, bash] | ||
---- | ||
./mvnw test | ||
---- | ||
|
||
A single integration test can be run by itself: | ||
|
||
[source, bash] | ||
---- | ||
./mvnw test -Dtest=<test-class-name> | ||
---- | ||
|
||
[NOTE] | ||
==== | ||
See <<alt-testing>> for an alternative approach to integration testing. | ||
==== | ||
|
||
|
||
[[importing-intellij]] | ||
== 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-plugin` and re-import as a Gradle project. | ||
|
||
|
||
[[alt-testing]] | ||
== Alternative Testing | ||
|
||
Another option for testing the plugin is to create a local project that uses the plugin and the features you are working on. | ||
|
||
Again, be sure the entire project is <<build,built>>, then run the following: | ||
|
||
[source,bash] | ||
---- | ||
mvn io.quarkus:quarkus-maven-plugin:999-SNAPSHOT:create \ | ||
-DprojectGroupId=${groupName} \ | ||
-DprojectArtifactId=${name} \ | ||
-DclassName="org.acme.quickstart.GreetingResource" \ | ||
-DplatformArtifactId=quarkus-bom \ | ||
-Dpath="/hello" \ | ||
-DbuildTool=gradle | ||
---- | ||
|
||
Follow the instructions in the https://quarkus.io/guides/gradle-tooling[Gradle Tooling Guide] for more information about the available commands. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
= Quarkus Application Gradle Plugin | ||
:root-project-path: .. | ||
|
||
Gradle plugin for developing Quarkus Applications | ||
|
||
Releases are published at https://plugins.gradle.org/plugin/io.quarkus. | ||
|
||
Topics related to developing this plugin are covered in xref:{root-project-path}/README.adoc. | ||
|
||
// todo : document usage of this plugin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
= Quarkus Extension Gradle Plugin | ||
:root-project-path: .. | ||
|
||
Gradle plugin for developing Quarkus Extensions | ||
|
||
Releases are published at https://plugins.gradle.org/plugin/io.quarkus.extension. | ||
|
||
Most topics regarding developing this plugin are covered in xref:{root-project-path}/README.adoc. | ||
|
||
// todo : document usage of this plugin |