build: Remove unused dokka plugin.
This commit is contained in:
parent
231f731588
commit
c3d1634627
|
@ -25,7 +25,6 @@ import java.io.ByteArrayOutputStream
|
|||
* * `detekt` ( 'me.proton.detekt' plugin )
|
||||
* * `multiModuleDetekt` ( 'me.proton.detekt' plugin )
|
||||
* * `publishAll` ( 'me.proton.publish-libraries' plugin )
|
||||
* * `dokka`
|
||||
* * `dependencyUpdates`
|
||||
*/
|
||||
plugins {
|
||||
|
@ -46,7 +45,6 @@ buildscript {
|
|||
repositories.google()
|
||||
|
||||
dependencies {
|
||||
classpath(libs.dokka.gradle)
|
||||
classpath(libs.android.gradle)
|
||||
classpath(libs.dagger.hilt.android.gradle)
|
||||
}
|
||||
|
|
|
@ -8,7 +8,6 @@ detekt = "1.23.0"
|
|||
easyGradle = "2.8"
|
||||
gradleNexusPublish = "1.1.0"
|
||||
kotlin = "1.8.21"
|
||||
kotlinDokka = "1.8.20"
|
||||
kotlinCoroutines = "1.6.4"
|
||||
kotlinSerialization = "1.4.1"
|
||||
kotlinBinaryCompatibilityValidator = "0.13.2"
|
||||
|
@ -38,7 +37,6 @@ detekt-cli = { module = "io.gitlab.arturbosch.detekt:detekt-cli", version.ref =
|
|||
detekt-formatting = { module = "io.gitlab.arturbosch.detekt:detekt-formatting", version.ref = "detekt" }
|
||||
detekt-rules-libraries = { module = "io.gitlab.arturbosch.detekt:detekt-rules-libraries", version.ref = "detekt" }
|
||||
|
||||
dokka-gradle = { module = "org.jetbrains.dokka:dokka-gradle-plugin", version.ref = "kotlinDokka" }
|
||||
easyGradle-dsl = { module = "studio.forface.easygradle:dsl", version.ref = "easyGradle" }
|
||||
easyGradle-androidDsl = { module = "studio.forface.easygradle:dsl-android", version.ref = "easyGradle" }
|
||||
gradleNexus-publish = { module = "io.github.gradle-nexus:publish-plugin", version.ref = "gradleNexusPublish" }
|
||||
|
|
|
@ -48,7 +48,6 @@ repositories {
|
|||
dependencies {
|
||||
implementation(gradleApi())
|
||||
implementation(libs.vanniktech.mavenPublish)
|
||||
implementation(libs.dokka.gradle)
|
||||
implementation(libs.kotlin.serialization.json)
|
||||
implementation(libs.gradleNexus.publish)
|
||||
}
|
||||
|
|
|
@ -6,7 +6,6 @@ import com.vanniktech.maven.publish.MavenPublishPluginExtension
|
|||
import org.gradle.api.Project
|
||||
import org.gradle.kotlin.dsl.apply
|
||||
import org.gradle.kotlin.dsl.configure
|
||||
import org.jetbrains.dokka.gradle.DokkaPlugin
|
||||
import java.io.File
|
||||
|
||||
/*
|
||||
|
@ -39,16 +38,11 @@ internal fun Project.setupSubProjectPublishing(groupName: String, versionName: S
|
|||
}
|
||||
}
|
||||
|
||||
private fun Project.setupCoordinates(groupName: String, versionName: String, generateKdoc: Boolean = false) {
|
||||
private fun Project.setupCoordinates(groupName: String, versionName: String) {
|
||||
group = groupName
|
||||
val artifactId = name
|
||||
version = versionName
|
||||
|
||||
// Dokka disabled by default
|
||||
// Dokka is slow and consume a lot of resource for not much value in our case as the documentation is read in AS
|
||||
// from sources.
|
||||
if (generateKdoc) apply<DokkaPlugin>()
|
||||
|
||||
apply<MavenPublishPlugin>()
|
||||
configure<MavenPublishPluginExtension> {
|
||||
// Only sign non snapshot release
|
||||
|
|
Loading…
Reference in New Issue