Summary: This project was still using the legacy Gradle's "apply:" syntax to apply Gradle Plugins. I'm changing it here to use instead the `plugins{}` block as it make easier to apply other plugins for publishing later. Reviewed By: mdvacca Differential Revision: D46330014 fbshipit-source-id: 5483a717a62d5ab76749026c5203dc96a35d73e7
46 lines
1.1 KiB
Groovy
46 lines
1.1 KiB
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")
|
|
}
|
|
|
|
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()
|
|
includeBuildTypeValues('debug', 'release')
|
|
}
|
|
}
|
|
}
|
|
|
|
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
|
|
}
|