• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2018 The Dagger Authors.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15"""Macros to simplify generating maven files.
16"""
17
18load("@google_bazel_common//tools/maven:pom_file.bzl", default_pom_file = "pom_file")
19
20def pom_file(name, targets, artifact_name, artifact_id, packaging = None, **kwargs):
21    default_pom_file(
22        name = name,
23        targets = targets,
24        preferred_group_ids = [
25            "com.google.dagger",
26            "com.google",
27        ],
28        template_file = "//tools:pom-template.xml",
29        substitutions = {
30            "{artifact_name}": artifact_name,
31            "{artifact_id}": artifact_id,
32            "{packaging}": packaging or "jar",
33        },
34        excluded_artifacts = ["com.google.auto:auto-common"],
35        **kwargs
36    )
37
38POM_VERSION = "2.23.1"
39