Gradle version bump and POM details

Summary: This improves the quality of the published POM files, adding dependencies and marking the object as an 'aar'.  It also bumps the version to 1.2.0 for JCenter.

Reviewed By: emilsjolander

Differential Revision: D4620150

fbshipit-source-id: 968f1cea21af4b2f19aeff3f32ad575b185fa1bb
This commit is contained in:
Robert Spencer
2017-03-07 03:52:51 -08:00
committed by Facebook Github Bot
parent 5bc0197c78
commit abf912b729
5 changed files with 34 additions and 24 deletions

View File

@@ -6,7 +6,7 @@ apply plugin: 'maven-publish'
targetCompatibility = '1.7'
sourceCompatibility = '1.7'
version = '1.0.0'
version = '1.2.0'
group = 'com.facebook.yoga.android'
android {
@@ -22,17 +22,10 @@ android {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
sourceSets.main {
jni.srcDirs = [] // disalbe NDK auto build (not sure why this is necessary)
// The alternative, fat-aar does an equivalent thing to this hack
// seehttps://github.com/adwiv/android-fat-aar/blob/master/fat-aar.gradle#L307
jniLibs.srcDirs = ['build/intermediates/exploded-aar/com.facebook.yoga/yoga/1.0.0/jni']
}
}
dependencies {
compile project(':yoga')
compile 'com.facebook.yoga:yoga:1.2.0'
}
task sourcesJar(type: Jar) {