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
33 lines
803 B
Plaintext
33 lines
803 B
Plaintext
/*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
pluginManagement {
|
|
repositories {
|
|
gradlePluginPortal()
|
|
mavenCentral()
|
|
google()
|
|
}
|
|
}
|
|
|
|
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")
|
|
|
|
rootProject.name = "yoga-github"
|
|
|
|
// If you specify a file inside gradle/gradle-enterprise.gradle.kts
|
|
// you can configure your custom Gradle Enterprise instance
|
|
if (file("./gradle/gradle-enterprise.gradle.kts").exists()) {
|
|
apply(from = "./gradle/gradle-enterprise.gradle.kts")
|
|
}
|