From 316e8a47d9b3b4c8fe09679d37f01383d04c653c Mon Sep 17 00:00:00 2001 From: Paul Peavyhouse Date: Mon, 10 Feb 2014 19:41:49 -0800 Subject: [PATCH 1/4] Fix for weird "package android.app does not exist" and "cannot find symbol" error messages. This is semi-blessed by Xavier Ducrohet himself and thus semi-official: https://groups.google.com/forum/#!searchin/adt-dev/javadoc/adt-dev/seRizEn8ICA/bafEvUl6mzsJ --- gradle-mvn-push.gradle | 1 + 1 file changed, 1 insertion(+) diff --git a/gradle-mvn-push.gradle b/gradle-mvn-push.gradle index b57430b..a14132b 100644 --- a/gradle-mvn-push.gradle +++ b/gradle-mvn-push.gradle @@ -94,6 +94,7 @@ afterEvaluate { project -> task androidJavadocs(type: Javadoc) { source = android.sourceSets.main.allJava + classpath = files("${android.plugin.sdkDirectory}/platforms/${android.compileSdkVersion}/android.jar") } task androidJavadocsJar(type: Jar, dependsOn: androidJavadocs) { From a9d9237649515fc71a2103d1b761ab0a8043e79d Mon Sep 17 00:00:00 2001 From: tonyr Date: Wed, 12 Feb 2014 17:18:42 -0800 Subject: [PATCH 2/4] Attempting to fix javadoc dependency issue by updating javadocs classpath. --- gradle-mvn-push.gradle | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gradle-mvn-push.gradle b/gradle-mvn-push.gradle index a14132b..f2fd648 100644 --- a/gradle-mvn-push.gradle +++ b/gradle-mvn-push.gradle @@ -41,6 +41,10 @@ def getRepositoryPassword() { afterEvaluate { project -> uploadArchives { + afterEvaluate { + javadocs.classpath += files(android.plugin.runtimeJarList) + } + repositories { mavenDeployer { beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) } From 9c2ad9646df3c696bc6e9b3de7ea0e26206b9ecf Mon Sep 17 00:00:00 2001 From: tonyr Date: Wed, 12 Feb 2014 17:27:12 -0800 Subject: [PATCH 3/4] Revert "Attempting to fix javadoc dependency issue by updating javadocs classpath." This reverts commit a9d9237649515fc71a2103d1b761ab0a8043e79d. --- gradle-mvn-push.gradle | 4 ---- 1 file changed, 4 deletions(-) diff --git a/gradle-mvn-push.gradle b/gradle-mvn-push.gradle index f2fd648..a14132b 100644 --- a/gradle-mvn-push.gradle +++ b/gradle-mvn-push.gradle @@ -41,10 +41,6 @@ def getRepositoryPassword() { afterEvaluate { project -> uploadArchives { - afterEvaluate { - javadocs.classpath += files(android.plugin.runtimeJarList) - } - repositories { mavenDeployer { beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) } From 8f8e76906fb8c5f6967f0875821361e88e68b2c3 Mon Sep 17 00:00:00 2001 From: Paul Peavyhouse Date: Wed, 12 Feb 2014 17:38:06 -0800 Subject: [PATCH 4/4] Updating w/ latest change from upstream dev branch --- gradle-mvn-push.gradle | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gradle-mvn-push.gradle b/gradle-mvn-push.gradle index a14132b..dae131a 100644 --- a/gradle-mvn-push.gradle +++ b/gradle-mvn-push.gradle @@ -94,7 +94,8 @@ afterEvaluate { project -> task androidJavadocs(type: Javadoc) { source = android.sourceSets.main.allJava - classpath = files("${android.plugin.sdkDirectory}/platforms/${android.compileSdkVersion}/android.jar") + classpath += project.files(android.plugin.getRuntimeJarList().join(File.pathSeparator)) + //classpath = files("${android.plugin.sdkDirectory}/platforms/${android.compileSdkVersion}/android.jar") } task androidJavadocsJar(type: Jar, dependsOn: androidJavadocs) {