Codecov Maven Plugin

Maven goal for upload reports to Codecov

License

License

Categories

Categories

Maven Build Tools
GroupId

GroupId

dev.alexengrig
ArtifactId

ArtifactId

codecov-maven-plugin
Last Version

Last Version

1.0
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

Codecov Maven Plugin
Maven goal for upload reports to Codecov
Project URL

Project URL

https://github.com/alexengrig/codecov-maven-plugin
Source Code Management

Source Code Management

https://github.com/alexengrig/codecov-maven-plugin.git

Download codecov-maven-plugin

How to add to project

<plugin>
    <groupId>dev.alexengrig</groupId>
    <artifactId>codecov-maven-plugin</artifactId>
    <version>1.0</version>
</plugin>

Dependencies

provided (4)

Group / Artifact Type Version
org.apache.maven : maven-plugin-api jar 3.3.9
org.apache.maven : maven-core jar 3.3.9
org.apache.maven : maven-artifact jar 3.3.9
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.6.0

test (3)

Group / Artifact Type Version
org.apache.maven : maven-compat jar 3.3.9
junit : junit jar 4.12
org.apache.maven.plugin-testing : maven-plugin-testing-harness jar 3.3.0

Project Modules

There are no modules declared in this project.

codecov-maven-plugin Maven Central JavaDoc GitHub

travis-ci codecov

Upload reports to Codecov based on bash script.

Get Started

Add this code (using JaCoCo Plugin for generate report) to your pom.xml:

<build>
    <plugins>
        <!-- JaCoCo Plugin -->
        <plugin>
            <groupId>org.jacoco</groupId>
            <artifactId>jacoco-maven-plugin</artifactId>
            <version>0.8.5</version>
            <executions>
                <execution>
                    <goals>
                        <goal>prepare-agent</goal>
                    </goals>
                </execution>
                <execution>
                    <id>report</id>
                    <phase>test</phase>
                    <goals>
                        <goal>report</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>
        <!-- Codecov Plugin -->
        <plugin>
            <groupId>dev.alexengrig</groupId>
            <artifactId>codecov-maven-plugin</artifactId>
            <version>1.0</version>
            <executions>
                <execution>
                    <id>upload</id>
                    <phase>test</phase>
                    <goals>
                        <goal>upload</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>
    </plugins>
</build>

Add CODECOV_TOKEN with your token of Codecov project to environment variables in your TravisCI project repository.

License

This project is licensed under Apache License, version 2.0.

Versions

Version
1.0