-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7739 from jwnimmer-tri/bazel-reuse-workspace-pr6
Rewrite maven rules to use java_import_external
- Loading branch information
Showing
15 changed files
with
115 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# -*- python -*- | ||
|
||
# This file exists to make our directory into a Bazel package, so that our | ||
# neighboring *.bzl file can be loaded elsewhere. | ||
|
||
load("//tools/lint:lint.bzl", "add_lint_tests") | ||
|
||
add_lint_tests() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# -*- mode: python -*- | ||
|
||
load("@bazel_tools//tools/build_defs/repo:java.bzl", "java_import_external") | ||
load("@drake//tools/workspace:maven.bzl", "MAVEN_BASE_URLS") | ||
|
||
def com_jidesoft_jide_oss_repository(name): | ||
java_import_external( | ||
name = name, | ||
licenses = [], | ||
jar_urls = [ | ||
base + "com/jidesoft/jide-oss/2.9.7/jide-oss-2.9.7.jar" | ||
for base in MAVEN_BASE_URLS | ||
], | ||
jar_sha256 = "a2edc2749cf482f6b2b1331f35f0383a1a11c19b1cf6d9a8cf7c69ce4cc8e04b", # noqa | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# -*- python -*- | ||
|
||
# This file exists to make our directory into a Bazel package, so that our | ||
# neighboring *.bzl file can be loaded elsewhere. | ||
|
||
load("//tools/lint:lint.bzl", "add_lint_tests") | ||
|
||
add_lint_tests() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# -*- mode: python -*- | ||
|
||
load("@bazel_tools//tools/build_defs/repo:java.bzl", "java_import_external") | ||
load("@drake//tools/workspace:maven.bzl", "MAVEN_BASE_URLS") | ||
|
||
def commons_io_repository(name): | ||
java_import_external( | ||
name = name, | ||
licenses = [], | ||
jar_urls = [ | ||
base + "commons-io/commons-io/1.3.1/commons-io-1.3.1.jar" | ||
for base in MAVEN_BASE_URLS | ||
], | ||
jar_sha256 = "3307319ddc221f1b23e8a1445aef10d2d2308e0ec46977b3f17cbb15c0ef335b", # noqa | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# -*- python -*- | ||
|
||
# URL prefixes (including the "/") where maven jars can be found. | ||
MAVEN_BASE_URLS = [ | ||
"https://jcenter.bintray.com/", | ||
"https://repo1.maven.org/maven2/", | ||
"http://maven.ibiblio.org/maven2/", # N.B. ibiblio doesn't offer https. | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# -*- mode: python -*- | ||
|
||
load("@bazel_tools//tools/build_defs/repo:java.bzl", "java_import_external") | ||
load("@drake//tools/workspace:maven.bzl", "MAVEN_BASE_URLS") | ||
|
||
def net_sf_jchart2d_repository(name): | ||
# In the unlikely event that you update the version here, verify that the | ||
# licenses in tools/third_party/jchart2d/LICENSE are still applicable. | ||
java_import_external( | ||
name = name, | ||
licenses = [], | ||
jar_urls = [ | ||
base + "net/sf/jchart2d/jchart2d/3.3.2/jchart2d-3.3.2.jar" | ||
for base in MAVEN_BASE_URLS | ||
], | ||
jar_sha256 = "41af674b1bb00d8b89a0649ddaa569df5750911b4e33f89b211ae82e411d16cc", # noqa | ||
) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# -*- python -*- | ||
|
||
# This file exists to make our directory into a Bazel package, so that our | ||
# neighboring *.bzl file can be loaded elsewhere. | ||
|
||
load("//tools/lint:lint.bzl", "add_lint_tests") | ||
|
||
add_lint_tests() |
15 changes: 15 additions & 0 deletions
15
tools/workspace/org_apache_xmlgraphics_commons/package.bzl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# -*- mode: python -*- | ||
|
||
load("@bazel_tools//tools/build_defs/repo:java.bzl", "java_import_external") | ||
load("@drake//tools/workspace:maven.bzl", "MAVEN_BASE_URLS") | ||
|
||
def org_apache_xmlgraphics_commons_repository(name): | ||
java_import_external( | ||
name = name, | ||
licenses = [], | ||
jar_urls = [ | ||
base + "org/apache/xmlgraphics/xmlgraphics-commons/1.3.1/xmlgraphics-commons-1.3.1.jar" # noqa | ||
for base in MAVEN_BASE_URLS | ||
], | ||
jar_sha256 = "7ce0c924c84e2710c162ae1c98f5047d64f528268792aba642d4bae5e1de7181", # noqa | ||
) |