I try to define some groovy module that has 2 different scripts near from apply plugin: 'android'
in Android Studio, but I receive an Error. As I found, apply plugin: 'android'
and apply plugin: 'groovy'
are incompatible, for this reason I starting my scripts like:
def gse = new GroovyScriptEngine([pathToFolderOfScript] as String[])
gse.run('LoadJsonFromServer.groovy', new Binding())
Is there any another more elegant way? Such as this, for exmaple: Running Groovy scripts from Gradle