Skip to content

Commit

Permalink
Merge pull request #167 from square/rick/configure-android-variant-pu…
Browse files Browse the repository at this point in the history
…blishing

configure publishing for the release variant
  • Loading branch information
RBusarow authored Apr 30, 2024
2 parents 38fd63e + 862bfd9 commit 6f79efe
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import com.vanniktech.maven.publish.AndroidSingleVariantLibrary
import com.vanniktech.maven.publish.MavenPublishBaseExtension
import com.vanniktech.maven.publish.SonatypeHost
import kotlinx.validation.ApiValidationExtension
Expand Down Expand Up @@ -58,7 +59,7 @@ extensions.configure<ApiValidationExtension> {
"compose-tests",
"compose-unsupported-tests",
"sample",
"sample-compose"
"sample-compose",
)
}

Expand All @@ -78,6 +79,10 @@ subprojects {
publishToMavenCentral(SonatypeHost.S01)
signAllPublications()
pomFromGradleProperties()

configure(
AndroidSingleVariantLibrary(variant = "release", sourcesJar = true, publishJavadocJar = true),
)
}
}

Expand Down

0 comments on commit 6f79efe

Please sign in to comment.