diff options
author | aSemy <897017+aSemy@users.noreply.github.com> | 2023-04-17 14:43:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-17 14:43:15 +0200 |
commit | 5e8120257f842b1abc767143abcb826c80e6e43d (patch) | |
tree | d6d1cd89541ac8848288d6df22f157edf2bd914d /build-logic/src | |
parent | 21afcb40ad5265d2214c05179614eb2f070526f2 (diff) | |
download | dokka-5e8120257f842b1abc767143abcb826c80e6e43d.tar.gz dokka-5e8120257f842b1abc767143abcb826c80e6e43d.tar.bz2 dokka-5e8120257f842b1abc767143abcb826c80e6e43d.zip |
Disable publication of shadowRuntimeElements variant (#2961)
Diffstat (limited to 'build-logic/src')
-rw-r--r-- | build-logic/src/main/kotlin/org/jetbrains/conventions/maven-publish.gradle.kts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/build-logic/src/main/kotlin/org/jetbrains/conventions/maven-publish.gradle.kts b/build-logic/src/main/kotlin/org/jetbrains/conventions/maven-publish.gradle.kts index f4baa3e9..9b7169f6 100644 --- a/build-logic/src/main/kotlin/org/jetbrains/conventions/maven-publish.gradle.kts +++ b/build-logic/src/main/kotlin/org/jetbrains/conventions/maven-publish.gradle.kts @@ -1,5 +1,7 @@ package org.jetbrains.conventions +import com.github.jengelman.gradle.plugins.shadow.ShadowPlugin + plugins { id("org.jetbrains.conventions.base") `maven-publish` @@ -56,3 +58,11 @@ publishing { } } } + +plugins.withType<ShadowPlugin>().configureEach { + // manually disable publication of Shadow elements https://github.com/johnrengelman/shadow/issues/651#issue-839148311 + // This is done to preserve compatibility and have the same behaviour as previous versions of Dokka. + // For more details, see https://github.com/Kotlin/dokka/pull/2704#issuecomment-1499517930 + val javaComponent = components["java"] as AdhocComponentWithVariants + javaComponent.withVariantsFromConfiguration(configurations["shadowRuntimeElements"]) { skip() } +} |