Skip to content

folders are recognized as modules for me #1

@dhasilin

Description

@dhasilin

I've followed your approach and folders are recognized as modules for me and they are getting build :(

And I've found that it's not only issue for me:
https://stackoverflow.com/questions/28971394/how-do-i-prevent-gradle-from-building-a-non-project-directory

Do you have some suggestion how it could be disabled in really elegant way ?

Updates:

  • I found that it so because empty folder are still recognized as gradle module and to avoid that we can mark child as following:
:parent/child/child
  • Other option is to keep folder as module, but don't apply plugins to it to not produce output/artifacts:
  if(file('build.gradle').exists()){
      //apply plugins here
   }

Still looking for better way to do it without workarounds and without having this module :)

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