Skip to content

Commit

Permalink
Use an explicit setter to help IntelliJ IDEA
Browse files Browse the repository at this point in the history
For some reason, IntelliJ IDEA's Kotlin support does not recognize
that `destinationDir = ...` is a correct invocation of the
`setDestinationDir` setter.  That works just fine when run in Gradle,
but IntelliJ IDEA flags it as an error.  To keep IntelliJ IDEA happy,
we can write this property assignment as an explicit setter call
instead.
  • Loading branch information
liblit committed Jan 15, 2024
1 parent a153f4c commit 42d606b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ dependencies {
tasks.register<Javadoc>("aggregatedJavadocs") {
description = "Generate javadocs from all child projects as if they were a single project"
group = "Documentation"
destinationDir = layout.buildDirectory.dir("docs/javadoc").get().asFile
setDestinationDir(layout.buildDirectory.dir("docs/javadoc").get().asFile)
title = "${project.name} $version API"
(options as StandardJavadocDocletOptions).author(true)
classpath = aggregatedJavadocClasspath
Expand Down

0 comments on commit 42d606b

Please sign in to comment.