how do i make a task execute before compileDebugKo...
# gradle
s
how do i make a task execute before compileDebugKotlin
Could not get unknown property 'compileDebugKotlin' for project ':app' of type org.gradle.api.Project.
compileDebugKotlin.dependsOn MyTask
g
compileDebugKotlin
is not a property, this is a task
You can probably wrap it with
afterEvaluate {}
block if for some reason task applied lazily
s
what happens when a project is evaluated
g
it means that all plugins applied already
s
g
Gradle determines the subset of the tasks, created and configured during the configuration phase, to be executed. The subset is determined by the task name arguments passed to the gradle command and the current directory
anyway this is just a way to postpone configuration
s
ok
so the compile** tasks cannot be... hooked?
g
Usually you can do this by apply configuration after plugin application, not sure why it doesn't work in this case
s
could you post an example of this? also imma go to bed, its 00:55
g
Example of what?
s
example of how a task could be executed at compile time
g
What do you mean? Tasks always executing during build/compile process
s
Ok