How to define Task Dependency from Task "A" from current Script to task "B" in other build.gradle script

(Prajeesh Kumar G) #1

Hi All,
I have two build scripts say A.gradle and B.gradle

in A.gradle, I have a task called “First” which depends on a task “Second” from B.gradle . How I can refer task “second” from Task “First”. I do not want to use apply From:


task ‘First’(dependsOn:[Second]){

here task second is from B.gradle

task ‘Second’{