From ae1d9e49a96a5c408dfdc5e44dc0fd714fcea8d6 Mon Sep 17 00:00:00 2001 From: Andreas Rossbacher Date: Thu, 10 Oct 2019 09:38:07 -0700 Subject: [PATCH 1/3] Disable Java doc task --- library/build.gradle | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/library/build.gradle b/library/build.gradle index b7cabdf..39cf3da 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -17,6 +17,11 @@ android { } } +// Disable Javadoc task as it is not compatible with Kotlin +tasks.withType(Javadoc).all { + enabled = false +} + dependencies { api 'com.google.android.gms:play-services-maps:17.0.0' api 'com.google.maps.android:android-maps-utils:0.4' @@ -39,4 +44,4 @@ if (JavaVersion.current().isJava8Compatible()) { } repositories { mavenCentral() -} \ No newline at end of file +} From 9ebbb1edbe40ed9a491cfdc6bf7c80cef101073a Mon Sep 17 00:00:00 2001 From: Andreas Rossbacher Date: Thu, 10 Oct 2019 10:33:34 -0700 Subject: [PATCH 2/3] Revert change --- library/build.gradle | 5 ----- 1 file changed, 5 deletions(-) diff --git a/library/build.gradle b/library/build.gradle index 39cf3da..6080198 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -17,11 +17,6 @@ android { } } -// Disable Javadoc task as it is not compatible with Kotlin -tasks.withType(Javadoc).all { - enabled = false -} - dependencies { api 'com.google.android.gms:play-services-maps:17.0.0' api 'com.google.maps.android:android-maps-utils:0.4' From 4199141e7bcb6d651ba5d5a0843accb20a47b29d Mon Sep 17 00:00:00 2001 From: Andreas Rossbacher Date: Thu, 10 Oct 2019 10:35:25 -0700 Subject: [PATCH 3/3] Exclude kotlin files --- library/gradle-maven-push.gradle | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/gradle-maven-push.gradle b/library/gradle-maven-push.gradle index 48f1156..0aba787 100644 --- a/library/gradle-maven-push.gradle +++ b/library/gradle-maven-push.gradle @@ -95,6 +95,7 @@ afterEvaluate { project -> task androidJavadocs(type: Javadoc) { source = android.sourceSets.main.java.srcDirs classpath += project.files(android.getBootClasspath().join(File.pathSeparator)) + excludes = ['**/*.kt'] } task androidJavadocsJar(type: Jar, dependsOn: androidJavadocs) { @@ -111,4 +112,4 @@ afterEvaluate { project -> archives androidSourcesJar archives androidJavadocsJar } -} \ No newline at end of file +}