• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copybara project config for importing desugar tool from bazel
2import_url = "rpc://github.googlesource.com/bazelbuild/bazel"
3
4core.workflow(
5    name = "default",
6    origin = git.origin(
7        url = import_url,
8        ref = "master",
9    ),
10    origin_files = glob(
11        include = [
12            "src/tools/android/java/com/google/devtools/build/android/desugar/**",
13            "src/test/java/com/google/devtools/build/android/desugar/**",
14            "src/tools/android/java/com/google/devtools/build/android/Converters.java",
15            "src/main/java/com/google/devtools/common/options/**",
16        ],
17        exclude = [
18            "**/BUILD*",
19        ],
20    ),
21    destination = git.gerrit_destination(
22        url = "sso://android/platform/external/desugar",
23        fetch = "upstream-master",
24        push_to_refs_for = "upstream-master",
25    ),
26    authoring = authoring.pass_thru("Bazel Team <no-reply@google.com>"),
27    mode = "ITERATIVE",
28    transformations = [
29        core.verify_match(
30            regex = "Licensed under the Apache License, Version 2.0",
31            paths = glob(["**"], exclude = [
32                "src/test/java/com/google/devtools/build/android/desugar/**.txt",
33                "src/test/java/com/google/devtools/build/android/desugar/**.jar"
34                ]),
35        ),
36        core.move("src/tools/android", ""),
37        core.move("src/main", ""),
38        core.move("src/test/", "test"),
39    ],
40)
41