Summary: This sets up publishing for stable of Yoga whenever a git tag gets published. I also re-enabled Javadoc publishing as this is a requirement to hit Maven Central. Reviewed By: NickGerleman Differential Revision: D46522898 fbshipit-source-id: dc4b9139aed7aff27dce966bcee7b9b0cc4c6fe9
42 lines
957 B
Groovy
42 lines
957 B
Groovy
/*
|
|
* 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.
|
|
*/
|
|
|
|
plugins {
|
|
id("com.android.library")
|
|
id("publish")
|
|
}
|
|
|
|
android {
|
|
namespace 'com.facebook.yoga.android'
|
|
|
|
compileSdkVersion rootProject.compileSdkVersion
|
|
buildToolsVersion rootProject.buildToolsVersion
|
|
ndkVersion rootProject.ndkVersion
|
|
|
|
defaultConfig {
|
|
minSdkVersion rootProject.minSdkVersion
|
|
targetSdkVersion rootProject.targetSdkVersion
|
|
}
|
|
|
|
compileOptions {
|
|
targetCompatibility rootProject.targetCompatibilityVersion
|
|
sourceCompatibility rootProject.sourceCompatibilityVersion
|
|
}
|
|
|
|
publishing {
|
|
multipleVariants {
|
|
withSourcesJar()
|
|
withJavadocJar()
|
|
includeBuildTypeValues('debug', 'release')
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
api project(':yoga')
|
|
}
|