Skip to content

Commit

Permalink
update Knit to 0.1.4 (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
RBusarow committed Jul 14, 2020
1 parent aa096b7 commit bd75133
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 25 deletions.
42 changes: 19 additions & 23 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ plugins {
id("io.gitlab.arturbosch.detekt") version Libs.Detekt.version
}

apply(plugin = "base")

allprojects {

repositories {
Expand Down Expand Up @@ -213,12 +215,6 @@ fun linkModuleDocs(
}
}

val clean by tasks.registering {
doLast {
delete("build")
}
}

subprojects {
tasks.withType<KotlinCompile>()
.configureEach {
Expand Down Expand Up @@ -262,23 +258,6 @@ val copyRootFiles by tasks.registering {
}
}

apply(plugin = Plugins.knit)

extensions.configure<KnitPluginExtension> {

// rootDir = File(".")
// moduleRoots = listOf( )

moduleDocs = "build/dokka"
moduleMarkers = listOf("build.gradle", "build.gradle.kts")
siteRoot = "https://rbusarow.github.io/Dispatch"
}

// Build API docs for all modules with dokka before running Knit
tasks.getByName("knitPrepare") {
dependsOn(subprojects.mapNotNull { it.tasks.findByName("dokka") })
}

subprojects {

apply {
Expand Down Expand Up @@ -366,3 +345,20 @@ extensions.configure<ApiValidationExtension> {
"samples"
)
}

apply(plugin = Plugins.knit)

extensions.configure<KnitPluginExtension> {

// rootDir = File(".")
// moduleRoots = listOf( )

moduleDocs = "build/dokka"
moduleMarkers = listOf("build.gradle", "build.gradle.kts")
siteRoot = "https://rbusarow.github.io/Dispatch"
}

// Build API docs for all modules with dokka before running Knit
tasks.getByName("knitPrepare") {
dependsOn(subprojects.mapNotNull { it.tasks.findByName("dokka") })
}
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/Dependencies.kt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ object Plugins {
object Versions {
const val ktlint = "0.35.0"
const val dokka = "0.10.1"
const val knit = "0.1.1"
const val knit = "0.1.4"

const val compileSdk = 29
const val minSdk = "21"
Expand Down
2 changes: 1 addition & 1 deletion docs/kdoc/dispatch-detekt/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ In root project-level `build.gradle` or `build.gradle.kts`:
``` kotlin
allprojects {
dependencies {
detekt("io.gitlab.arturbosch.detekt:detekt-cli:1.9.1")
detekt("io.gitlab.arturbosch.detekt:detekt-cli:1.10.0")

detektPlugins("com.rickbusarow.dispatch:dispatch-detekt:1.0.0-beta04")
}
Expand Down

0 comments on commit bd75133

Please sign in to comment.