Skip to content

Commit

Permalink
Change Jcommander import to use GitHub HEAD
Browse files Browse the repository at this point in the history
Change-Id: Ieec78532d354a274428e3a6861d65435fc9616eb
  • Loading branch information
hsudhof committed May 13, 2022
1 parent 2091426 commit 869c8b1
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 2 deletions.
14 changes: 14 additions & 0 deletions external/third_party/jcommander.BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package(
default_visibility = ["//visibility:public"],
)
JAVACOPTS = [
"-Xlint:unchecked",
"-Werror:-unchecked,-rawtypes",
"-Xep:CollectionIncompatibleType:OFF",
]

java_library(
name = "jcommander",
srcs = glob(["**/src/main/**/*.java"]),
javacopts = JAVACOPTS,
)
11 changes: 11 additions & 0 deletions repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -152,3 +152,14 @@ def copybara_repositories():
"https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.19.1/bazel-gazelle-v0.19.1.tar.gz",
],
)

# LICENSE: The Apache Software License, Version 2.0
maybe(
http_archive,
name = "JCommander",
sha256 = "e7ed3cf09f43d0d0a083f1b3243c6d1b45139a84a61c6356504f9b7aa14554fc",
urls = [
"https://github.com/cbeust/jcommander/archive/05254453c0a824f719bd72dac66fa686525752a5.zip",
],
build_file = "third_party/jcommander.BUILD"
)
1 change: 0 additions & 1 deletion repositories.maven.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ def copybara_maven_repositories():
maven_install,
name = DEFAULT_REPOSITORY_NAME,
artifacts = [
"com.beust:jcommander:1.48",
"com.google.auto.value:auto-value-annotations:1.9",
"com.google.auto.value:auto-value:1.9",
"com.google.auto:auto-common:1.2.1",
Expand Down
2 changes: 1 addition & 1 deletion third_party/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ java_library(
java_library(
name = "jcommander",
exports = [
"@maven//:com_beust_jcommander",
"@JCommander//:jcommander",
],
)

Expand Down

0 comments on commit 869c8b1

Please sign in to comment.