Reputation: 6141
Is it somehow possible to run build.gradle file of a library distributed through artifactory repository when the main project builds ?
Specific case: In library's build.gradle I copy some files from root directory to another directory. This works well if the dependency on the library is declared as compile project(':lib-trololo')
, but I would like to distribute the lib through Artifactory, but as there is only .aar file, the library's build is not run again when building main project.
Upvotes: 0
Views: 102
Reputation: 22893
The answer is "no".
compile project(':lib-trololo')
is a source-level dependency). Once the file is packed as a binary, there is no source structure anymore, but only a single file with compiled classes and metadata.You should reconsider your build.
Upvotes: 1