Lines Matching +full:- +full:- +full:optional +full:- +full:deps
7 # http://www.apache.org/licenses/LICENSE-2.0
35 An index to the path segment that represents the Java segment or -1 if
41 root_idx = -1
50 check_maven_idx = root_idx if is_src else -1
53 for idx in range(root_idx + 1, len(path_segments) - 2):
75 "{workspace}/java/foo/bar/wiz" -> "foo.bar.wiz"
76 "{workspace}/javatests/foo/bar/wiz" -> "foo.bar.wiz"
113 _path.split(label.name)[:-1],
121 "{workspace}/java/foo/bar/wiz" -> "{workspace}/java"
122 "{workspace}/javatests/foo/bar/wiz" -> "{workspace}/javatests"
123 "java/foo/bar/wiz" -> "java"
124 "javatests/foo/bar/wiz" -> "javatests"
141 return "-" in java_package or len(java_package.split(".")) < 2
147 illegal character "-" or if they are composed of only one word.
157 A boolean. True if custom_package or java_package contains "-" or is only one word.
174 deps = [],
191 unit. Optional.
193 resources: sequence of Files. Will be added to the output jar - see
194 java_library.resources. Optional.
196 Optional.
197 r_java: JavaInfo. The R.jar dependency. Optional.
198 deps: sequence of JavaInfo providers. A list of dependencies. Optional.
199 exports: sequence of JavaInfo providers. A list of exports. Optional.
200 plugins: sequence of JavaPluginInfo providers. A list of plugins. Optional.
202 plugins. Optional.
208 neverlink: Bool. Makes the compiled unit a compile-time only dependency.
210 target. Optional. By default [].
211 strict_deps: string. A string that specifies how to handle strict deps.
213 see https://docs.bazel.build/versions/master/user-manual.html#flag--strict_java_deps.
224 if deps and enable_deps_without_srcs:
225 # TODO(b/122039567): Produces a JavaInfo that exports the deps, but
226 # not the plugins. To reproduce the "deps without srcs" bug,
230 for dep in deps
233 # Add a "no-op JavaInfo" to propagate the exported_plugins when
234 # deps or exports have not been specified by the target and
249 deps = r_java_info + deps,
250 # In native, the JavaInfo exposes two Jars as compile-time deps, the
276 deps = [],
292 unit. Optional.
294 resources: sequence of Files. Will be added to the output jar - see
295 java_library.resources. Optional.
297 Optional.
298 deps: sequence of JavaInfo providers. A list of dependencies. Optional.
299 exports: sequence of JavaInfo providers. A list of exports. Optional.
300 plugins: sequence of JavaPluginInfo providers. A list of plugins. Optional.
302 plugins. Optional.
307 resources: sequence of Files. Will be added to the output jar - see
308 java_library.resources. Optional.
309 neverlink: Bool. Makes the compiled unit a compile-time only dependency.
311 target. Optional. By default [].
312 strict_deps: string. A string that specifies how to handle strict deps.
314 see https://docs.bazel.build/versions/master/user-manual.html#flag--strict_java_deps.
344 deps = deps,
374 args.add("--output")
377 args.add("--compression")
378 args.add("--normalize")
380 args.add("--exclude_build_data")
381 args.add("--warn_duplicate_resources")
383 args.add("--sources")
387 args.add("--build_target", build_target)
389 args.add("--check_desugar_deps")
391 args.add_all("--deploy_manifest_lines", deploy_manifest_lines)
393 args.add_all("--include_prefixes", include_prefixes)
431 jvm_flags = ["-Xms4G", "-Xmx4G", "-XX:+ExitOnOutOfMemoryError"] + jvm_flags
452 jar_args.add("-jar", jar)