Configure Dokka plugin to generate Kdoc

Run `./gradlew matrix-sdk-android:dokkaHtml` to generate the Html documentation of the Matrix Android SDK
This commit is contained in:
Benoit Marty 2022-04-08 17:17:27 +02:00 committed by Benoit Marty
parent 047a45d77f
commit 4d49ccaf8c
3 changed files with 8 additions and 1 deletions

View File

@ -22,6 +22,7 @@ buildscript {
classpath 'com.google.android.gms:oss-licenses-plugin:0.10.5' classpath 'com.google.android.gms:oss-licenses-plugin:0.10.5'
classpath "com.likethesalad.android:stem-plugin:2.0.0" classpath "com.likethesalad.android:stem-plugin:2.0.0"
classpath 'org.owasp:dependency-check-gradle:7.0.4.1' classpath 'org.owasp:dependency-check-gradle:7.0.4.1'
classpath "org.jetbrains.dokka:dokka-gradle-plugin:1.6.10"
// NOTE: Do not place your application dependencies here; they belong // NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files // in the individual module build.gradle files
} }

View File

@ -59,6 +59,9 @@ ext.groups = [
'com.fasterxml', 'com.fasterxml',
'com.fasterxml.jackson', 'com.fasterxml.jackson',
'com.fasterxml.jackson.core', 'com.fasterxml.jackson.core',
'com.fasterxml.jackson.dataformat',
'com.fasterxml.jackson.module',
'com.fasterxml.woodstox',
'com.gabrielittner.threetenbp', 'com.gabrielittner.threetenbp',
'com.getkeepsafe.relinker', 'com.getkeepsafe.relinker',
'com.github.bumptech.glide', 'com.github.bumptech.glide',
@ -157,12 +160,14 @@ ext.groups = [
'org.codehaus', 'org.codehaus',
'org.codehaus.groovy', 'org.codehaus.groovy',
'org.codehaus.mojo', 'org.codehaus.mojo',
'org.codehaus.woodstox',
'org.eclipse.ee4j', 'org.eclipse.ee4j',
'org.ec4j.core', 'org.ec4j.core',
'org.glassfish.jaxb', 'org.glassfish.jaxb',
'org.hamcrest', 'org.hamcrest',
'org.jacoco', 'org.jacoco',
'org.jetbrains', 'org.jetbrains',
'org.jetbrains.dokka',
'org.jetbrains.intellij.deps', 'org.jetbrains.intellij.deps',
'org.jetbrains.kotlin', 'org.jetbrains.kotlin',
'org.jetbrains.kotlinx', 'org.jetbrains.kotlinx',
@ -208,4 +213,3 @@ ext.groups = [
] ]
] ]
] ]

View File

@ -3,6 +3,7 @@ apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt' apply plugin: 'kotlin-kapt'
apply plugin: 'kotlin-parcelize' apply plugin: 'kotlin-parcelize'
apply plugin: 'realm-android' apply plugin: 'realm-android'
apply plugin: "org.jetbrains.dokka"
buildscript { buildscript {
repositories { repositories {
@ -10,6 +11,7 @@ buildscript {
} }
dependencies { dependencies {
classpath "io.realm:realm-gradle-plugin:10.9.0" classpath "io.realm:realm-gradle-plugin:10.9.0"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:1.6.10"
} }
} }