Skip to content

Commit

Permalink
Issue mozilla-mobile#10335: Remove dokka.
Browse files Browse the repository at this point in the history
  • Loading branch information
pocmo authored and Grisha Kruglov committed Sep 11, 2021
1 parent d9c510a commit f3f6ed4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 41 deletions.
39 changes: 0 additions & 39 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ buildscript {
dependencies {
classpath Dependencies.tools_androidgradle
classpath Dependencies.tools_kotlingradle
classpath Dependencies.tools_dokka
classpath Dependencies.tools_androidmavenpublish
}
}
Expand Down Expand Up @@ -66,7 +65,6 @@ allprojects {

subprojects {
apply plugin: 'jacoco'
apply plugin: 'org.jetbrains.dokka-android'

// Enable Kotlin warnings as errors for all modules
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
Expand Down Expand Up @@ -275,43 +273,6 @@ subprojects {
}
}

evaluationDependsOnChildren()

tasks.register("docs", org.jetbrains.dokka.gradle.DokkaAndroidTask) {
moduleName = "$rootProject.name"
outputDirectory = "$buildDir/javadoc"
outputFormat = "gfm"
jdkVersion = 7

subprojects.findAll {
it.hasProperty("android") && !it.name.startsWith("samples")
}.each {
classpath += files(it.android.getBootClasspath().join(File.pathSeparator))
it.android.libraryVariants.all { variant ->
classpath += files(variant.javaCompileProvider.get().classpath.files)
}
}

externalDocumentationLink {
url = new URL("https://mozilla.github.io/geckoview/javadoc/mozilla-central/package-list")
}

sourceDirs = files(subprojects.findAll {
!it.name.startsWith("samples")
}.collect { p ->
def path = new File(p.projectDir, "/src/main/java")

def relativePath = rootDir.toPath().relativize(path.toPath()).toString()
linkMapping {
dir = path
url = "https://github.com/mozilla-mobile/android-components/blob/master/$relativePath"
suffix = "#L"
}

return path
})
}

tasks.register("clean", Delete) {
delete rootProject.buildDir
}
Expand Down
2 changes: 0 additions & 2 deletions buildSrc/src/main/java/Dependencies.kt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ object Versions {

const val mockwebserver = "3.10.0"

const val dokka = "0.9.17"
const val android_gradle_plugin = "4.0.1"
const val android_maven_publish_plugin = "3.6.2"
const val lint = "27.0.1"
Expand Down Expand Up @@ -122,7 +121,6 @@ object Dependencies {

const val leakcanary = "com.squareup.leakcanary:leakcanary-android:${Versions.leakcanary}"

const val tools_dokka = "org.jetbrains.dokka:dokka-android-gradle-plugin:${Versions.dokka}"
const val tools_androidgradle = "com.android.tools.build:gradle:${Versions.android_gradle_plugin}"
const val tools_kotlingradle = "org.jetbrains.kotlin:kotlin-gradle-plugin:${Versions.kotlin}"
const val tools_androidmavenpublish = "digital.wup:android-maven-publish:${Versions.android_maven_publish_plugin}"
Expand Down

0 comments on commit f3f6ed4

Please sign in to comment.