Maven central publish (#1086)

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
This commit is contained in:
Pascal Hartig
2021-05-21 11:40:17 -07:00
committed by Facebook GitHub Bot
parent 13e079e8f3
commit e3a59aa50e
7 changed files with 23 additions and 8 deletions

View File

@@ -26,3 +26,11 @@ android {
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'

View File

@@ -14,6 +14,7 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:4.2.1'
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.15.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
@@ -22,7 +23,7 @@ buildscript {
allprojects {
repositories {
google()
jcenter()
mavenCentral()
}
}

View File

@@ -9,7 +9,7 @@
org.gradle.jvmargs=-Xmx1536M
VERSION_NAME=1.17.0-SNAPSHOT
VERSION_NAME=1.19.0
POM_URL=https://github.com/facebook/yoga
POM_SCM_URL=https://github.com/facebook/yoga.git
POM_SCM_CONNECTION=scm:git:https://github.com/facebook/yoga.git
@@ -17,5 +17,8 @@ POM_SCM_DEV_CONNECTION=scm:git:git@github.com:facebook/yoga.git
POM_LICENSE_NAME=MIT License
POM_LICENSE_URL=https://github.com/facebook/yoga/blob/master/LICENSE
POM_LICENSE_DIST=repo
POM_LICENCE_NAME=MIT License
POM_LICENCE_URL=https://github.com/facebook/yoga/blob/master/LICENSE
POM_LICENCE_DIST=repo
POM_DEVELOPER_ID=facebook
POM_DEVELOPER_NAME=facebook

View File

@@ -52,9 +52,11 @@ android {
}
dependencies {
implementation 'com.google.code.findbugs:jsr305:3.0.1'
implementation 'com.google.code.findbugs:jsr305:3.0.2'
implementation project(':yoga:proguard-annotations')
implementation 'com.facebook.soloader:soloader:0.5.1'
implementation 'com.facebook.soloader:soloader:0.10.1'
testImplementation 'junit:junit:4.12'
testImplementation project(':testutil')
}
apply plugin: 'com.vanniktech.maven.publish'

View File

@@ -9,3 +9,5 @@ apply plugin: 'java'
sourceCompatibility = '1.7'
targetCompatibility = '1.7'
apply plugin: 'com.vanniktech.maven.publish'

View File

@@ -33,8 +33,8 @@ android {
}
dependencies {
implementation 'com.facebook.soloader:soloader:0.5.1'
implementation 'com.google.code.findbugs:jsr305:3.0.1'
implementation 'com.facebook.soloader:soloader:0.10.1'
implementation 'com.google.code.findbugs:jsr305:3.0.2'
implementation project(':yoga:proguard-annotations')
}
}

View File

@@ -29,11 +29,10 @@ android {
externalNativeBuild {
cmake {
path 'src/main/cpp/CMakeLists.txt'
version '3.6.0-rc2'
}
}
dependencies {
implementation 'com.facebook.soloader:soloader:0.5.1'
implementation 'com.facebook.soloader:soloader:0.10.1'
}
}