I'm generating some code via a task and I'd like t...
# multiplatform
e
I'm generating some code via a task and I'd like to append this to the
build
task somehow I tried
Copy code
build { dependsOn(generateCode) }
but it fails
> Task :transformCommonMainDependenciesMetadata
> Task :generateProjectStructureMetadata
> Task :compileCommonMainKotlinMetadata FAILED
I tried then
Copy code
getByName("compileCommonMainKotlinMetadata") { dependsOn(generateCode) }
but
Task with name 'compileCommonMainKotlinMetadata' not found in root project 'glm'.