It is impossible to build Spigot 1.18 using BuildTools since a few hours.
Log: BuildTools error - Pastebin.com