File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -131,8 +131,10 @@ allprojects {
131131
132132publishing {
133133 publications {
134- create<MavenPublication >(" main" ) {
135- from(components[" java" ])
134+ if (deployKotlin) {
135+ create<MavenPublication >(" main" ) {
136+ from(components[" java" ])
137+ }
136138 }
137139 }
138140}
Original file line number Diff line number Diff line change @@ -105,9 +105,11 @@ kotlin {
105105
106106publishing {
107107 publications {
108- create<MavenPublication >(" natives${platform.capitalized} " ) {
109- from(components[" java" ])
110- artifactId = " $libName -natives-$platform "
108+ if (deployNative) {
109+ create<MavenPublication >(" natives${platform.capitalized} " ) {
110+ from(components[" java" ])
111+ artifactId = " $libName -natives-$platform "
112+ }
111113 }
112114 }
113115}
You can’t perform that action at this time.
0 commit comments