Fixing function signature to fix jar tool
Fixing output paths, sample building with "publish" config