aboutsummaryrefslogtreecommitdiff
path: root/docs/yaml/functions/jar.yaml
blob: 52f66e53227ab2be48999b2adfd5c3c4b72165af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
name: jar
returns: jar
description: |
  Build a jar from the specified Java source files. Keyword arguments
  are the same as [[executable]]'s, with the addition of
  `main_class` which specifies the main class to execute when running
  the jar with `java -jar file.jar`.

posargs_inherit: _build_target_base
varargs_inherit: _build_target_base
kwargs_inherit: _build_target_base

kwargs:
  main_class:
    type: str
    description: Main class for running the built jar
  java_resources:
    type: structured_src
    since: 0.62.0
    description: Resources to be added to the jar