Skip to content

Commit 23ea6a5

Browse files
jordanlin00copybara-github
authored andcommitted
Move gitoptions to its own lib
PiperOrigin-RevId: 746519437 Change-Id: I57db109dc9a448e9e274737f6da7be07ab1727ac
1 parent baae94c commit 23ea6a5

File tree

2 files changed

+33
-3
lines changed

2 files changed

+33
-3
lines changed

java/com/google/copybara/git/BUILD

+29-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2018 Google Inc.
1+
# Copyright 2018 Google LLC
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -31,7 +31,6 @@ CORE = [
3131
"NonFastForwardRepositoryException.java",
3232
"RebaseConflictException.java",
3333
"Refspec.java",
34-
"GitOptions.java",
3534
]
3635

3736
CREDS = [
@@ -123,6 +122,34 @@ java_library(
123122
],
124123
)
125124

125+
java_library(
126+
name = "git_options",
127+
srcs = [
128+
"GitOptions.java",
129+
],
130+
javacopts = JAVACOPTS,
131+
deps = [
132+
":core",
133+
":environment",
134+
"//java/com/google/copybara:base",
135+
"//java/com/google/copybara:general_options",
136+
"//java/com/google/copybara/authoring",
137+
"//java/com/google/copybara/credentials",
138+
"//java/com/google/copybara/exception",
139+
"//java/com/google/copybara/jcommander:splitters",
140+
"//java/com/google/copybara/jcommander:validators",
141+
"//java/com/google/copybara/revision",
142+
"//java/com/google/copybara/util",
143+
"//third_party:error_prone",
144+
"//third_party:flogger",
145+
"//third_party:guava",
146+
"//third_party:jcommander",
147+
"//third_party:jsr305",
148+
"//third_party:re2j",
149+
"//third_party:shell",
150+
],
151+
)
152+
126153
java_library(
127154
name = "creds",
128155
srcs = CREDS,

java/com/google/copybara/git/gitlab/BUILD

+4-1
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,16 @@ package(default_visibility = ["//visibility:public"])
1818

1919
java_library(
2020
name = "git_lab_options",
21-
srcs = ["GitLabOptions.java"],
21+
srcs = [
22+
"GitLabOptions.java",
23+
],
2224
deps = [
2325
"//java/com/google/copybara:general_options",
2426
"//java/com/google/copybara:options",
2527
"//java/com/google/copybara/exception",
2628
"//java/com/google/copybara/git:core",
2729
"//java/com/google/copybara/git:creds",
30+
"//java/com/google/copybara/git:git_options",
2831
"//java/com/google/copybara/git/gitlab/api:gitlab_api",
2932
"//java/com/google/copybara/http/auth",
3033
"//java/com/google/copybara/util/console",

0 commit comments

Comments
 (0)