Skip to content

Commit

Permalink
Use the new com.huanshankeji.team.dokka.github-dokka-convention plugin
Browse files Browse the repository at this point in the history
Running `dokkaGenerate` yields this message:

```text
> Failed to apply plugin 'com.huanshankeji.dokka.dokka-convention'.
   > Cannot query the value of extension 'dokkaConvention' property 'sourceLinkRemoteUrlRoot' because it has no value available.
```

It's strange because applying the plugin works without errors in huanshankeji/kotlin-common@1384528.
  • Loading branch information
ShreckYe committed Nov 7, 2024
1 parent fa9228f commit 6e09828
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ dependencies {
// With Kotlin 2.0.20, a "Could not parse POM" build error occurs in the JVM projects of some dependent projects.
implementation(kotlin("gradle-plugin", "2.0.10"))
implementation("com.huanshankeji:common-gradle-dependencies:0.8.0-20241016") // don't use a snapshot version in a main branch
implementation("com.huanshankeji.team:gradle-plugins:0.6.0") // don't use a snapshot version in a main branch
implementation("com.huanshankeji.team:gradle-plugins:0.7.0-SNAPSHOT") // TODO don't use a snapshot version in a main branch
implementation("org.jetbrains.dokka:dokka-gradle-plugin:2.0.0-Beta")
}
11 changes: 1 addition & 10 deletions lib/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
conventions
id("org.jetbrains.dokka")
id("com.huanshankeji.team.dokka.github-dokka-convention")
}

dependencies {
Expand All @@ -9,12 +9,3 @@ dependencies {
implementation(commonDependencies.kotlinCommon.reflect())
implementation(commonDependencies.kotlinCommon.core())
}

dokka {
dokkaSourceSets.all {
sourceLink {
remoteUrl("https://github.com/huanshankeji/exposed-adt-mapping/tree/v${version}/lib")
remoteLineSuffix.set("#L")
}
}
}

0 comments on commit 6e09828

Please sign in to comment.