Skip to content

Commit

Permalink
Prepare for release 1.4.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
ZacSweers committed Oct 22, 2024
1 parent da66222 commit 0a50bf9
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ Changelog
**Unreleased**
--------------

1.4.2
-----

_2024-10-22_

- **Enhancement**: Better handle name shadowing in `SlotReused` lint and reduce false positives.
- Test against lint `31.8.0-alpha07`.
- Various doc fixes.
Expand Down
18 changes: 15 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import com.diffplug.gradle.spotless.SpotlessExtension
import com.google.devtools.ksp.gradle.KspTask
import com.vanniktech.maven.publish.MavenPublishBaseExtension
import io.gitlab.arturbosch.detekt.Detekt
import org.jetbrains.dokka.gradle.DokkaExtension
import org.jetbrains.dokka.gradle.DokkaTask
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
Expand All @@ -15,7 +16,7 @@ plugins {
alias(libs.plugins.kotlin.jvm) apply false
alias(libs.plugins.spotless) apply false
alias(libs.plugins.mavenPublish) apply false
alias(libs.plugins.dokka) apply false
alias(libs.plugins.dokka)
alias(libs.plugins.detekt)
alias(libs.plugins.lint) apply false
alias(libs.plugins.ksp) apply false
Expand Down Expand Up @@ -108,6 +109,17 @@ allprojects {
}
}

dokka {
dokkaPublications.html {
outputDirectory.set(rootDir.resolve("docs/api/1.x"))
includes.from(project.layout.projectDirectory.file("docs/index.md"))
}
}

dependencies {
dokka(project(":compose-lint-checks"))
}

subprojects {
pluginManager.withPlugin("java") {
configure<JavaPluginExtension> {
Expand Down Expand Up @@ -135,8 +147,8 @@ subprojects {
pluginManager.withPlugin("com.vanniktech.maven.publish") {
apply(plugin = "org.jetbrains.dokka")

tasks.withType<DokkaTask>().configureEach {
outputDirectory.set(rootDir.resolve("docs/api/0.x"))
configure<DokkaExtension> {
dokkaPublicationDirectory.set(layout.buildDirectory.dir("dokkaDir"))
dokkaSourceSets.configureEach { skipDeprecated.set(true) }
}

Expand Down
2 changes: 1 addition & 1 deletion deploy_website.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ if ! [[ ${local} || ${ci} ]]; then
# Move working directory into temp folder
cd ${DIR}
# Generate the API docs
./gradlew dokkaHtml --no-configuration-cache
./gradlew :dokkaGenerate
fi

# Copy in special files that GitHub wants in the project root.
Expand Down
6 changes: 5 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ android.lint.useK2Uast=true
# https://github.com/google/ksp/issues/1839
ksp.useKSP2=false

# Dokka flags
org.jetbrains.dokka.experimental.gradle.pluginMode=V2Enabled
org.jetbrains.dokka.experimental.gradle.pluginMode.noWarn=true

# Versioning bits
GROUP=com.slack.lint.compose
POM_URL=https://github.com/slackhq/compose-lints/
Expand All @@ -29,4 +33,4 @@ POM_DEVELOPER_ID=slackhq
POM_DEVELOPER_NAME=Salesforce, Inc.
POM_DEVELOPER_URL=https://github.com/slackhq
POM_INCEPTION_YEAR=2023
VERSION_NAME=1.5.0-SNAPSHOT
VERSION_NAME=1.4.2
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ lint-latest = "31.8.0-alpha07"

[plugins]
detekt = { id = "io.gitlab.arturbosch.detekt", version = "1.23.7" }
dokka = { id = "org.jetbrains.dokka", version = "1.9.20" }
dokka = { id = "org.jetbrains.dokka", version = "2.0.0-Beta" }
lint = { id = "com.android.lint", version = "8.7.1" }
kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
ksp = { id = "com.google.devtools.ksp", version = "2.0.21-1.0.25" }
Expand Down

0 comments on commit 0a50bf9

Please sign in to comment.