Skip to content

Commit c3ac980

Browse files
authored
Configures auto-exporter to publish shaded and non-shaded variants (#235)
* Configures auto-exporter to publish shaded and non-shaded variants * Remove shadowed=true from gradle properties Since auto-exporter has to be published as both - shaded and unshaded variant, the only required changes is to remove the shadowed property from gradle which prevents publishing shaded variants. The gradle shadow plugin automatically publishes a shaded artifact when used with maven publish plugin. The sources and javadoc for shaded JAR are not published unless explicitly mentioned.
1 parent 0c1d840 commit c3ac980

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

exporters/auto/build.gradle

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -66,16 +66,3 @@ tasks.named('shadowJar') {
6666
enableRelocation true
6767
relocationPrefix 'shadow'
6868
}
69-
70-
publishing {
71-
publications {
72-
maven(MavenPublication) { publication ->
73-
from project.shadow.component(publication)
74-
artifact sourcesJar
75-
artifact javadocJar
76-
components.java.withVariantsFromConfiguration(configurations.runtimeElements) {
77-
skip()
78-
}
79-
}
80-
}
81-
}

exporters/auto/gradle.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
release.qualifier=alpha
22
release.enabled=true
3-
shadowed=true

0 commit comments

Comments
 (0)