svg2ico is a Java library, Gradle plugin and Ant task for converting SVG images to ICO and PNG format.
The svg2ico Gradle plugin is published on the Gradle Plugin Portal.
The svg2ico library is published on Maven Central.
The svg2ico command line and Ant task are published on GitHub.
See https://svg2ico.sourceforge.net/
./gradlew build