Separate annotation processors and include in java as provided

Summary:
With the current setup, the final aar contains `com.facebook.proguard.annotation.DoNotStrip`.  This is not needed (it is only used for proguard), and thus should not get published.

We move proguard annotations into its own project for this, and place it into `java/proguard-annotations`. Here we adopt the gradle convention of `src/main` to make for a nice, clean (one line!) gradle script.  As a different subproject, we can include this to `:yoga` as a `provided` dependency now, which doesn't include it in the output artifact.

Reviewed By: emilsjolander

Differential Revision: D4666572

fbshipit-source-id: a0cb26cb6c264065a0bd355b7d72ba02e3759560
This commit is contained in:
Robert Spencer
2017-03-08 00:09:32 -08:00
committed by Facebook Github Bot
parent 0405c4f77d
commit 1bf142e048
6 changed files with 5 additions and 2 deletions

View File

@@ -44,6 +44,7 @@ preBuild.dependsOn buckBuildAndCopy
dependencies {
compile(name: 'jsr305')
compile(name: 'soloader-0.1.0', ext: 'aar')
provided(project(':yoga:proguard-annotations'))
}
task sourcesJar(type: Jar) {

View File

@@ -0,0 +1 @@
apply plugin: 'java'