use publishToMavenLocal task as that syncs with maven-publish later.