Fix building of exported jar

Signed-off-by: Amit Shah <amitshah@oneuk.com>