The documentation at <https://kotlin.github.io/dok...
# dokka
e
The documentation at https://kotlin.github.io/dokka/1.4.20/user_guide/gradle/usage/#configuration-options says to use the following to specify the output directory:
outputDirectory.set(buildDir.resolve("dokka"))
But I keep getting an error using Gradle 6.8.3:
Copy code
A problem occurred configuring project ':common'.
> Could not create task ':common:androidJavadocsJar'.
   > Could not create task of type 'AndroidJavadocsJar'.
      > Could not create task ':common:dokkaHtml'.
         > No signature of method: java.io.File.resolve() is applicable for argument types: (String) values: [dokka]
l
I think it assumes that
buildDir
is of type Path. 🤔
m
Thats weird, are you using kts or groovy?
e
Groovy
m
Uh, I realised that
resolve
is an extension method from kotlin. I think that If you want to use something similar in groovy you would need to fallback to strings concatenation