Is there a way to set the default version/branch f...
# community-support
a
Is there a way to set the default version/branch for all modules produced by a source dependency?
Copy code
sourceControl {
    gitRepository(java.net.URI("<https://github.com/><my-repo-path>.git")) {
        producesModule("com.example:module1")
        producesModule("com.example:module2")
    }
}
It seems like each use of a module requires declaring a version constraint:
Copy code
buildscript {
    classpath("com.example:module1") {
        version {
            branch = "my-branch"
        }
    }

    classpath("com.example:module2") {
        version {
            branch = "my-branch"
        }
    }
}
Is there an easier way to get the same version for all of the modules produced by a source dependency?