IDEA-104500 Gradle: Allow to reuse common logic for other external systems

Start rewriting tasks to the generic external system api