Skip to content

Commit 508e40e

Browse files
committed
chore: specify generated doc platform
1 parent 2fb3eff commit 508e40e

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

buildSrc/src/main/java/co/anitrend/arch/buildSrc/plugin/components/AndroidOptions.kt

+7-5
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import org.gradle.api.publish.maven.MavenPublication
1010
import org.gradle.kotlin.dsl.getValue
1111
import org.gradle.kotlin.dsl.invoke
1212
import org.gradle.kotlin.dsl.named
13+
import org.jetbrains.dokka.Platform
1314
import java.net.URL
1415

1516
private fun Project.dependenciesOfProject(): List<Modules.Module> {
@@ -168,7 +169,9 @@ private fun Project.createDokkaTaskProvider() = tasks.named<DokkaTask>("dokkaHtm
168169
}
169170

170171
// Used for linking to JDK documentation
171-
jdkVersion.set(8)
172+
jdkVersion.set(17)
173+
174+
platform.set(Platform.jvm)
172175

173176
// Disable linking to online kotlin-stdlib documentation
174177
noStdlibLink.set(false)
@@ -208,14 +211,13 @@ private fun Project.createDokkaTaskProvider() = tasks.named<DokkaTask>("dokkaHtm
208211
}
209212
}
210213

211-
@Suppress("UnstableApiUsage")
212214
internal fun Project.configureOptions() {
213215
if (containsBasePlugin()) {
214-
logger.lifecycle("Applying extension options for ${path}")
216+
logger.lifecycle("Applying extension options for ${project.path}")
215217

216218
val baseExt = baseExtension()
217219

218-
logger.lifecycle("Applying additional tasks options for dokka and javadoc on ${path}")
220+
logger.lifecycle("Applying additional tasks options for dokka and javadoc on ${project.path}")
219221

220222
createDokkaTaskProvider()
221223

@@ -225,7 +227,7 @@ internal fun Project.configureOptions() {
225227
}
226228

227229
val classesJar by tasks.register("classesJar", Jar::class.java) {
228-
from("${project.buildDir}/intermediates/classes/release")
230+
from("${project.layout.buildDirectory}/intermediates/classes/release")
229231
}
230232

231233
artifacts {

0 commit comments

Comments
 (0)