aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2023-07-19 13:22:20 -0700
committerXavier Claessens <xclaesse@gmail.com>2023-07-20 14:20:46 -0400
commitd7acccd36dcf1b62f144eb7389a5e221fe824be4 (patch)
treef3a3dd25423dd52e44c12f0df994f3bd22be96e9 /docs/markdown
parenta62a42b272923f95b7aeb30f0196cfdf3b251264 (diff)
downloadmeson-d7acccd36dcf1b62f144eb7389a5e221fe824be4.zip
meson-d7acccd36dcf1b62f144eb7389a5e221fe824be4.tar.gz
meson-d7acccd36dcf1b62f144eb7389a5e221fe824be4.tar.bz2
interpreter: deprecate 'jar' value of build_target(target_type)
Jar has a very low set of overlap with other target types, including that jar sources *must* be .java, and no other target allows .java sources. As such, the difficulty in crafting a useful `build_target` invocation that allows both `jar` and anything else is high, and the usefulness is dubious. Just use `jar()` directly instead. This depends on the changes to make all of the jar() specific keyword arguments be handled by typed_kwargs so that the deprecation messages are correct and consistent.
Diffstat (limited to 'docs/markdown')
-rw-r--r--docs/markdown/snippets/deprecate_build_target_jar.md8
1 files changed, 8 insertions, 0 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.