Summary: Sets up the plugins necessary to publish to Maven Central. Pull Request resolved: https://github.com/facebook/yoga/pull/1086 Test Plan: ./gradlew publishToMavenLocal -PRELEASE_SIGNING_ENABLED=false Reviewed By: mweststrate Differential Revision: D28604529 Pulled By: passy fbshipit-source-id: 2c35b94ce0e254bc7a8bc80e449ac5dadb5def38
37 lines
926 B
Groovy
37 lines
926 B
Groovy
/*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
apply plugin: 'com.android.library'
|
|
|
|
android {
|
|
compileSdkVersion rootProject.compileSdkVersion
|
|
buildToolsVersion rootProject.buildToolsVersion
|
|
ndkVersion rootProject.ndkVersion
|
|
|
|
defaultConfig {
|
|
minSdkVersion rootProject.minSdkVersion
|
|
targetSdkVersion rootProject.targetSdkVersion
|
|
}
|
|
|
|
compileOptions {
|
|
targetCompatibility rootProject.targetCompatibilityVersion
|
|
sourceCompatibility rootProject.sourceCompatibilityVersion
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
api project(':yoga')
|
|
}
|
|
|
|
// We don't build Javadoc at this time as we can't disable "BUCK" files
|
|
// from mistakenly getting parsed as Java.
|
|
tasks.withType(Javadoc).all {
|
|
enabled = false
|
|
}
|
|
|
|
apply plugin: 'com.vanniktech.maven.publish'
|