50 lines
933 B
Groovy
50 lines
933 B
Groovy
repositories {
|
|
jcenter()
|
|
}
|
|
|
|
apply plugin: 'com.android.application'
|
|
apply plugin: 'checkstyle'
|
|
|
|
dependencies {
|
|
compile project(':privileged-api-lib')
|
|
}
|
|
|
|
android {
|
|
compileSdkVersion 22
|
|
buildToolsVersion '23.0.2'
|
|
|
|
defaultConfig {
|
|
minSdkVersion 8
|
|
targetSdkVersion 22
|
|
versionCode 1000
|
|
versionName "0.1-alpha0"
|
|
}
|
|
|
|
compileOptions {
|
|
compileOptions.encoding = "UTF-8"
|
|
|
|
// Use Java 1.7, requires minSdk 8
|
|
sourceCompatibility JavaVersion.VERSION_1_7
|
|
targetCompatibility JavaVersion.VERSION_1_7
|
|
}
|
|
|
|
lintOptions {
|
|
// Do not abort build if lint finds errors
|
|
abortOnError false
|
|
}
|
|
|
|
}
|
|
|
|
checkstyle {
|
|
toolVersion = '6.14'
|
|
}
|
|
|
|
task checkstyle(type: Checkstyle) {
|
|
configFile file("${project.rootDir}/config/checkstyle/checkstyle.xml")
|
|
source 'src'
|
|
include '**/*.java'
|
|
exclude '**/gen/**'
|
|
|
|
classpath = files()
|
|
}
|