-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert jflex_deps() to use maven_jar (#16)
* Revert "Replace maven_jar by maven_install for JFlex deps." This reverts commit a25b375. `maven_install` can only be loaded in the WORKSPACE, which breaks the simple use of `jflex_deps()`. * Add sha256 on the JFlex maven_jar
- Loading branch information
Showing
3 changed files
with
28 additions
and
11 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
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 |
---|---|---|
@@ -1,6 +1,21 @@ | ||
# Copyright 2018-2019 Google LLC. | ||
# Copyright 2018 Google LLC. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
JFLEX_DEPS = [ | ||
"de.jflex:jflex:1.7.0", | ||
"de.jflex:cup_runtime:11b", | ||
] | ||
|
||
def jflex_deps(): | ||
"""Bazel macro that iports dependencies used by JFlex.""" | ||
|
||
native.maven_jar( | ||
name = "de_jflex_jflex_1_7_0", | ||
artifact = "de.jflex:jflex:1.7.0", | ||
repository = "https://jcenter.bintray.com/", | ||
sha256 = "c40e64600f7d29e1618a1c1d5cd697c926ff8495e166ea9416cae19644e37ae6", | ||
sha256_src = "3b18eb44332183ac1fbbf4573da1f2e8a373b71899a9d05a0d70308d5c5a56f3", | ||
) | ||
|
||
native.maven_jar( | ||
name = "de_jflex_cup_runtime_11b", | ||
artifact = "de.jflex:cup_runtime:11b", | ||
repository = "https://jcenter.bintray.com/", | ||
sha256 = "9c0b5c93fe0c0e239d5f92affb672cb7c45122c3e3de8cda9513fa8e39dbbc3c", | ||
sha256_src = "7155a72ab7b2d6c1ecf129bcacfbe942d0b490bfe1d634532e5619a836e17591", | ||
) |