URL url = ${TARGET_CLASS}.class.getProtectionDomain().getCodeSource().getLocation(); Post navigation load cert in javagradle publication with pom.xml