Skip to content

Instantly share code, notes, and snippets.

@uarun
Created September 3, 2014 01:49
Show Gist options
  • Select an option

  • Save uarun/97e85366ae454fa078f4 to your computer and use it in GitHub Desktop.

Select an option

Save uarun/97e85366ae454fa078f4 to your computer and use it in GitHub Desktop.

Revisions

  1. uarun created this gist Sep 3, 2014.
    16 changes: 16 additions & 0 deletions build.gradle
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    allprojects { project ->

    configurations.all {
    resolutionStrategy {
    //... Fail eagerly on version conflict (includes transitive dependencies)
    //... For e.g. multiple different versions of the same dependency (group and name are equal)
    failOnVersionConflict()

    //... Force certain versions of dependencies (including transitive)
    force libraries.scala_library
    force libraries.slf4j_api
    force libraries.commons_logging
    force libraries.commons_lang
    }
    }
    }