How to manage different support library versions for 3rd party deps with gradle?

This is certainly possible. In your projects build.gradle file (the top level build.gradle file) add the following code block: ext { supportlib_version = ‘26.1.0’ gps_version = ‘11.2.0’ } //Ensure that all dependencies use the same version of the Android Support library subprojects { project.configurations.all { resolutionStrategy.eachDependency { details -> if (details.requested.group == ‘com.android.support’ && !details.requested.name.contains(‘multidex’)) … Read more

What is the difference between “+-” and “\-” in maven dependency tree output?

Those symbols do not have any meaning whatsoever, they are just present to read the output of the tree better! Here’s a more complex output to see better what it does, on a spring-webmvc dependency: [INFO] +- org.springframework:spring-webmvc:jar:4.2.2.RELEASE:compile [INFO] | +- org.springframework:spring-beans:jar:4.2.2.RELEASE:compile [INFO] | +- org.springframework:spring-context:jar:4.2.2.RELEASE:compile [INFO] | | \- org.springframework:spring-aop:jar:4.2.2.RELEASE:compile [INFO] | | \- … Read more

Check RPM dependencies

In fact that’s not a one but four different questions :). *) First you can quickly list a downloaded package’s dependencies/requirements by using the following commands: $ rpm -qp mypackage.rpm –provides $ rpm -qp mypackage.rpm –requires *) Second, you can use yum utility in order to satisfy these (somewhat cryptic) dependencies automatically (assuming that all … Read more

How do I connect bower components with sails.js?

In Sails 0.10 the ‘assets/linker’ directory no longer exists, however I found a lead on simple solution that gives some automation to the bower -> asset linker workflow while also allowing some granular control over what exactly ends up getting linked. The solution is adding grunt-bower to your Sails.js compileAssets task grunt.registerTask(‘compileAssets’, [ ‘clean:dev’, ‘bower:dev’, … Read more

Dependency Injection vs Service Location

Because the class is now being injected with an IoC container, then why not use it to resolve all other dependencies too? Using the service locator pattern completely defeats one of the main points of dependency injection. The point of dependency injection is to make dependencies explicit. Once you hide those dependencies by not making … Read more