-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✨ Gradle support #591
✨ Gradle support #591
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From a quick scan the code looks good to me.
Can we add one of these example projects to the examples and add the output to the demo output so that we can get some basic e2e testing as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small nits / questions...overall looks great!
external-providers/java-external-provider/pkg/java_external_provider/dependency.go
Outdated
Show resolved
Hide resolved
func (p *javaServiceClient) GetDependencies(ctx context.Context) (map[uri.URI][]*provider.Dep, error) { | ||
if p.getBuildTool() == gradle { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this redundant given that there's a switch in GetDepenenciesDAG()? I think we will need to move fallback call inside GetDepenciesDAG()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's a good idea to have the check here too, mainly because both GetDependencies
and GetDependenciesDAG
are public, so they could both be called independently
21000b1
to
0a753ec
Compare
Signed-off-by: Juan Manuel Leflet Estrada <[email protected]>
Signed-off-by: Juan Manuel Leflet Estrada <[email protected]>
Signed-off-by: Juan Manuel Leflet Estrada <[email protected]>
Signed-off-by: Juan Manuel Leflet Estrada <[email protected]>
Signed-off-by: Juan Manuel Leflet Estrada <[email protected]>
Signed-off-by: Juan Manuel Leflet Estrada <[email protected]>
Signed-off-by: Juan Manuel Leflet Estrada <[email protected]>
Superseded by #609 |
👀 See [Gradle support enhancement](https://github.com/konveyor/enhancements/blob/master/enhancements/gradle-support/README.md) (#598) Adds support for fetching dependencies with Gradle projects. (#599) Adds support for downloading dependency sources. - This implementation assumes that there is a Gradle wrapper included in the project, otherwise it is not possible to know which Gradle version is needed. - To maximize compatibility with most Gradle versions, JDK8 must be used. There are a number of ways to specify this on newer Gradle versions, but for older versions the only thing that seems to work is setting `JAVA_HOME`. :exclamation: This PR supersedes #591 🟢 Tested against https://github.com/andyjduncan/gradle-example and https://github.com/kissaten/gradle-multi-project-example --------- Signed-off-by: Juan Manuel Leflet Estrada <[email protected]>
(#598) Adds support for fetching dependencies with Gradle projects.
JAVA_HOME
.❗ This PR does not provide support for fetching dependency sources yet.
🟢 Tested against https://github.com/andyjduncan/gradle-example and https://github.com/kissaten/gradle-multi-project-example