# getPackageName

@Input
@Optional
@Incubating
abstract fun getPackageName(): Property<String>

Sets the package to be used when generating the parser source files. Supported only when using Antlr 4. This will add a "-package" argument to the ANTLR command line as well as adjust the target directory to generate sources into a package-specific subdirectory of getOutputDirectory. For example, if the package name is set to "com.foo.bar" and the output directory is set to "path/to/output", the sources will be generated into "path/to/output/com/foo/bar".

#### Since

9.1.0