Setup publishing of snapshots using io.github.gradle-nexus.publish-plugin

Summary:
This sets up publishing of -SNAPSHOT verison of Yoga using the
Gradle plugin `io.github.gradle-nexus.publish-plugin`

This plugin will take care of setting up the credentials for Sonatype and hitting the Maven repository.
I've cleaned up the setup and centralized it inside a script plugin in the `build-logic` folder so we can easily add more module and just use `id("publish")` to publish them as well.

Reviewed By: mdvacca

Differential Revision: D46330013

fbshipit-source-id: 7221b296b9955a257fc290a2d1ac1d9fedfb787d
This commit is contained in:
Nicola Corti
2023-05-31 15:22:21 -07:00
committed by Facebook GitHub Bot
parent 186f4d318d
commit 9a0ba05d13
9 changed files with 118 additions and 41 deletions

View File

@@ -17,6 +17,8 @@ plugins { id("com.gradle.enterprise").version("3.7.1") }
include(":sample", ":yoga", ":yoga-layout")
includeBuild("build-logic")
project(":yoga").projectDir = file("java")
project(":yoga-layout").projectDir = file("android")