Skip to content

Commit

Permalink
chore: moved plugins into Catalogue
Browse files Browse the repository at this point in the history
  • Loading branch information
kikoso committed May 27, 2024
1 parent 90f591c commit 2ddb13a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
14 changes: 7 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ allprojects {
subprojects { project ->
if (project.ext.artifactId == null) return

apply plugin: 'com.android.library'
apply plugin: 'maven-publish'
apply plugin: 'org.jetbrains.dokka'
apply plugin: 'com.mxalbert.gradle.jacoco-android'
apply plugin: 'signing'
plugins.apply(libs.plugins.androidLibrary.get().pluginId)
plugins.apply(libs.plugins.mavenPublish.get().pluginId)
plugins.apply(libs.plugins.dokka.get().pluginId)
plugins.apply(libs.plugins.jacocoAndroid.get().pluginId)
plugins.apply(libs.plugins.signing.get().pluginId)

// Code coverage
jacoco {
Expand All @@ -91,7 +91,7 @@ subprojects { project ->
dependsOn(tasks.named("dokkaHtml"))
dependsOn(tasks.named("dokkaJavadoc"))
archiveClassifier.set("javadoc")
from new File(buildDir, "dokka/javadoc")
from new File(layout.buildDirectory, "dokka/javadoc")
}

publishing {
Expand Down Expand Up @@ -167,5 +167,5 @@ subprojects { project ->
}

tasks.register('clean', Delete) {
delete rootProject.buildDir
delete rootProject.layout.buildDirectory
}
7 changes: 7 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,10 @@ test-core = { group = "androidx.test", name = "core", version.ref = "test-core"
mockito-kotlin = { group = "com.nhaarman.mockitokotlin2", name = "mockito-kotlin", version.ref = "mockito-kotlin" }
junit = { group = "junit", name = "junit", version.ref = "junit" }
mockito-core = { group = "org.mockito", name = "mockito-core", version.ref = "mockito-core" }

[plugins]
androidLibrary = { id = "com.android.library" }
mavenPublish = { id = "maven-publish" }
dokka = { id = "org.jetbrains.dokka" }
jacocoAndroid = { id = "com.mxalbert.gradle.jacoco-android" }
signing = { id = "signing" }

0 comments on commit 2ddb13a

Please sign in to comment.