Last active
May 16, 2022 09:47
-
-
Save j-thepac/da90ae6c4e0706c943c513028d193cd0 to your computer and use it in GitHub Desktop.
bazel build file to add multiple class files in jar file
This file contains hidden or 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
#--------------------------- | |
#Bazel build parent.jar | |
#This would add Parent.scala , Child1.scala , Child2.scala in the jar file creatd | |
#--------------------------- | |
load("@io_bazel_rules_scala//scala:scala.bzl", "scala_binary","scala_library") | |
package(default_visibility = ["//visibility:public"]) | |
scala_library( | |
name = "parent", | |
srcs = | |
["Parent.scala", | |
"//src/main/child1:Child1.scala", | |
"//src/main/child2:Child2.scala", | |
], | |
deps = [ | |
"//src/main/child1", | |
"//src/main/child2", | |
], | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment