Closed sratatata closed 8 years ago
OK, I'll add an option for it.
I've added two ways to solve this issue (not yet released).
This is equivalent to "resolutions" attribute in bower.json.
webResource {
bower {
dependencies {
install name: "bootstrap", version: "3.3.6"
install name: "angular", version: "1.5.0"
// Add this to resolve conflict
resolve name: "angular", version: "1.5.0"
}
You can also resolve conflict by setting "--force-latest" option to "options". This will be passed to bower's install command.
webResource {
bower {
// Add this to resolve conflict
options = ["--force-latest"]
If you omit these options, the plugin will suggest to add "resolve" option.
23:30:26.418 ERROR [Bower] Install failed: Unable to find a suitable version for angular while installing angular-translate#2.9.0.
23:30:26.419 WARN [Bower] To resolve this conflict, please define resolution to your build.gradle.
23:30:26.420 WARN [Bower] Example:
23:30:26.421 WARN [Bower] bower {
23:30:26.421 WARN [Bower] dependencies {
23:30:26.421 WARN [Bower] resolve name: 'angular', version: '1.4.9'
23:30:26.422 WARN [Bower] }
23:30:26.422 WARN [Bower] }
23:30:26.423 WARN [Bower] Candidate versions:
23:30:26.424 WARN [Bower] 1) angular#>=1.2.26 <=1.5 which resolved to 1.4.9 and is required by angular-translate#2.9.0
23:30:26.426 WARN [Bower] 2) angular#1.5.0 which resolved to 1.5.0 and is required by angular-route#1.5.0
23:30:26.427 WARN [Bower] 3) angular#>=1.4.0 which resolved to 1.5.0 and is required by angular-bootstrap#1.1.2
23:30:26.428 WARN [Bower] 4) angular#^1.2.16 which resolved to 1.5.0 and is required by angular-scroll#1.0.0
23:30:26.428 WARN [Bower] 5) angular#~1.x which resolved to 1.5.0 and is required by angular-ui-tinymce#0.0.12
23:30:26.429 WARN [Bower] Some candidates might not be shown above because they are not installed yet.
23:30:26.429 WARN [Bower] This is a limitation of this plugin.
I've released v1.4.0 that includes two new options above. Please try it when you have time.
Wow! Thanks. Great!
Can't use workaround for problem: https://github.com/bower/bower/issues/866
It would be nice to add some way of bypassing some params to bower. like
--force
for example. It's done nice in gradle-appengine-plugin:Deps:
Reference: