aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/markdown/snippets/deprecate_build_target_jar.md8
-rw-r--r--docs/yaml/functions/build_target.yaml7
2 files changed, 13 insertions, 2 deletions
diff --git a/docs/markdown/snippets/deprecate_build_target_jar.md b/docs/markdown/snippets/deprecate_build_target_jar.md
new file mode 100644
index 0000000..992903e
--- /dev/null
+++ b/docs/markdown/snippets/deprecate_build_target_jar.md
@@ -0,0 +1,8 @@
+## Deprecate 'jar' as a build_target type
+
+The point of `build_target()` is that what is produced can be conditionally
+changed. However, `jar()` has a significant number of non-overlapping arguments
+from other build_targets, including the kinds of sources it can include. Because
+of this crafting a `build_target` that can be used as a Jar and as something
+else is incredibly hard to do. As such, it has been deprecated, and using
+`jar()` directly is recomended.
diff --git a/docs/yaml/functions/build_target.yaml b/docs/yaml/functions/build_target.yaml
index 48385f2..74d45f0 100644
--- a/docs/yaml/functions/build_target.yaml
+++ b/docs/yaml/functions/build_target.yaml
@@ -12,7 +12,7 @@ description: |
- `static_library` (see [[static_library]])
- `both_libraries` (see [[both_libraries]])
- `library` (see [[library]])
- - `jar` (see [[jar]])
+ - `jar` (see [[jar]])*
This declaration:
@@ -32,6 +32,9 @@ description: |
The returned object also has methods that are documented in [[@build_tgt]].
+ *"jar" is deprecated because it is fundementally a different thing than the
+ other build_target types.
+
posargs_inherit: _build_target_base
varargs_inherit: _build_target_base
kwargs_inherit:
@@ -42,4 +45,4 @@ kwargs_inherit:
kwargs:
target_type:
type: str
- description: The actual target to build
+ description: The actual target type to build