[gh-pages](../index.md) / [com.nextfaze.devfun.compiler](index.md) / [PACKAGE_ROOT](./-p-a-c-k-a-g-e_-r-o-o-t.md)

# PACKAGE_ROOT

`const val PACKAGE_ROOT: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) [(source)](https://github.com/NextFaze/dev-fun/tree/master/devfun-compiler/src/main/java/com/nextfaze/devfun/compiler/DevFunProcessor.kt#L136)

Sets the package root for the generated code. *(default: `<application package>`)*

Attempts will be made to auto-detect the project package by using the class output directory and known/standard
relative paths to various build files, but if necessary this option can be set instead.

Final output package will be: `PACKAGE_ROOT`.`<variant?>`.[PACKAGE_SUFFIX](-p-a-c-k-a-g-e_-s-u-f-f-i-x.md)

`<variant?>` will be omitted if both `packageRoot` and `packageSuffix` are provided.

Set using APT options:

``` kotlin
android {
     defaultConfig {
         javaCompileOptions {
             annotationProcessorOptions {
                 argument("devfun.package.root", "com.your.application")
             }
         }
     }
}
```

