Giter Club home page Giter Club logo

gradleutils's Introduction

gradleUtils

Providing some useful utilities for android gradle development.

javadoc.gradle

Provides the possibility to generate Javadoc with gradle task: generate$Variant$Javadoc. Output folder is /build/outputs/javadoc/$Variant$

Installation

add the following line to your app build.grade: https://raw.githubusercontent.com/Plinzen/gradleUtils/master/javadoc.gradle

countGitCommits.gradle

Provides a function to count the git commits in your project. Sample usage:

def numberOfCommits = countGitCommits();
versionCode 8000 + numberOfCommits
versionName "0.8.$numberOfCommits"

Installation

add the following line to your app build.grade: https://raw.githubusercontent.com/Plinzen/gradleUtils/master/countGitCommits.gradle

checkstyle.gradle

Add some Checkstyle code analysis tasks. Works currently only without product flavor usage since some paths are hard coded.

Installation

  1. Copy the config-folder (containing checkstyle.xml and checkstyle.xsl) from the repository to your app-folder within your project. Your file structure should look similar to that:
project-root
 |-> app
      |->config
          |-> checkstyle.xml
          |-> checkstyle.xsl
  1. add the following line to your app build.grade: apply from: 'https://raw.githubusercontent.com/Plinzen/gradleUtils/master/checkstyle.gradle'

Usage

Run the gradle-tasks checkstyle or checkstyleReport: ./gradlew checkstyle checkstyleReport

On-the-Fly usage

Android Studio has an additional plugin CheckStyle-IDEA which can be installed and configured to use the rules from the config-folder. The plugin add a new window in the buttombar which shows all checkstyle warnings in the current scope.

gradleutils's People

Contributors

plinzen avatar

Stargazers

lilixie avatar

Watchers

James Cloos avatar  avatar lilixie avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.