• Stars
    star
    131
  • Rank 266,501 (Top 6 %)
  • Language
    Groovy
  • License
    MIT License
  • Created over 8 years ago
  • Updated about 1 month ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Gradle quality plugin for Java and Groovy

Gradle quality plugin

License CI Appveyor build status codecov

DOCUMENTATION http://xvik.github.io/gradle-quality-plugin

About

Static code analysis for Java and Groovy projects using Checkstyle, PMD, CPD, SpotBugs and CodeNarc. Plugin implements unified console output for all quality plugins, which greatly simplifies developer workflow: only console required for working with violations and makes it feel the same as java compiler errors.

For example, in IntelliJ Idea it would look like:

Features:

  • Zero configuration by default: provided opinionated configs applied to all quality plugins
    • Default configuration files may be customized
  • Adds extra javac lint options to see more warnings
  • Complete console output for all quality plugins
  • Html and xml reports for all plugins (custom xsl used for findbugs html report because it can't generate both xml and html reports)
  • Grouping tasks to run registered quality plugins for exact source set (e.g. checkQualityMain)
Summary
  • Configuration: quality
  • Tasks:
    • initQualityConfig - copy default configs for customization
    • checkQuality[Main] - run quality tasks for main (or any other) source set
  • Enable plugins: Checkstyle, PMD, SpotBugs, CodeNarc

Setup

NOTE: when updating plugin version in your project don't forget to call clean task to remove cached configs from previous plugin version

Maven Central Gradle Plugin Portal

plugins {
    id 'ru.vyarus.quality' version '4.9.0'
}

OR

buildscript {
    repositories {
        mavenCentral()
        gradlePluginPortal()
    }
    dependencies {
        classpath 'ru.vyarus:gradle-quality-plugin:4.9.0'
    }
}
apply plugin: 'ru.vyarus.quality'

Minimal requirements: java 8, gradle 5.6

Compatibility

Plugin compiled for java 8, compatible with java 11

Gradle Version
5.6-8 4.9.0
5.1 4.2.2
4.1 3.4.0
older 2.4.0

Java tools require sourceCompatibility=1.8 (or above).

Version 3.3.0 is the latest supporting sourceCompatibility=1.6

Snapshots

Snapshots may be used through JitPack
  • Go to JitPack project page
  • Select Commits section and click Get it on commit you want to use (you may need to wait while version builds if no one requested it before) or use master-SNAPSHOT to use the most recent snapshot

For gradle before 6.0 use buildscript block with required commit hash as version:

buildscript {
    repositories {
        maven { url 'https://jitpack.io' }
    }
    dependencies {
        classpath 'ru.vyarus:gradle-quality-plugin:b9474cab84'
    }
}
apply plugin: 'ru.vyarus.quality'

For gradle 6.0 and above:

  • Add to settings.gradle (top most!) with required commit hash as version:

    pluginManagement {
        resolutionStrategy {
            eachPlugin {
                if (requested.id.namespace == 'ru.vyarus.quality') {
                    useModule('ru.vyarus:gradle-quality-plugin:b9474cab84')
                }
            }
        }
        repositories {
            maven { url 'https://jitpack.io' }
            gradlePluginPortal()          
        }
    }    
  • Use plugin without declaring version:

    plugins {
        id 'ru.vyarus.quality'
    }

Usage

Read documentation

Might also like


gradle plugin generator

More Repositories

1

dropwizard-guicey

Dropwizard guice integration
Java
227
star
2

gradle-use-python-plugin

Use python modules in gradle build
Groovy
68
star
3

gradle-animalsniffer-plugin

Gradle AnimalSniffer plugin
Groovy
51
star
4

generics-resolver

Java generics runtime resolver
Java
45
star
5

generator-lib-java

Yeoman generator for java library
JavaScript
41
star
6

gradle-mkdocs-plugin

Mkdocs documentation generation and publishing plugin
Groovy
38
star
7

guice-validator

Guice javax.validation method validation integration
Java
37
star
8

gradle-pom-plugin

Gradle POM plugin
Groovy
35
star
9

guice-persist-orient

Guice integartion for OrientDB
Java
34
star
10

guice-ext-annotations

Guice annotations extensions
Java
22
star
11

dropwizard-guicey-examples

Dropwizard guicey examples
Java
19
star
12

gradle-java-lib-plugin

Gradle maven publishing configuration for Java or Groovy library or gradle plugin
Groovy
18
star
13

dropwizard-orient-server

Embedded OrientDB server for dropwizard
Java
16
star
14

dropwizard-guicey-ext

Dropwizard-guicey extensions
Java
14
star
15

gradle-github-info-plugin

Gradle Github info plugin
Groovy
12
star
16

yaml-updater

Yaml configuration merge tool
Java
10
star
17

generator-gradle-plugin

Yeoman generator for gradle plugin
JavaScript
10
star
18

spock-junit5

Junit 5 extensions support for Spock Framework 2
Java
7
star
19

slush-lib-java

Slush generator for java library
XSLT
4
star
20

windofburi

Wind of Buri music web player
JavaScript
2
star
21

guice-persist-orient-examples

Examples repository for guice-persist-orient
Java
1
star
22

yo-java-helper

Yeoman helper for Java generators
JavaScript
1
star