I have questions after reading the blog post on source dependencies:
- Does it work only with github? I get an error saying that it could not list available versions for a bitbucket repository.
- Do transitive dependencies work?
- Does it work independent of the cpp-application plugin?
- Where is the DSL documentation?
Thanks.
sterling
(Sterling Greene)
2
AFAIK, this should work for everything that works with JGit. Are you cloning with HTTP or SSH?
Yes, but we’re only going to turn things into source dependencies if we have the information for it (a matching repository).
Yes, this works for any type of Gradle project.
The feature is still early, so there is nothing dedicated to this beyond the Javadoc and the provided samples.
Thank you Sterling. This is encouraging. I have follow up questions if you don’t mind.
I can use both, so whatever will work first for now.
Q: how do I identify a release in Bitbucket? Is it a branch name, is it a SHA1, is it a tag?
- Do transitive dependencies work?
Yes, but we’re only going to turn things into source dependencies if we have the information for it (a matching repository).
So I could have a chain of multiple (deeper than 2) source dependencies from one repository to another?
- Does it work independent of the cpp-application plugin?
Yes, this works for any type of Gradle project
What plugin do I apply if not cpp-application
then?
sterling
(Sterling Greene)
4
It can be a tag or a branch name.
Yes.
It’s built-in (like composite builds), so no plugin is necessary.