Is there a way to specify the main-class of the jar in its manifest file as a parameter in Groovy's AntBuilder?
def jAnt = project.createAntBuilder();
jAnt.jar(
basedir: build_dir + "/classes", //I have only one class with the main method in it
destfile: build_dir + "/jar/test-jar.jar"
)
I just want to specify the main class here while creating the jar.
all documentation about ant tasks: https://ant.apache.org/manual/anttaskslist.html
and for
jartask there are a lot of examples includingMain-Classspecificationyou just need to create corresponding groovy-builder code