Skip to content

Commit

Permalink
Add javadoc generation
Browse files Browse the repository at this point in the history
  • Loading branch information
markusgursch-aaa committed Jun 14, 2019
1 parent 1dae956 commit d18fdbd
Showing 1 changed file with 18 additions and 20 deletions.
38 changes: 18 additions & 20 deletions inappupdater/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {


group = 'at.allaboutapps.inappupdater'
version = '0.9.8'
version = '1.0.0'

apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
Expand Down Expand Up @@ -43,8 +43,6 @@ bintray {
// read pw from secure travis.yml
key = System.getenv('BINTRAY_KEY')

println user
println key
pkg {
repo = 'A3-Android'
name = "$project.group.$archivesBaseName"
Expand All @@ -71,33 +69,33 @@ publishing {
}
}
}
//task javadoc(type: Javadoc) {
// excludes = ['**/*.kt'] // Exclude all kotlin files from javadoc file.
//}
task javadoc(type: Javadoc) {
excludes = ['**/*.kt'] // Exclude all kotlin files from javadoc file.
}

//dokka {
// outputFormat = 'javadoc'
// outputDirectory = javadoc.destinationDir
//}
dokka {
outputFormat = 'html'
outputDirectory = javadoc.destinationDir
}

//destinationDirtask generateJavadocsJar(type: Jar, dependsOn: dokka) {
// classifier = 'javadoc'
// from dokka.outputDirectory
//}
task generateJavadocsJar(type: Jar, dependsOn: dokka) {
classifier = 'javadoc'
from dokka.outputDirectory
}

task generateSourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier 'sources'
}

//task generateJavadocs(type: Javadoc) {
// source = android.sourceSets.main.java.srcDirs
// classpath += project.files(android.getBootClasspath()
// .join(File.pathSeparator))
//}
task generateJavadocs(type: Javadoc) {
source = android.sourceSets.main.java.srcDirs
classpath += project.files(android.getBootClasspath()
.join(File.pathSeparator))
}

artifacts {
archives generateSourcesJar //, generateJavadocsJar
archives generateSourcesJar, generateJavadocsJar
}

android {
Expand Down

0 comments on commit d18fdbd

Please sign in to comment.