This repository was archived by the owner on Jan 26, 2021. It is now read-only.
support gradle buildfile named after the directory#33
Draft
cfieber wants to merge 1 commit intogdubw:masterfrom
Draft
support gradle buildfile named after the directory#33cfieber wants to merge 1 commit intogdubw:masterfrom
cfieber wants to merge 1 commit intogdubw:masterfrom
Conversation
|
It will be really nice to support this (agree it's convenient to have build file named by module for fulltext search purposes). btw. solves #4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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..