mirror of
https://github.com/wassname/ray.git
synced 2026-08-11 11:24:51 +08:00
[Bazel] Modifying WORKSPACE file, so that you can make the project used as a thirdparty project (#4711)
* Modifying WORKSPACE file, so that you can make the project used as a thirdparty * Modifying WORKSPACE file, so that you can make the project used as a thirdparty * add some files * modify some repositories * modify the name of 'ray_deps_build_all'
This commit is contained in:
committed by
Philipp Moritz
parent
69da6d0fc8
commit
c578be23a5
+40
-1
@@ -1,4 +1,4 @@
|
||||
load("//bazel:ray.bzl", "flatbuffer_java_library", "define_java_module")
|
||||
load("//bazel:ray.bzl", "flatbuffer_java_library", "define_java_module", "gen_java_pom_file")
|
||||
|
||||
exports_files([
|
||||
"testng.xml",
|
||||
@@ -245,3 +245,42 @@ genrule(
|
||||
""",
|
||||
local = 1,
|
||||
)
|
||||
|
||||
# generate pom.xml file for maven compile
|
||||
gen_java_pom_file(
|
||||
name = "api",
|
||||
)
|
||||
|
||||
gen_java_pom_file(
|
||||
name = "runtime",
|
||||
)
|
||||
|
||||
gen_java_pom_file(
|
||||
name = "tutorial",
|
||||
)
|
||||
|
||||
gen_java_pom_file(
|
||||
name = "test",
|
||||
)
|
||||
|
||||
genrule(
|
||||
name = "copy_pom_file",
|
||||
srcs = [
|
||||
"//java:org_ray_ray_api_pom",
|
||||
"//java:org_ray_ray_runtime_pom",
|
||||
"//java:org_ray_ray_tutorial_pom",
|
||||
"//java:org_ray_ray_test_pom",
|
||||
],
|
||||
outs = ["copy_pom_file.out"],
|
||||
cmd = """
|
||||
set -x
|
||||
WORK_DIR=$$(pwd)
|
||||
cp -f $(location //java:org_ray_ray_api_pom) $$WORK_DIR/java/api/pom.xml
|
||||
cp -f $(location //java:org_ray_ray_runtime_pom) $$WORK_DIR/java/runtime/pom.xml
|
||||
cp -f $(location //java:org_ray_ray_tutorial_pom) $$WORK_DIR/java/tutorial/pom.xml
|
||||
cp -f $(location //java:org_ray_ray_test_pom) $$WORK_DIR/java/test/pom.xml
|
||||
echo $$(date) > $@
|
||||
""",
|
||||
local = 1,
|
||||
tags = ["no-cache"],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user