.gradle/init.d/mavenLocal.gradle
author Oleksandr Gavenko <gavenkoa@gmail.com>
Sat, 18 Feb 2017 11:18:43 +0200
changeset 830 1b48fa26b52c
parent 700 45c5d320d322
child 836 ed2feb95716d
permissions -rw-r--r--
Include mavenLocal() to gradle builds.

allprojects {
    // project ->
    // buildscript {
    //     if( !project.hasProperty('skipMavenLocal') ) {
    //         repositories {
    //             println "Adding buildscript mavenLocal()"
    //             mavenLocal()
    //         }
    //         configurations.all {
    //             resolutionStrategy.cacheChangingModulesFor 0, 'hours'
    //         }
    //     }
    // }

    // if( !project.hasProperty('skipMavenLocal') ) {
    //     repositories {
    //         println "Adding mavenLocal()"
    //         mavenLocal()
    //     }
    // }

    repositories {
        println "Adding mavenLocal()"
        mavenLocal()
    }
}