Lines Matching refs:artifact
103 """Generates the files required for a maven artifact.
107 * ":<NAME>": The artifact file for the given target and deps
112 given "target" is a maven artifact (i.e. the "tags" attribute contains
114 dependencies of the target that are not owned by another maven artifact,
120 artifact_name: The name of the maven artifact.
121 artifact_coordinates: The coordinates of the maven artifact in the
127 packaging: The packaging of the maven artifact. E.g. "aar"
259 Validates that the given "target" is a maven artifact (i.e. the "tags"
262 another maven artifact, and validates that the given "deps" matches
266 artifact = target[MavenInfo].artifact
267 if not artifact:
268 fail("\t[Error]: %s is not a maven artifact" % target.label)
270 if artifact != ctx.attr.expected_artifact:
272 "\t[Error]: %s expected artifact, %s, but was: %s" % (
275 artifact,
288 actual_maven_deps = [_strip_artifact_version(artifact) for artifact in maven_nearest_artifacts]
309 def _strip_artifact_version(artifact):
310 return artifact.rsplit(":", 1)[0]
316 doc = "The target to generate a maven artifact for.",
321 doc = "The artifact name of the target.",