has anyone ever managed to include a git source re...
# announcements
d
has anyone ever managed to include a git source repo in a gradle project?
m
I have. But maybe better asked in #C19FD9681?
d
I just managed to get it working
p
Sharing your solution would be a way to give back to the community that you request help from
d
good point. In settings.gradle
Copy code
sourceControl {
    gitRepository(uri("<ssh://git@github.com/MyOrg/mylib.git>")) {
        producesModule("io.myorg:mylib")
    }
}
and importantly, in build.gradle.kts:
Copy code
implementation("io.myorg:myapp:1.0") {
                    version {
                        branch = "main"
                    }
                }
the two parts that I was missing were the
ssh://
and the
version.branch = main