aboutsummaryrefslogtreecommitdiff
path: root/examples/plugin
diff options
context:
space:
mode:
authorGoooler <wangzongler@gmail.com>2023-03-08 10:43:08 +0800
committerGitHub <noreply@github.com>2023-03-08 03:43:08 +0100
commit14c05d70b52814fe48e930b3f61fed5e8586718c (patch)
tree3c5a6453a44ad6a499b44ac24761e5ee296fcb9b /examples/plugin
parent62c980707d23d2d451c75330f7ed1ba613777cf3 (diff)
downloaddokka-14c05d70b52814fe48e930b3f61fed5e8586718c.tar.gz
dokka-14c05d70b52814fe48e930b3f61fed5e8586718c.tar.bz2
dokka-14c05d70b52814fe48e930b3f61fed5e8586718c.zip
Migrate kotlinOptions to compilerOptions (#2883)
More information: https://kotlinlang.org/docs/gradle-compiler-options.html#how-to-define-options
Diffstat (limited to 'examples/plugin')
-rw-r--r--examples/plugin/hide-internal-api/build.gradle.kts5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/plugin/hide-internal-api/build.gradle.kts b/examples/plugin/hide-internal-api/build.gradle.kts
index 19b270d2..ed8169ad 100644
--- a/examples/plugin/hide-internal-api/build.gradle.kts
+++ b/examples/plugin/hide-internal-api/build.gradle.kts
@@ -1,3 +1,4 @@
+import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import java.net.URI
@@ -30,8 +31,8 @@ dependencies {
val dokkaOutputDir = "$buildDir/dokka"
tasks {
- withType<KotlinCompile> {
- kotlinOptions.jvmTarget = "1.8"
+ withType<KotlinCompile>().configureEach {
+ compilerOptions.jvmTarget.set(JvmTarget.JVM_1_8)
}
dokkaHtml {
outputDirectory.set(file(dokkaOutputDir))