diff --git a/MODULE.bazel.lock b/MODULE.bazel.lock index 5cdada52..ee7a5b93 100644 --- a/MODULE.bazel.lock +++ b/MODULE.bazel.lock @@ -3347,7 +3347,7 @@ } }, "//:extensions.bzl%graalvm": { - "bzlTransitiveDigest": "tRgHoVzahIC6lb9CbdUTElSAl7FhYccLMZO33cXLpms=", + "bzlTransitiveDigest": "fqExuMHwaK7JMR6OBbQdQiR/i1/6ortbaTc8NTldIXw=", "envVariables": {}, "generatedRepoSpecs": { "graalvm": { diff --git a/docs/api/BUILD.bazel b/docs/api/BUILD.bazel index 19d1b6f1..87c94241 100755 --- a/docs/api/BUILD.bazel +++ b/docs/api/BUILD.bazel @@ -1,11 +1,26 @@ "Aliases to documentation targets for the package API." -alias( +load( + "@io_bazel_stardoc//stardoc:stardoc.bzl", + "stardoc", +) + +stardoc( name = "defs", - actual = "//graalvm:defs_doc", + out = "defs.md", + input = "//graalvm:defs.bzl", + deps = [ + "//graalvm/nativeimage:rules", + "//internal:tooling", + ], ) -alias( +stardoc( name = "repositories", - actual = "//graalvm:repositories_doc", + out = "repositories.md", + input = "//graalvm:repositories.bzl", + deps = [ + "//internal:bindist", + "//internal:tooling", + ], ) diff --git a/docs/api/defs.md b/docs/api/defs.md index 6c1958b3..aa12466f 100755 --- a/docs/api/defs.md +++ b/docs/api/defs.md @@ -7,25 +7,25 @@ Target rule definitions, intended for use by rule users. ## native_image
-native_image(name, c_compiler_option, data, deps, extra_args, graalvm, include_resources, +native_image(name, c_compiler_option, data, deps, extra_args, include_resources, initialize_at_build_time, initialize_at_run_time, jni_configuration, main_class, - native_features, reflection_configuration) + native_features, native_image, reflection_configuration)**ATTRIBUTES** -| Name | Description | Type | Mandatory | Default | -| :------------------------------------------------------------------------- | :----------------------------- | :------------------------------------------------------------------ | :-------- | :--------------------------------------- | -| name | A unique name for this target. | Name | required | | -| c_compiler_option | - | List of strings | optional |
[]
|
-| data | - | List of labels | optional | []
|
-| deps | - | List of labels | optional | []
|
-| extra_args | - | List of strings | optional | []
|
-| graalvm | - | Label | optional | @graalvm//:bin/native-image
|
-| include_resources | - | String | optional | ""
|
-| initialize_at_build_time | - | List of strings | optional | []
|
-| initialize_at_run_time | - | List of strings | optional | []
|
-| jni_configuration | - | Label | optional | None
|
-| main_class | - | String | optional | ""
|
-| native_features | - | List of strings | optional | []
|
-| reflection_configuration | - | Label | optional | None
|
+| Name | Description | Type | Mandatory | Default |
+| :------------------------------------------------------------------------- | :----------------------------- | :------------------------------------------------------------------ | :-------- | :----------------------------------- |
+| name | A unique name for this target. | Name | required | |
+| c_compiler_option | - | List of strings | optional | []
|
+| data | - | List of labels | optional | []
|
+| deps | - | List of labels | optional | []
|
+| extra_args | - | List of strings | optional | []
|
+| include_resources | - | String | optional | ""
|
+| initialize_at_build_time | - | List of strings | optional | []
|
+| initialize_at_run_time | - | List of strings | optional | []
|
+| jni_configuration | - | Label | optional | None
|
+| main_class | - | String | optional | ""
|
+| native_features | - | List of strings | optional | []
|
+| native_image | - | Label | optional | @graalvm//:native-image
|
+| reflection_configuration | - | Label | optional | None
|
diff --git a/graalvm/BUILD.bazel b/graalvm/BUILD.bazel
index 14ab6e52..4b636bc4 100644
--- a/graalvm/BUILD.bazel
+++ b/graalvm/BUILD.bazel
@@ -1,11 +1,11 @@
+"Provides `bzl_library` definitions for GraalVM repository and target rules."
+
load(
"@bazel_skylib//:bzl_library.bzl",
"bzl_library",
)
-load(
- "@io_bazel_stardoc//stardoc:stardoc.bzl",
- "stardoc",
-)
+
+package(default_visibility = ["//visibility:public"])
exports_files([
"defs.bzl",
@@ -33,25 +33,3 @@ bzl_library(
"//internal:tooling",
],
)
-
-stardoc(
- name = "defs_doc",
- out = "defs.md",
- input = "defs.bzl",
- visibility = ["//docs:__subpackages__"],
- deps = [
- "//graalvm/nativeimage:rules",
- "//internal:tooling",
- ],
-)
-
-stardoc(
- name = "repositories_doc",
- out = "repositories.md",
- input = "repositories.bzl",
- visibility = ["//docs:__subpackages__"],
- deps = [
- "//internal:bindist",
- "//internal:tooling",
- ],
-)
diff --git a/graalvm/nativeimage/BUILD.bazel b/graalvm/nativeimage/BUILD.bazel
index 749d5a82..78d78ee4 100644
--- a/graalvm/nativeimage/BUILD.bazel
+++ b/graalvm/nativeimage/BUILD.bazel
@@ -1,8 +1,12 @@
+"Rules for generating binaries with the GraalVM `native-image` tool."
+
load(
"@bazel_skylib//:bzl_library.bzl",
"bzl_library",
)
+package(default_visibility = ["//visibility:public"])
+
exports_files([
"rules.bzl",
])
@@ -10,6 +14,5 @@ exports_files([
bzl_library(
name = "rules",
srcs = ["rules.bzl"],
- visibility = ["//graalvm:__subpackages__"],
deps = ["//internal:tooling"],
)
diff --git a/internal/BUILD.bazel b/internal/BUILD.bazel
index df5e6262..1ee8a3cb 100644
--- a/internal/BUILD.bazel
+++ b/internal/BUILD.bazel
@@ -1,8 +1,15 @@
+"Bazel library targets for GraalVM rule internals."
+
load(
"@bazel_skylib//:bzl_library.bzl",
"bzl_library",
)
+package(default_visibility = [
+ "//docs:__subpackages__",
+ "//graalvm:__subpackages__",
+])
+
exports_files([
"config.bzl",
"graalvm_bindist.bzl",
@@ -14,7 +21,6 @@ bzl_library(
srcs = [
"@bazel_tools//tools:bzl_srcs",
],
- visibility = ["//graalvm:__subpackages__"],
)
bzl_library(
@@ -32,7 +38,6 @@ bzl_library(
bzl_library(
name = "bindist",
srcs = ["graalvm_bindist.bzl"],
- visibility = ["//graalvm:__subpackages__"],
deps = [
":java_toolchains",
":tooling",
@@ -42,7 +47,6 @@ bzl_library(
bzl_library(
name = "maven",
srcs = ["maven.bzl"],
- visibility = ["//graalvm:__subpackages__"],
deps = [
":config",
":tooling",