Home > OS >  gradle - can't find reference to layout and file
gradle - can't find reference to layout and file

Time:12-20

reading the gradle's documentation, I came across this line of code:

def archivesDirPath = layout.buildDirectory.dir('archives')

Where in the gradle's documentation can I find a reference to the layout type, or for the file type? Thank you!

CodePudding user response:

Found my answer here: ProjectLayout

An instance of this type can be injected into a task, plugin or other object by annotating a public constructor or method with javax.inject.Inject. It is also available via Project.getLayout().

  • Related