I am trying to use the javafx ant tasks but I don’t know how to reference it in my build script. I tried to copy How do I use ant xmlns in gradle? but I keep getting
Problem: failed to create task or type fx.com.sun.javafx.tools.ant:jar Cause: The name is undefined. Action: Check the spelling. Action: Check that any custom tasks/types have been declared. Action: Check that any <presetdef>/<macrodef> declarations have taken place. No types or tasks have been defined in this namespace yet
Execution failed for task ':foo'.
> Problem: failed to create task or type javafx.com.sun.javafx.tools.ant:jar
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
No types or tasks have been defined in this namespace yet
For those of you that are having the same problem I think I figured it out. You need to put a colon between javafx and the ant namespace (previously I put a dot).