Open msftph opened 1 year ago
thanks for the suggestion! this is a great point
we probably can add a more provider-based approach, but a simple check in here would do it using the RepoReader to test if a pom.xml exists
what do you think @hsubramanianaks ?
@davidgamero Yep agree we can detect (look for pom.xml or *.gradle using repo reader) before prompting to users.
Is your feature request related to a problem? Please describe.
When running
draft create
on the following folder https://github.com/buildpacks/samples/blob/main/apps/java-maven/, draft shows the following prompt:Mention what platform you want to support the new feature
OSS draft
Describe the solution you'd like
Draft should detect that maven is being used by seeing the pom.xml file in the repository.
Describe alternatives you've considered
There may be a better way to detect maven.
Additional context
(none)