|
13 | 13 | * See the License for the specific language governing permissions and |
14 | 14 | * limitations under the License. |
15 | 15 | **/ |
16 | | -import org.jetbrains.dokka.DokkaConfiguration.Visibility |
17 | | -import org.jetbrains.dokka.gradle.DokkaTaskPartial |
| 16 | +import org.jetbrains.dokka.gradle.DokkaExtension |
| 17 | +import org.jetbrains.dokka.gradle.engine.parameters.VisibilityModifier |
18 | 18 | import java.net.URI |
19 | 19 |
|
20 | 20 | plugins { |
21 | 21 | id("org.jetbrains.dokka") |
22 | 22 | } |
23 | 23 |
|
24 | | -tasks.withType<DokkaTaskPartial>().configureEach { |
25 | | - suppressInheritedMembers = true |
| 24 | +rootProject.dependencies { dokka(project(project.path)) } |
| 25 | + |
| 26 | +extensions.configure<DokkaExtension> { |
| 27 | + dokkaPublications.configureEach { |
| 28 | + suppressInheritedMembers.set(true) |
| 29 | + } |
26 | 30 |
|
27 | 31 | dokkaSourceSets.configureEach { |
28 | 32 | includes.from("README.md") |
29 | | - noStdlibLink = true |
| 33 | + enableKotlinStdLibDocumentationLink.set(false) |
30 | 34 |
|
31 | | - externalDocumentationLink { |
32 | | - url = URI("https://error.kotlincrypto.org/").toURL() |
| 35 | + externalDocumentationLinks.create("error") { |
| 36 | + url.set(URI("https://error.kotlincrypto.org/")) |
33 | 37 | } |
34 | 38 |
|
35 | 39 | sourceLink { |
36 | | - localDirectory = rootDir |
37 | | - remoteUrl = URI("https://github.com/KotlinCrypto/random/tree/master").toURL() |
38 | | - remoteLineSuffix = "#L" |
| 40 | + localDirectory.set(rootDir) |
| 41 | + remoteUrl.set(URI("https://github.com/KotlinCrypto/random/tree/master")) |
| 42 | + remoteLineSuffix.set("#L") |
39 | 43 | } |
40 | 44 |
|
41 | | - documentedVisibilities.set(setOf( |
42 | | - Visibility.PUBLIC, |
43 | | - )) |
| 45 | + documentedVisibilities( |
| 46 | + VisibilityModifier.Public, |
| 47 | + ) |
44 | 48 | } |
45 | 49 | } |
0 commit comments