dfee7b6196
GitOrigin-RevId: b578e69f18a543889ded9c57a8f0dffacdb103d8
99 lines
2.9 KiB
Text
99 lines
2.9 KiB
Text
# Copyright 2018 Google Inc.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
licenses(["notice"]) # Apache 2.0
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
JAVACOPTS = [
|
|
"-Xlint:unchecked",
|
|
"-source",
|
|
"1.8",
|
|
]
|
|
|
|
CORE = [
|
|
"FetchResult.java",
|
|
"GitCredential.java",
|
|
"GitRepository.java",
|
|
"GitRevision.java",
|
|
"InvalidRefspecException.java",
|
|
"RebaseConflictException.java",
|
|
"Refspec.java",
|
|
]
|
|
|
|
java_library(
|
|
name = "git",
|
|
srcs = glob(
|
|
["**/*.java"],
|
|
exclude = CORE + ["GitExecPath.java"],
|
|
),
|
|
javacopts = JAVACOPTS,
|
|
deps = [
|
|
":core",
|
|
"//java/com/google/copybara:base",
|
|
"//java/com/google/copybara:general_options",
|
|
"//java/com/google/copybara/authoring",
|
|
"//java/com/google/copybara/checks",
|
|
"//java/com/google/copybara/config:base",
|
|
"//java/com/google/copybara/config:global_migrations",
|
|
"//java/com/google/copybara/doc:annotations",
|
|
"//java/com/google/copybara/exception",
|
|
"//java/com/google/copybara/git/github:api",
|
|
"//java/com/google/copybara/git/github:util",
|
|
"//java/com/google/copybara/jcommander:validators",
|
|
"//java/com/google/copybara/monitor",
|
|
"//java/com/google/copybara/profiler",
|
|
"//java/com/google/copybara/templatetoken",
|
|
"//java/com/google/copybara/transform",
|
|
"//java/com/google/copybara/transform/patch",
|
|
"//java/com/google/copybara/util",
|
|
"//java/com/google/copybara/util:origin_util",
|
|
"//java/com/google/copybara/util/console",
|
|
"//third_party:flogger",
|
|
"//third_party:google_http_client",
|
|
"//third_party:guava",
|
|
"//third_party:jcommander",
|
|
"//third_party:jsr305",
|
|
"//third_party:re2j",
|
|
"//third_party:skylark-lang",
|
|
],
|
|
)
|
|
|
|
java_library(
|
|
name = "core",
|
|
srcs = CORE,
|
|
javacopts = JAVACOPTS,
|
|
deps = [
|
|
":environment",
|
|
"//java/com/google/copybara:base",
|
|
"//java/com/google/copybara/authoring",
|
|
"//java/com/google/copybara/exception",
|
|
"//java/com/google/copybara/util",
|
|
"//third_party:flogger",
|
|
"//third_party:guava",
|
|
"//third_party:jsr305",
|
|
"//third_party:re2j",
|
|
"//third_party:shell",
|
|
],
|
|
)
|
|
|
|
java_library(
|
|
name = "environment",
|
|
srcs = ["GitEnvironment.java"],
|
|
javacopts = JAVACOPTS,
|
|
deps = [
|
|
"//third_party:guava",
|
|
"//third_party:jsr305",
|
|
],
|
|
)
|