honor --offline and --refresh-dependencies when resolving `plugins {}` style plugins and their module dependencies