gradle apply from: not using parent script directory -
/path/script
foo.gradle apply from: 'bar.gradle' bar.gradle
/path/work
build.gradle apply from: '/path/script/foo.gradle'
error: bar.gradle not found.
gradle looking in current working dir /path/work. should resolve relative path based on directory of parent script.
no, shouldn't resolve relative path based on directory of parent script, because that's not specified in the docs:
- from: script apply. accepts path supported
project.uri(object)
.
... and, following above link, ...
resolves file path uri, relative project directory of project.
since project
scope applied script, applying script file there same applying original script.
Comments
Post a Comment