This plugin allows to publish reports from different formats to different APIs. As an example you can already send reports from CoveragePy, LCov, Jacoco and OpenClover to frameworks like Coveralls, Codecov and Codacy.
This plugin is a spin-off from the development of it's maven counterpart: . Both the maven plugin and this one are developed hand in hand. However, their versions may deviate a bit:
Maven Plugin | Gradle Plugin |
---|---|
Please check the Docs for further information on how to configure the plugin. The configurations are very much alike. The main difference is that where in Maven
you work with XML format, with gradle you work with JSON
like these examples:
omniConfig {
extraSourceFolders = [new File("$rootDir/international-airports-gui")]
extraReportFolders = [new File("$rootDir/international-airports-gui/coverage")]
}
configure<OmniReporterPluginExtension> {
extraSourceFolders = listOf(File("$rootDir/international-airports-gui"))
extraReportFolders = listOf(File("$rootDir/international-airports-gui/coverage"))
}
Please find all the release notes on this separate document ReleaseNotes.md.
This plugin is being tested for versions >= Gradle 7.3.3. For older versions, I cannot guarantee compatibility. During the migration of one of my projects ( i.e. ), I noticed that I was getting a Kotlin related error. The first thought was just to add one of the Kotlin SDK's as a dependency. However, after thorough search, I also noticed that my Gradle Wrapper was version 5.2.1. Just by doing an update, it started working as expected. This is not to say that anything in between won't work. I'm just not promising any compatibility with older versions than the stated one.
gradle clean build test
./gradlew publishMavenPublicationToOSSRHRepository
The rest manually in Nexus Sonatype.
This file is mandatory before a release:
gradle.properties
:
ossrhUsername=<ossrhUsername>
ossrhPassword=<ossrhPassword>
signing.keyId=<signing.keyId>
signing.password=<signing.password>
signing.secretKeyRingFile=/Users/<user>/.gnupg/secring.gpg
Generate the signing fields(if not already available. check with gpg -K
first!):
gpg --full-generate-key
gpg -K
gpg --keyring secring.gpg --export-secret-keys > ~/.gnupg/secring.gpg
gpg --keyserver keyserver.ubuntu.com --send-keys <KEY>
gpg --full-generate-key
- Key generationgpg -K
- Lists keys. TheKeyId
is the last 8 Digits of the GPG keygpg --keyring secring.gpg --export-secret-keys > ~/.gnupg/secring.gpg
- Exports the keys tosecring.gpg
gpg --keyserver keyserver.ubuntu.com --send-keys <KEY>
- Exports the key so that Sonatype can verify the release
- Codacy Coverage Reporter
- Jackson Module
- XCode Environment Variable Reference
- Cross-CI reference
- Coveralls API reference
- Git Hub Environment Variables
- Git Lab Environment Variables
- Check Run Reporter
- Codacy Maven Plugin
- Coveralls Maven Plugin
- Example Java Maven for CodeCov
- CodeCov Maven Plugin
- Working with PGP Signatures
- How to publish artifact to Maven Central via Gradle
- Deploying to OSSRH with Gradle - Introduction
- Writing a simple plugin