Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Commit

Permalink
fix kotlin sources gen.
Browse files Browse the repository at this point in the history
  • Loading branch information
marandaneto committed Feb 26, 2020
1 parent 2cd6858 commit 827127a
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions publishmylib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,17 @@ dependencies {
}

task androidJavadocs(type: Javadoc) {
if (!project.plugins.hasPlugin('kotlin-android')) {
source = android.sourceSets.main.java.srcDirs
}
source = android.sourceSets.main.java.source
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
include '**/*.java'
}

if (JavaVersion.current().isJava8Compatible()) {
options.addStringOption('Xdoclint:none', '-quiet')
}
// because:
// if (JavaVersion.current().isJava8Compatible()) {
// options.addStringOption('Xdoclint:none', '-quiet')
// }
// was throwing: javadoc: error - Illegal package name
tasks.withType(Javadoc).all {
enabled = false
}

task androidJavadocsJar(type: Jar, dependsOn: androidJavadocs) {
Expand All @@ -58,7 +60,7 @@ task androidJavadocsJar(type: Jar, dependsOn: androidJavadocs) {

task androidSourcesJar(type: Jar) {
classifier = 'sources'
from android.sourceSets.main.java.sourceFiles
from android.sourceSets.main.java.source
}

// Because the components are created only during the afterEvaluate phase, you must
Expand Down

0 comments on commit 827127a

Please sign in to comment.