I've tried to get a gradle task to execute for a lib module 'lib1' in an Android Studio project. It should run with command 'gradlew assembleDebug' or 'gradlew assemble' but it never runs.
task copy(type: Copy, dependsOn: ':lib1:assembleDebug') << {
println "copying"
}
I tried a simpler task with no dependency and it never seems to run either.
task hello << {
println 'hello world'
}
This runs but it's only in the configuration phase.
task hello {
println 'hello world'
}
I need to get a copy to work in the execution phase after the library module assembled. Any clues what to do?