diff options
author | Marcin Aman <marcin.aman@gmail.com> | 2020-11-18 14:51:00 +0100 |
---|---|---|
committer | Kamil Doległo <9080183+kamildoleglo@users.noreply.github.com> | 2020-11-19 15:12:11 +0100 |
commit | 39cceaa3af6df5c419b9cd1f3d880ac8cf7d94a5 (patch) | |
tree | fd82be8c80835994ec5785df993ed74beb61fd99 /integration-tests | |
parent | 1959b914c0838be814d45f617517ac73fa33cd47 (diff) | |
download | dokka-39cceaa3af6df5c419b9cd1f3d880ac8cf7d94a5.tar.gz dokka-39cceaa3af6df5c419b9cd1f3d880ac8cf7d94a5.tar.bz2 dokka-39cceaa3af6df5c419b9cd1f3d880ac8cf7d94a5.zip |
Adjust integration tests to the new package options API
Diffstat (limited to 'integration-tests')
-rw-r--r-- | integration-tests/gradle/projects/it-basic/build.gradle.kts | 2 | ||||
-rw-r--r-- | integration-tests/gradle/projects/stdlib/stdlib.diff | 48 | ||||
-rw-r--r-- | integration-tests/maven/projects/it-maven/pom.xml | 2 |
3 files changed, 26 insertions, 26 deletions
diff --git a/integration-tests/gradle/projects/it-basic/build.gradle.kts b/integration-tests/gradle/projects/it-basic/build.gradle.kts index 6246bf93..e21b9c2a 100644 --- a/integration-tests/gradle/projects/it-basic/build.gradle.kts +++ b/integration-tests/gradle/projects/it-basic/build.gradle.kts @@ -30,7 +30,7 @@ tasks.withType<DokkaTask> { configureEach { suppressedFiles.from(file("src/main/kotlin/it/suppressedByPath")) perPackageOption { - prefix.set("it.suppressedByPackage") + matchingRegex.set("it.suppressedByPackage.*") suppress.set(true) } sourceLink { diff --git a/integration-tests/gradle/projects/stdlib/stdlib.diff b/integration-tests/gradle/projects/stdlib/stdlib.diff index b7f7e30d..d1ca9009 100644 --- a/integration-tests/gradle/projects/stdlib/stdlib.diff +++ b/integration-tests/gradle/projects/stdlib/stdlib.diff @@ -200,23 +200,23 @@ index aa8f21b..dd6a2ae 100644 + sourceRoots.from("$kotlin_root/libraries/stdlib/jvm/runtime/kotlin/TypeAliases.kt") + sourceRoots.from("$kotlin_root/libraries/stdlib/jvm/runtime/kotlin/text/TypeAliases.kt") + perPackageOption { -+ prefix.set("kotlin.reflect.jvm.internal") ++ matchingRegex.set("kotlin.reflect.jvm.internal(\$|\\.).*") + suppress.set(true) + } + perPackageOption { -+ prefix.set("kotlin.jvm.functions") ++ matchingRegex.set("kotlin.jvm.functions(\$|\\.).*") + suppress.set(true) + } + perPackageOption { -+ prefix.set("kotlin.jvm.internal") ++ matchingRegex.set("kotlin.jvm.internal(\$|\\.).*") + suppress.set(true) + } + perPackageOption { -+ prefix.set("kotlin.coroutines.jvm.internal") ++ matchingRegex.set("kotlin.coroutines.jvm.internal(\$|\\.).*") + suppress.set(true) + } + perPackageOption { -+ prefix.set("kotlin.coroutines.experimental.migration") ++ matchingRegex.set("kotlin.coroutines.experimental.migration(\$|\\.).*") + suppress.set(true) + } + } @@ -237,23 +237,23 @@ index aa8f21b..dd6a2ae 100644 + dependsOn("kotlin-stdlib-common") + sourceRoots.setFrom("$kotlin_sources/kotlin-stdlib-jdk8/") + perPackageOption { -+ prefix.set("kotlin.reflect.jvm.internal") ++ matchingRegex.set("kotlin.reflect.jvm.internal") + suppress.set(true) + } + perPackageOption { -+ prefix.set("kotlin.jvm.functions") ++ matchingRegex.set("kotlin.jvm.functions(\$|\\.).*") + suppress.set(true) + } + perPackageOption { -+ prefix.set("kotlin.jvm.internal") ++ matchingRegex.set("kotlin.jvm.internal(\$|\\.).*") + suppress.set(true) + } + perPackageOption { -+ prefix.set("kotlin.coroutines.jvm.internal") ++ matchingRegex.set("kotlin.coroutines.jvm.internal(\$|\\.).*") + suppress.set(true) + } + perPackageOption { -+ prefix.set("kotlin.coroutines.experimental.migration") ++ matchingRegex.set("kotlin.coroutines.experimental.migration(\$|\\.).*") + suppress.set(true) + } + } @@ -274,23 +274,23 @@ index aa8f21b..dd6a2ae 100644 + dependsOn("kotlin-stdlib-common") + sourceRoots.from("$kotlin_sources/kotlin-stdlib-jdk7") + perPackageOption { -+ prefix.set("kotlin.reflect.jvm.internal") ++ matchingRegex.set("kotlin.reflect.jvm.internal(\$|\\.).*") + suppress.set(true) + } + perPackageOption { -+ prefix.set("kotlin.jvm.functions") ++ matchingRegex.set("kotlin.jvm.functions(\$|\\.).*") + suppress.set(true) + } + perPackageOption { -+ prefix.set("kotlin.jvm.internal") ++ matchingRegex.set("kotlin.jvm.internal(\$|\\.).*") + suppress.set(true) + } + perPackageOption { -+ prefix.set("kotlin.coroutines.jvm.internal") ++ matchingRegex.set("kotlin.coroutines.jvm.internal(\$|\\.).*") + suppress.set(true) + } + perPackageOption { -+ prefix.set("kotlin.coroutines.experimental.migration") ++ matchingRegex.set("kotlin.coroutines.experimental.migration(\$|\\.).*") + suppress.set(true) + } + } @@ -312,23 +312,23 @@ index aa8f21b..dd6a2ae 100644 + + sourceRoots.from("$kotlin_sources/kotlin-stdlib-js") + perPackageOption { -+ prefix.set("org.w3c") ++ matchingRegex.set("org.w3c(\$|\\.).*") + reportUndocumented.set(false) + } + perPackageOption { -+ prefix.set("org.khronos") ++ matchingRegex.set("org.khronos(\$|\\.).*") + reportUndocumented.set(false) + } + perPackageOption { -+ prefix.set("jquery") ++ matchingRegex.set("jquery(\$|\\.).*") + suppress.set(true) + } + perPackageOption { -+ prefix.set("kotlin.reflect.jvm.internal") ++ matchingRegex.set("kotlin.reflect.jvm.internal(\$|\\.).*") + suppress.set(true) + } + perPackageOption { -+ prefix.set("kotlin.js.internal") ++ matchingRegex.set("kotlin.js.internal(\$|\\.).*") + suppress.set(true) + } + } @@ -352,11 +352,11 @@ index aa8f21b..dd6a2ae 100644 + sourceRoots.from("$kotlin_native_root/Interop/JsRuntime/src/main/kotlin") + sourceRoots.from("$kotlin_native_root/runtime/src/main/kotlin") + perPackageOption { -+ prefix.set("kotlin.native.internal") ++ matchingRegex.set("kotlin.native.internal(\$|\\.).*") + suppress.set(true) + } + perPackageOption { -+ prefix.set("kotlin.test") ++ matchingRegex.set("kotlin.test(\$|\\.).*") + suppress.set(true) + } + } @@ -391,7 +391,7 @@ index aa8f21b..dd6a2ae 100644 + displayName.set("JVM") + sourceRoots.from("$kotlin_root/libraries/kotlin.test/jvm/src/main/kotlin") + perPackageOption { -+ prefix.set("org.junit") ++ matchingRegex.set("org.junit(\$|\\.).*") + skipDeprecated.set(true) + } + } @@ -467,7 +467,7 @@ index aa8f21b..dd6a2ae 100644 + displayName.set("JS") + sourceRoots.from("$kotlin_root/libraries/kotlin.test/js/src/main/kotlin") + perPackageOption { -+ prefix.set("org.junit") ++ matchingRegex.set("org.junit(\$|\\.).*") + skipDeprecated.set(true) + } + externalDocumentationLink { diff --git a/integration-tests/maven/projects/it-maven/pom.xml b/integration-tests/maven/projects/it-maven/pom.xml index 8bd5d956..17aafaf4 100644 --- a/integration-tests/maven/projects/it-maven/pom.xml +++ b/integration-tests/maven/projects/it-maven/pom.xml @@ -128,7 +128,7 @@ <perPackageOptions> <packageOptions> <!-- Will match kotlin and all sub-packages of it --> - <prefix>kotlin</prefix> + <matchingRegex>kotlin</matchingRegex> <!-- All options are optional, default values are below: --> <skipDeprecated>false</skipDeprecated> |