We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ad3161 commit d2f4a17Copy full SHA for d2f4a17
1 file changed
codecs/json-codec/build.gradle.kts
@@ -43,3 +43,14 @@ tasks {
43
configurePublishing {
44
customComponent = components["shadow"] as SoftwareComponent
45
}
46
+
47
+// Ensure sources and javadocs jars are included in shadow component
48
+afterEvaluate {
49
+ val shadowComponent = components["shadow"] as AdhocComponentWithVariants
50
+ shadowComponent.addVariantsFromConfiguration(configurations.sourcesElements.get()) {
51
+ mapToMavenScope("runtime")
52
+ }
53
+ shadowComponent.addVariantsFromConfiguration(configurations.javadocElements.get()) {
54
55
56
+}
0 commit comments