Skip to content

slim-gears/gradle-aio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gradle Android and Java All-In-One

Build Status

This plugin's purpose is to reduce a gradle boilerplate for typical build.gradle scripts for and java gradle projects.

This plugins automatically applies the following plugins for android project:

  • Android SDK manager plugin - automated resolving of all required android libraries and SDKs
  • Android plugin
  • Retrolambda plugin
  • Android APT plugin
  • When needed, it applies also Google Play Services plugin
  • Unit tests:
    • mockito
    • robolectric
    • junit

For java projects it applies followin:

  • Retrolambda plugin
  • Java APT plugin
  • Unit tests:
    • mockito
    • junit

Usage

For android:

Root project
buildscripts {
    repositories {
        jcenter()
        maven { url "https://plugins.gradle.org/m2/" }
        maven { url "https://jitpack.io" }
    }
    dependencies {
        classpath 'com.github.slim-gears:gradle-aio:0.4.5'
    }
}

apply plugin: 'root-project-aio'
Android library project
apply plugin: 'android-lib-aio'
For android application
aioConfig {
  androidAppAio {
    versionCode = System.getenv('BUILD_NUMBER') as Integer ?: 0
    versionName = "0.1-$versionCode"
  
    keyStoreFile = 'path-to-key-store-file'
    keyStorePassword = 'key-store-password'
    keyPassword = 'key-password'
  }
}

apply plugin: 'android-app-aio'

For java library

apply plugin: 'java-lib-aio'

About

Gradle All-In-One plugin for android and java projects

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages