Skip to content

Commit

Permalink
Remove dokkaJar from the list of published JAR artifacts (#2971)
Browse files Browse the repository at this point in the history
### What's done:

 - Removed `dokkaJar` as it causes compatibility problems with IDEA 2024.2.1+
  • Loading branch information
0x6675636b796f75676974687562 authored Oct 31, 2024
1 parent 023adf3 commit a4c11d2
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,11 @@ import org.gradle.api.publish.PublishingExtension
import org.gradle.api.publish.maven.MavenPublication
import org.gradle.api.publish.maven.tasks.AbstractPublishToMaven
import org.gradle.api.tasks.TaskCollection
import org.gradle.api.tasks.bundling.Jar
import org.gradle.internal.logging.text.StyledTextOutput
import org.gradle.internal.logging.text.StyledTextOutput.Style.Failure
import org.gradle.internal.logging.text.StyledTextOutput.Style.Success
import org.gradle.internal.logging.text.StyledTextOutputFactory
import org.gradle.kotlin.dsl.configure
import org.gradle.kotlin.dsl.create
import org.gradle.kotlin.dsl.getByType
import org.gradle.kotlin.dsl.support.serviceOf
import org.gradle.kotlin.dsl.withType
Expand Down Expand Up @@ -73,11 +71,6 @@ fun Project.configureSigning() {

@Suppress("TOO_LONG_FUNCTION")
internal fun Project.configurePublications() {
val dokkaJar: Jar = tasks.create<Jar>("dokkaJar") {
group = "documentation"
archiveClassifier.set("javadoc")
from(tasks.findByName("dokkaHtml"))
}
configure<PublishingExtension> {
repositories {
mavenLocal()
Expand All @@ -87,7 +80,6 @@ internal fun Project.configurePublications() {
* The content of this section will get executed only if
* a particular module has a `publishing {}` section.
*/
this.artifact(dokkaJar)
this.pom {
name.set(project.name)
description.set(project.description ?: project.name)
Expand Down

0 comments on commit a4c11d2

Please sign in to comment.