Monday, April 20, 2015

Gradle tip - Always choose dependencies explicitly

For the sake of your CI process and versioning (the ability to go back in time in your SCM and get the same result) - always use explicit versions in your maven dependencies.
compile "some.library :21.0.3"
compile "some.library :21.0.+"
Also, use the same gradle version (that can be easily achieved using a gradle wrapper) .

Sunday, April 5, 2015

Gradle tip - Prefer a remote maven dependency

Prefer a remote maven dependency over a local jar. Just because it makes your build easier keeps your SCM lighter, and lets you easily change versions.