Run a hava program from gradle as a part of another task -
i can run java program separate gradle task using javaexec
type task:
task (foo, type: javaexec) { main = '...' ... }
however, how run java program part of task, in dolast
? can ant executor, there way more native gradle?
you can define dependency dependson
between tasks or can use javaexec
method defined on project instance, see here.
pseudocode:
task t { dolast { javaexec { //logic goes here } } }
Comments
Post a Comment