Sign the Contributor License Agreement (CLA). This is required before any of your code or pull-requests are accepted.
If you are interested in contributing to Micronaut and are looking for issues to work on, take a look at the issues tagged with help wanted.
Micronaut Kafka currently requires JDK 8.
Micronaut Kafka can be imported into IntelliJ IDEA by opening the build.gradle
file.
Micronaut Kafka tests currently require Docker to be installed.
To run the tests, use ./gradlew check
.
The documentation sources are located at src/main/docs/guide
.
To build the documentation, run ./gradlew publishGuide
(or ./gradlew pG
), then open build/docs/index.html
To also build the Javadocs, run ./gradlew docs
.
If you use IntelliJ IDEA, you can import the project using the Intellij Gradle Tooling ("File / Import Project" and selecting the "settings.gradle" file).
To get a local development version of Micronaut XXX working, first run the publishToMavenLocal
task.
./gradlew pTML
You can then reference the version specified with projectVersion
in gradle.properties
in a test project's build.gradle
or pom.xml
. If you use Gradle, add the mavenLocal
repository (Maven automatically does this):
repositories {
mavenLocal()
mavenCentral()
}
Once you are satisfied with your changes:
- Commit your changes in your local branch
- Push your changes to your remote branch on GitHub
- Send us a pull request
We want to keep the code clean, following good practices about organization, Javadoc, and style as much as possible.
Micronaut XXX uses Checkstyle to make sure that the code follows those standards. The configuration is defined in config/checkstyle/checkstyle.xml
. To execute Checkstyle, run:
./gradlew <module-name>:checkstyleMain
Before starting to contribute new code we recommended that you install the IntelliJ CheckStyle-IDEA plugin and configure it to use Micronaut's checkstyle configuration file.
IntelliJ will mark in red the issues Checkstyle finds. For example:
In this case, to fix the issues, we need to:
- Add one empty line before
package
in line 16 - Add the Javadoc for the constructor in line 27
- Add an space after
if
in line 34
The plugin also adds a new tab in the bottom of the IDE to run Checkstyle and show errors and warnings. We recommend that you run the report and fix all issues before submitting a pull request.
All files should contain the license header which can be added automatically by running:
./gradlew spotlessApply
The copyright year should be updated manually when editing existing files.