Skip to content

Nested projects don't play well with default input files #38

Open
@JakeWharton

Description

@JakeWharton

By using the project directory as the default input, nested projects are automatically formatted.

For example,

.
├── LICENSE.txt
├── README.md
├── foo
│   ├── bar
│   │   ├── src/main/java
│   │   └── build.gradle
│   ├── src/main/java
│   └── build.gradle
├ build.gradle
└ settings.gradle

This is a basic example. The real project has many more modules. The idea, though, is that the root build.gradle is applying the plugin to all subprojects except for certain ones. In this case, let's say we're excluding "bar".

The problem, though, is that by applying it in "foo" the sources in "bar" will automatically be formatted.

For now, I can configure this myself and have each project specify only its Java source folders as GJF sources, but it would be nice if this was the default. Operating outside of these folders would then become the thing which required explicit configuration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions