
There is no support for code>java_import targets with no srcjar Will be translated and compiled, including files generated by Java annotation processing. Transitively through exports, deps and runtime_deps Java files to be transpiled to Objective-C.Īll java_library and java_import targets that can be reached Java_import and java_proto_library targets that contain Separate common target that can be depended upon. The correct way to resolve this issue is to move the shared Java source files into a If you have twoĭifferent Java targets that include the same Java source files, you may see a duplicate symbol errorĪt link time. Plus, generated code is de-duplicated at target level, not source level. Please note that the translated files included in a j2objc_library target will beĬompiled using the default compilation configuration, the same configuration as for the sources ofĪn objc_library rule with no compilation options specified in attributes. j2objc_translation_flags in the command line. Detailed information about J2ObjC itself can be found at theĬustom J2ObjC transpilation flags can be specified using the build flag This rule uses J2ObjC to translate Java sourceįiles to Objective-C, which then can be used used as dependencies of objc_library and objc_binary View rule source open_in_new j2objc_library( name, deps, compatible_with, deprecation, distribs, entry_classes, features, jre_deps, licenses, restricted_to, tags, target_compatible_with, testonly, visibility)
