-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
73 lines (59 loc) · 1.82 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
def buildVersionName = file('./version_name').getText()
def buildVersionCode = file('./version_code').getText().toInteger()
apply plugin: 'android-sdk-manager'
apply plugin: 'com.android.library'
apply plugin: 'android-maven'
buildscript
{
repositories
{
mavenCentral()
}
dependencies
{
classpath 'com.android.tools.build:gradle:1.3.0'
classpath 'com.jakewharton.sdkmanager:gradle-plugin:0.10.1'
}
}
allprojects {
repositories {
mavenCentral()
}
}
android {
compileSdkVersion 19
buildToolsVersion "20.0.0"
publishNonDefault true
defaultConfig {
minSdkVersion 14
targetSdkVersion 19
versionCode buildVersionCode
versionName buildVersionName
}
buildTypes {
release {
minifyEnabled false
shrinkResources false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
}
android.libraryVariants.all { variant ->
task("genJavadoc${variant.name.capitalize()}", type: Javadoc) {
title = "${project.name.capitalize()} ${buildVersionName} API"
source = variant.javaCompile.source
description "Generates Javadoc for $variant.name."
def androidJar = "${android.sdkDirectory}/platforms/${android.compileSdkVersion}/android.jar"
classpath = files(androidJar) + files("build/intermediates/classes/${variant.name}")
options {
links("http://docs.oracle.com/javase/7/docs/api/")
linksOffline("http://d.android.com/reference", "${android.sdkDirectory}/docs/reference");
}
exclude '**/internal/**/*.java', '**/internal/*.java'
exclude '**/BuildConfig.java'
exclude '**/R.java'
}
}