Skip to content

Commit

Permalink
Added javadoc and sources because aar is not being generated correctly (
Browse files Browse the repository at this point in the history
#210)

* Added javadoc and sources because aar is not being generated correctly

* excluded kt files for javadoc
  • Loading branch information
ferranpons authored Nov 8, 2018
1 parent 189cae0 commit 931ab9f
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions leku/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,25 @@ twitterPlugin {
message = "New Leku version ${versionMajor}.${versionMinor}.${versionPatch} available for download. Check out the details at https://github.com/SchibstedSpain/Leku @SchibstedEng #Android #library #AndroidDev"
}

tasks.withType(Javadoc).all {
enabled = false
task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
}

task javadoc(type: Javadoc) {
excludes = ['**/*.kt']
source = android.sourceSets.main.java.srcDirs
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
}

task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}

artifacts {
archives javadocJar
archives sourcesJar
}

def getVersionMajor() {
Expand Down

0 comments on commit 931ab9f

Please sign in to comment.