1# Copyright (C) 2024 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# Starlark rules for generating Maven pom files 16 17load("@bazel_skylib//:bzl_library.bzl", "bzl_library") 18load(":maven_info.bzl", "maven_info_tests") 19load(":pom_file.bzl", "pom_file_tests") 20 21package(default_visibility = ["//:src"]) 22 23exports_files(["pom-template.xml"]) 24 25bzl_library( 26 name = "maven_bzl", 27 srcs = ["maven.bzl"], 28 deps = [ 29 ":maven_info_bzl", 30 "@rules_java//java:rules", 31 ], 32) 33 34bzl_library( 35 name = "maven_info_bzl", 36 srcs = ["maven_info.bzl"], 37 deps = [ 38 "@bazel_skylib//lib:unittest", 39 "@rules_java//java:rules", 40 ], 41) 42 43maven_info_tests() 44 45pom_file_tests() 46