Skip to content

Commit e9899be

Browse files
committed
restored build tool version to 19.0.3 for travis
1 parent 2954056 commit e9899be

File tree

3 files changed

+24
-25
lines changed

3 files changed

+24
-25
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
language: android
22
android:
33
components:
4-
- build-tools-19.1
4+
- build-tools-19.0.3
55
script: "travis_retry ./gradlew build check"

android-kiss-demo/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ buildscript {
33
mavenCentral()
44
}
55
dependencies {
6-
classpath 'com.android.tools.build:gradle:0.11.0'
6+
classpath 'com.android.tools.build:gradle:0.9.+'
77
}
88
}
99
apply plugin: 'android'
@@ -14,7 +14,7 @@ repositories {
1414

1515
android {
1616
compileSdkVersion 19
17-
buildToolsVersion "19.1.0"
17+
buildToolsVersion "19.0.3"
1818

1919
defaultConfig {
2020
minSdkVersion 9

android-kiss/build.gradle

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -13,33 +13,32 @@ android {
1313
targetSdkVersion 19
1414
}
1515
compileSdkVersion 19
16-
buildToolsVersion "19.1.0"
16+
buildToolsVersion "19.0.3"
1717
lintOptions.abortOnError false
1818
}
1919

20-
//task javadocDebug(type: Javadoc) {
21-
// description = "Generates javadoc for build debug"
22-
// destinationDir = new File(destinationDir, "javadocDebug")
23-
// source = files(android.libraryVariants.debug.javaCompile.source)
24-
//// android.plugin.metaClass.methods.each { println it.name }
25-
// classpath = files(android.plugin.getLocalJarFileList(), android.libraryVariants.debug.javaCompile.classpath)
26-
// exclude '**/R.html', '**/R.*.html'
27-
//}
28-
//
29-
//task javadocJar(type: Jar, dependsOn: javadocDebug) {
30-
// classifier = 'javadoc'
31-
// from javadocDebug.destinationDir
32-
//}
20+
task javadocDebug(type: Javadoc) {
21+
description = "Generates javadoc for build debug"
22+
destinationDir = new File(destinationDir, "javadocDebug")
23+
source = files(android.libraryVariants.debug.javaCompile.source)
24+
classpath = files(android.plugin.runtimeJarList, android.libraryVariants.debug.javaCompile.classpath)
25+
exclude '**/R.html', '**/R.*.html'
26+
}
3327

34-
//task sourcesJar(type: Jar) {
35-
// from android.sourceSets.main.allSource
36-
// classifier = 'sources'
37-
//}
28+
task javadocJar(type: Jar, dependsOn: javadocDebug) {
29+
classifier = 'javadoc'
30+
from javadocDebug.destinationDir
31+
}
3832

39-
//artifacts {
40-
// archives javadocJar
41-
// archives sourcesJar
42-
//}
33+
task sourcesJar(type: Jar) {
34+
from android.sourceSets.main.allSource
35+
classifier = 'sources'
36+
}
37+
38+
artifacts {
39+
archives javadocJar
40+
archives sourcesJar
41+
}
4342

4443

4544
uploadArchives {

0 commit comments

Comments
 (0)