blob: 8806b6d57712ad737e90ec0686a14eb9b1cfbff9 [file] [log] [blame]
load("@rules_license//rules:license.bzl", "license")
load("//tools/distributions:distribution_rules.bzl", "distrib_java_import")
package(
default_applicable_licenses = [":license"],
default_visibility = ["//visibility:public"],
)
licenses(["reciprocal"]) # CDDL License
license(
name = "license",
package_name = "jaxb",
license_kinds = [
"@rules_license//licenses/spdx:CDDL-1.1",
],
license_text = "LICENSE.txt",
package_version = "2.3.1",
)
filegroup(
name = "srcs",
srcs = glob(["**"]),
)
distrib_java_import(
name = "jaxb",
enable_distributions = ["debian"],
jars = ["jaxb-api-2.3.1-patched.jar"],
srcjar = "jaxb-api-2.3.1-sources.jar",
)
# Android databinding processing requires api, core, and impl, however
# jaxb-core-2.3.1.jar is missing on maven...
# https://mvnrepository.com/artifact/com.sun.xml.bind/jaxb-core/2.3.1
# does not actually have any jars. So, use 2.3.0 instead, which works.
java_library(
name = "jaxb-2.3.0",
visibility = ["//third_party/java/android_databinding/v3_4_0:__pkg__"],
exports = [
":jaxb-api-2.3.0",
":jaxb-core-2.3.0",
":jaxb-impl-2.3.0",
"//third_party:javax_activation",
],
)
java_import(
name = "jaxb-api-2.3.0",
jars = ["2.3.0/jaxb-api-2.3.0.jar"],
srcjar = "2.3.0/jaxb-api-2.3.0-sources.jar",
visibility = ["//visibility:private"],
)
java_import(
name = "jaxb-core-2.3.0",
jars = ["2.3.0/jaxb-core-2.3.0.jar"],
srcjar = "2.3.0/jaxb-core-2.3.0-sources.jar",
visibility = ["//visibility:private"],
)
java_import(
name = "jaxb-impl-2.3.0",
jars = ["2.3.0/jaxb-impl-2.3.0.jar"],
srcjar = "2.3.0/jaxb-impl-2.3.0-sources.jar",
visibility = ["//visibility:private"],
)