File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -248,6 +248,9 @@ subprojects {
248248 groupId = ' com.google.cloud.opentelemetry'
249249 afterEvaluate {
250250 artifactId = archivesBaseName
251+ if (findProperty(" shadow.release" ) != null ) {
252+ artifactId = artifactId + " -shaded"
253+ }
251254 if (findProperty(" release.qualifier" ) != null ) {
252255 String [] versionParts = version. split(' -' )
253256 versionParts[0 ] = " ${ versionParts[0]} -${ findProperty("release.qualifier")} "
Original file line number Diff line number Diff line change @@ -66,3 +66,11 @@ tasks.named('shadowJar') {
6666 enableRelocation true
6767 relocationPrefix ' shadow'
6868}
69+
70+ publishing {
71+ publications {
72+ shadow(MavenPublication ) { publication ->
73+ project. shadow. component(publication)
74+ }
75+ }
76+ }
Original file line number Diff line number Diff line change 11release.qualifier =alpha
22release.enabled =true
3+ # Releases a shadowed variant of the artifact with '-shaded' as artifactId suffix
4+ shadow.release =true
You can’t perform that action at this time.
0 commit comments