Skip to content

Commit 4f60f1e

Browse files
authored
Update to dokka 2.1.0-Beta (#6712)
* bump librarian and dokka * update dokka * update to beta.2
1 parent ff13427 commit 4f60f1e

File tree

6 files changed

+19
-14
lines changed

6 files changed

+19
-14
lines changed

.idea/dictionaries/project.xml

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build-logic/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ dependencies {
2121
// We add all the plugins to the classpath here so that they are loaded with proper conflict resolution
2222
// See https://github.com/gradle/gradle/issues/4741
2323
implementation(libs.okhttp)
24+
implementation(libs.dokka)
2425

2526
/**
2627
* Ktor for the websocket tests in integration tests
@@ -30,7 +31,6 @@ dependencies {
3031
implementation(libs.ktor.server.websockets)
3132

3233
implementation(libs.kotlinx.benchmark)
33-
implementation(libs.dokka)
3434
implementation(libs.licensee)
3535
implementation(libs.apollo.execution.gradle.plugin)
3636
implementation(libs.compat.patrouille)

build-logic/src/main/kotlin/Publishing.kt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,6 @@ fun Project.configureDokkaCommon(): DokkaExtension {
7070
includes.from("README.md")
7171
}
7272

73-
// Workaround for https://github.com/adamko-dev/dokkatoo/issues/165
74-
configurations.configureEach {
75-
if (name.lowercase().contains("dokkaHtmlPublicationPluginApiOnlyConsumable~internal".lowercase())) {
76-
attributes {
77-
attribute(Usage.USAGE_ATTRIBUTE, objects.named(Usage::class.java, "poison"))
78-
}
79-
}
80-
}
8173
return dokka
8274
}
8375

gradle/libraries.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ benmanes-versions = { group = "com.github.ben-manes", name = "gradle-versions-pl
9494
compat-patrouille = { module = "com.gradleup.compat.patrouille:compat-patrouille-gradle-plugin", version.ref = "compat-patrouille" }
9595
compose-runtime = { group = "androidx.compose.runtime", name = "runtime", version.ref = "compose" }
9696
compose-ui = { group = "androidx.compose.ui", name = "ui", version.ref = "compose" }
97-
dokka = "org.jetbrains.dokka:dokka-gradle-plugin:2.0.0"
9897
dgp = "com.gradle:develocity-gradle-plugin:4.2" # // sync with settings.gradle.kts
9998
# Not updating because it fails in apollo-compiler Java tests with
10099
# annotation @org.jetbrains.annotations.Nullable not applicable in this type context
@@ -104,7 +103,9 @@ gratatouille = { group = "com.gradleup.gratatouille", name = "gratatouille-gradl
104103
gratatouille-wiring-runtime = { group = "com.gradleup.gratatouille", name = "gratatouille-wiring-runtime", version.ref = "gratatouille-runtime" }
105104
gratatouille-tasks-runtime = { group = "com.gradleup.gratatouille", name = "gratatouille-tasks-runtime", version.ref = "gratatouille-runtime" }
106105
jsr305 = "com.google.code.findbugs:jsr305:3.0.2"
107-
106+
# built from https://github.com/apollographql/dokka/releases/tag/v2.1.0-beta.2
107+
# remove when https://github.com/Kotlin/dokka/pull/4286 is merged
108+
dokka = "org.jetbrains.dokka:org.jetbrains.dokka.gradle.plugin:2.1.0-beta.2"
108109
#
109110
# See https://github.com/gradle/gradle/issues/1835
110111
# We use the Nokee[redistributed artifacts](https://docs.nokee.dev/manual/gradle-plugin-development.html#sec:gradle-dev-redistributed-gradle-api)
@@ -176,7 +177,7 @@ androidx-test-runner = "androidx.test:runner:1.7.0"
176177
truth = { group = "com.google.truth", name = "truth", version.ref = "truth" }
177178
turbine = { group = "app.cash.turbine", name = "turbine", version = "1.2.1" }
178179
uuid = { group = "com.benasher44", name = "uuid", version = "0.8.4" }
179-
librarian = "com.gradleup.librarian:librarian-gradle-plugin:0.1.1-SNAPSHOT-a304cd71c6b81d4cb3bba72e85b70fdb74eae70c"
180+
librarian = "com.gradleup.librarian:librarian-gradle-plugin:0.2.0"
180181
nmcp = "com.gradleup.nmcp:nmcp:1.1.0"
181182
slf4j-simple = "org.slf4j:slf4j-simple:2.0.17"
182183
slf4j-nop = "org.slf4j:slf4j-nop:2.0.17"

gradle/repositories.gradle.kts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ listOf(pluginManagement.repositories, dependencyResolutionManagement.repositorie
6060
includeGroup("com.gradleup.gratatouille.wiring")
6161
}
6262
}
63+
maven("https://storage.googleapis.com/apollo-previews/m2") {
64+
content {
65+
includeGroup("org.jetbrains.dokka")
66+
}
67+
}
6368
}
6469
}
6570
}

libraries/apollo-engine-tests/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import com.gradleup.librarian.core.tooling.init.kotlinPluginVersion
1+
import org.jetbrains.kotlin.gradle.plugin.getKotlinPluginVersion
22

33
plugins {
44
id("org.jetbrains.kotlin.multiplatform")
@@ -16,7 +16,7 @@ kotlin {
1616
dependencies {
1717
api(project(":apollo-runtime"))
1818
implementation(libs.apollo.mockserver)
19-
implementation("org.jetbrains.kotlin:kotlin-test:$kotlinPluginVersion")
19+
implementation("org.jetbrains.kotlin:kotlin-test:${getKotlinPluginVersion()}")
2020
}
2121
}
2222
findByName("commonTest")?.apply {

0 commit comments

Comments
 (0)