Skip to content

Instantly share code, notes, and snippets.

@j-thepac
Last active May 16, 2022 09:47
Show Gist options
  • Save j-thepac/da90ae6c4e0706c943c513028d193cd0 to your computer and use it in GitHub Desktop.
Save j-thepac/da90ae6c4e0706c943c513028d193cd0 to your computer and use it in GitHub Desktop.
bazel build file to add multiple class files in jar file
#---------------------------
#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