grails - How to run groovy scripts in gradle project from windows command line -


i have created 1 gradle project geb-spock. in project have created scripts in groovy class.

i execute scripts command line of gradle commands. can achieve jenkins - gradle - geb integration.

can please me command can execute gradle-groovy scripts windows command line. on this.

maybe so. if understood correctly, want run like:

gradle myscript 

you define task in gradle , import groovy class build.gradle like:

import com.myscript task myscript(){      new myscript().run() } 

you need dependecy script (look her). e.g.:

buildscript {     repositories {         mavencentral()     }     dependencies {         classpath files('path/to/myscript/lib')     } } 

also take how compile code buildscript classpath if need: https://docs.gradle.org/current/userguide/organizing_build_logic.html#sec:build_sources

i'm not sure need that. if want run geb-spock test in gradle take in https://github.com/geb/geb-example-gradle


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -