lgio is a lightweight-gradle-io plugin that solves System.console() being null by using a GUI in those cases