File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import com.vanniktech.maven.publish.JavadocJar
22import com.vanniktech.maven.publish.SourcesJar
3+ import com.github.jengelman.gradle.plugins.shadow.ShadowExtension
34import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
45import java.util.Locale
56import org.gradle.api.file.DuplicatesStrategy
@@ -56,6 +57,12 @@ plugins {
5657 id(" com.diffplug.spotless" ) version " 8.2.1"
5758}
5859
60+ // Keep shadow packaging for GitHub releases, but do not expose host-specific
61+ // standalone artifacts in the Maven Central publication.
62+ extensions.configure<ShadowExtension >(" shadow" ) {
63+ addShadowVariantIntoJavaComponent.set(false )
64+ }
65+
5966fun normalizeProjectVersion (rawValue : String? ): String {
6067 val candidate = rawValue?.trim().orEmpty()
6168 if (candidate.isBlank()) {
You can’t perform that action at this time.
0 commit comments