Skip to content

Commit

Permalink
feat: Add maven central publishing functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobi2K committed Mar 28, 2023
1 parent 41c3931 commit cbb78d4
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,20 @@ The reporter outputs the following format:

For more information about custom reporters, see the documentation [here](https://github.com/pinterest/ktlint#creating-a-reporter)


## Other Download Options
Besides downloading the `ktlint-gitlab-reporter.jar` file directly you can use the published package from Maven Central:
```
repositories {
mavenCentral()
}
dependencies {
implementation 'io.github.tobi2k:ktlint-gitlab-reporter:x.y.z'
}
```
> Note: AFAIK it is not possible to use the package as a reporter directly in ktlint, but you can automatically download the reporter using your preferred build tool (e.g., Gradle or Maven).
## Export artifacts in GitLab CI
This is a very small example on how to incorporate this custom reporter into GitLab CI.
It is assumed, that you generally know how to use GitLab CI. Read up [here](https://docs.gitlab.com/ee/ci/).
Expand Down

0 comments on commit cbb78d4

Please sign in to comment.