From 18496ffd754d6fde937c6ed28fb214e3781655d8 Mon Sep 17 00:00:00 2001 From: Markus Gursch Date: Fri, 14 Jun 2019 10:53:18 +0200 Subject: [PATCH] Add javadoc generation --- inappupdater/build.gradle | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/inappupdater/build.gradle b/inappupdater/build.gradle index bf0aa7b..721902f 100644 --- a/inappupdater/build.gradle +++ b/inappupdater/build.gradle @@ -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' @@ -71,33 +71,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 {