aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets/deprecate_build_target_jar.md
blob: 1aa5a81dd2cbd9cf93de28c31e976b4c12fbc043 (plain)
1
2
3
4
5
6
7
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 recommended.