Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Version 0.4.4
-------------
* `java_runtime_image` provides an entry point so it can be referenced directly

Version 0.4.3
-------------
* `java_runtime_image`: exclude `java_toolchain` directory from JAR search (#49)
Expand Down Expand Up @@ -42,7 +46,7 @@ Version 0.2.2

Version 0.2.1
--------------
* Make the junit runner default to an absolute label
* Make the junit runner default to an absolute label

Version 0.1.0
--------------
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.4.3
0.4.4
5 changes: 4 additions & 1 deletion build_defs/java.build_defs
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,9 @@ def java_runtime_image(name:str, out:str=None, modules:list, launcher_module:str
"dbg": "$TOOLS_JLINK " + " ".join(default_jlink_args) + f" {jlink_args}",
"opt": "$TOOLS_JLINK " + " ".join(default_jlink_args) + f" --strip-debug {jlink_args}",
},
entry_points = {
"java": f"{out}/bin/java",
},
needs_transitive_deps=True,
output_is_complete=True,
binary=True,
Expand All @@ -259,6 +262,7 @@ def java_runtime_image(name:str, out:str=None, modules:list, launcher_module:str
tools=tools,
)


def java_binary(name:str, main_class:str=None, out:str=None, srcs:list=None, deps:list=[],
data:list=[], visibility:list=None, jvm_args:str=None, labels:list=[],
self_executable:bool=True, manifest:str=None, toolchain:str=CONFIG.JAVA.TOOLCHAIN):
Expand Down Expand Up @@ -723,4 +727,3 @@ if CONFIG.BAZEL_COMPATIBILITY:
test_only = test_only,
visibility = visibility,
)

Loading