Created by: raviagarwal7
PrebuiltJar has deps
which is exported by default. Include it’s transitiveClasspath when building the javaplugin properties (https://github.com/facebook/buck/blob/master/src/com/facebook/buck/jvm/java/AbstractJavacPluginProperties.java#L97).
Previously: With rules defined below dagger
processor will only have javaDep
and firstLevelPrebuilt
in its classpath.
After: With rules defined below dagger
processor will only have javaDep
, firstLevelPrebuilt
and transitivePrebuilt
as well. Same is the behaviour if the prebuilt is added as a dependency to a java library since deps of prebuilt are exported by default.
java_annotation_processor(
name = 'dagger',
deps = [
'//:javaDep',
'//lib/firstLevelPrebuilt'
]
)
prebuilt_jar(
name = 'firstLevelPrebuilt'
deps = [
'//lib:transitivePrebuilt'
]
)
prebuilt_jar(
name = 'transitivePrebuilt'
)
Added Tests.