sourceControl {
    vcsMappings {
        val computeGit = vcs(GitVersionControlSpec::class.java) {
            // A real life example would use a remote git repository
            setUrl(File(rootDir, "../external/build/git-repo").toURI())
        }
        withModule("org.gradle.kotlin.dsl.samples.source-control:compute") {
            from(computeGit)
        }
    }
}

sourceControl {
    vcsMappings {
        val computeGit = vcs(GitVersionControlSpec::class.java) {
            // A real life example would use a remote git repository
            url = uri("../external/build/git-repo")
        }
        withModule("org.gradle.kotlin.dsl.samples.source-control:compute") {
            from(computeGit)
        }
    }
}

Leverage ScriptApi in source-control sample
Leverage ScriptApi in source-control sample

gradle/gradle,blindpirate/gradle,robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,blindpirate/gradle,robinverduijn/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,robinverduijn/gradle,gradle/gradle,gradle/gradle-script-kotlin,blindpirate/gradle,blindpirate/gradle,robinverduijn/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,robinverduijn/gradle,gradle/gradle-script-kotlin,gradle/gradle,robinverduijn/gradle