How to get created artifact name

Hi, I need to pass file name of generated artifact (jar) to some Ant plugin for post-processing. What API I can use to get this data?

I searched but was unable to find any.

You can use ‘jar.archivePath’ (or ‘archiveName’). It’s easy to find in the DSL reference for the Jar task.

Thanks a lot Peter. That’s exactly what I was looking for. I was unfamiliar with the Jar task and was looking in configurations instead.