Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,10 @@ abstract class PublishedProjectEnvironmentConfig(
}

project.extensions.configure<MavenPublishBaseExtension>("mavenPublishing") {
// Publish empty JAR if the project has no API, and thus no docs
if (dokkaExtension == null) {
// Publish empty JAR
// if the project has no API, and thus no docs,
// or, we are publishing a snapshot (wasted disk space and CI time imo)
if (dokkaExtension == null || canPublishSnapshot) {
configure(KotlinJvm(javadocJar = JavadocJar.Empty()))
}

Expand Down