Skip to content

sonalake/shotgun-gradle-plugin

Repository files navigation

Shotgun Gradle Plugin

CI Build codecov

A gradle configuration plugin for shotgun

Using the plugin

In build.gradle

Add the plugin (more details in plugins.gradle.org)

plugins {
  id 'com.sonalake.shotgun-gradle-plugin' version "1.0.0"
}

Configuring the plugin

The minimum configuration is a simple

shotgun

This will scan the current directory, and using defaults, will write out to .shotgun/report.html

The default options are suitable for most java projects

shotgun {
  inputDirectory            = "$projectDir"
  outputFile                = ".shotgun/report.htm"
  sourceSets                = ["src/main/java",
                                "src/main/resources",
                                "src/main/webapp",
                                "src/test/java",
                                "src/test/resources"]
  minimumCommitInterest     =   3
  topCommitValueForFileSets =   10
  topCommitValueForFiles    =   40
  legendLevels              =   [10, 20, 30, 50, 80, 120]
}

Running the plugin

Simple enough

./gradlew shotgun

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages