This repository has been archived by the owner on Jan 26, 2021. It is now read-only.
support gradle buildfile named after the directory #33
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is really dirty and not likely suitable for inclusion as is, but in our builds we typically include in the settings.gradle this block:
The nice (IMO at least) side-effect of which is that we now don't build.gradle files anywhere but the root of the project, all the other build file names match the project name (which we also match to the sub-project directory names).
This change is a dirty workaround to look for a .gradle build file that matches the name of the current directory while traversing up the path.
If there is any interest in supporting this I could look at making this somewhat less opinionated than it currently is..