@@ -42,7 +42,7 @@ Update the Dokka version to 2.0.0 in the `plugins {}` block of your project’s
42
42
43
43
``` kotlin
44
44
plugins {
45
- kotlin(" jvm" ) version " 1.9.25 "
45
+ kotlin(" jvm" ) version " 2.1.10 "
46
46
id(" org.jetbrains.dokka" ) version " 2.0.0"
47
47
}
48
48
```
@@ -134,7 +134,7 @@ dokka {
134
134
includes.from(" README.md" )
135
135
sourceLink {
136
136
localDirectory.set(file(" src/main/kotlin" ))
137
- remoteUrl( " https://example.com/src" )
137
+ remoteUrl.set( URI ( " https://example.com/src" ) )
138
138
remoteLineSuffix.set(" #L" )
139
139
}
140
140
}
@@ -213,7 +213,7 @@ New configuration:
213
213
includes.from(" README.md" )
214
214
sourceLink {
215
215
localDirectory.set(file(" src/main/kotlin" ))
216
- remoteUrl( " https://github.com/your-repo" )
216
+ remoteUrl.set( URI ( " https://github.com/your-repo" ) )
217
217
remoteLineSuffix.set(" #L" )
218
218
}
219
219
}
@@ -259,18 +259,13 @@ to define each link and aligning with Gradle DSL conventions.
259
259
Previous configuration:
260
260
261
261
``` kotlin
262
- dokka {
263
- this : DokkaExtension
264
- dokkaSourceSets.configureEach {
265
- this : DokkaSourceSetSpec
266
- externalDocumentationLinks {
267
- this : NamedDomainObjectContainerScope <DokkaExternalDocumentationLink > ->
268
- url = URL (" https://example.com/docs/" )
269
- packageListUrl = File (" /path/to/package-list" ).toURI().toURL()
270
- }
271
- externalDocumentationLink {
272
- url = URL (" https://example.com/docs/" )
273
- packageListUrl = File (" /path/to/package-list" ).toURI().toURL()
262
+ tasks.dokkaHtml {
263
+ dokkaSourceSets {
264
+ configureEach {
265
+ externalDocumentationLink {
266
+ url = URL (" https://example.com/docs/" )
267
+ packageListUrl = File (" /path/to/package-list" ).toURI().toURL()
268
+ }
274
269
}
275
270
}
276
271
}
@@ -404,7 +399,7 @@ class in your `build.gradle.kts` file. The following example shows how to define
404
399
// build.gradle.kts
405
400
406
401
plugins {
407
- id(" org.jetbrains.dokka" ) version " 2.0.0-Beta "
402
+ id(" org.jetbrains.dokka" ) version " 2.0.0"
408
403
}
409
404
410
405
val dokkaScripts = layout.projectDirectory.dir(" dokka-scripts" )
@@ -421,7 +416,7 @@ dokka {
421
416
@OptIn(DokkaInternalApi ::class )
422
417
abstract class DokkaScriptsPluginParameters @Inject constructor(
423
418
name : String
424
- ) : DokkaPluginParametersBaseSpec(name, " ca.solostudios .dokkascript.plugin.DokkaScriptsPlugin" ) {
419
+ ) : DokkaPluginParametersBaseSpec(name, " example .dokkascript.plugin.DokkaScriptsPlugin" ) {
425
420
426
421
@get:InputFiles
427
422
@get:PathSensitive(PathSensitivity .RELATIVE )
0 commit comments