public class DevFunExtension
Gradle DSL for configuring DevFun.
Values provided via Gradle plugin config can/will be overridden by values provided via. APT options.
| Constructor and Description |
|---|
DevFunExtension()
Gradle DSL for configuring DevFun.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getPackageOverride()
Sets the package for the generated code. (default:
) |
java.lang.String |
getPackageRoot()
Sets the package root for the generated code. (default:
) |
java.lang.String |
getPackageSuffix()
Sets the package suffix for the generated code. (default:
devfun_generated) |
void |
setPackageOverride(java.lang.String p)
Sets the package for the generated code. (default:
) |
void |
setPackageRoot(java.lang.String p)
Sets the package root for the generated code. (default:
) |
void |
setPackageSuffix(java.lang.String p)
Sets the package suffix for the generated code. (default:
devfun_generated) |
public DevFunExtension()
Gradle DSL for configuring DevFun.
Values provided via Gradle plugin config can/will be overridden by values provided via. APT options.
public java.lang.String getPackageSuffix()
Sets the package suffix for the generated code. (default: devfun_generated)
This is primarily for testing purposes to allow multiple generations in the same classpath.
If this is null (unset) PACKAGE_SUFFIX_DEFAULT will be used.
If this is empty the suffix will be omitted.
Final output package will be: packageRoot..packageSuffix
will be omitted if both packageRoot and packageSuffix are provided.
public void setPackageSuffix(java.lang.String p)
Sets the package suffix for the generated code. (default: devfun_generated)
This is primarily for testing purposes to allow multiple generations in the same classpath.
If this is null (unset) PACKAGE_SUFFIX_DEFAULT will be used.
If this is empty the suffix will be omitted.
Final output package will be: packageRoot..packageSuffix
will be omitted if both packageRoot and packageSuffix are provided.
public java.lang.String getPackageRoot()
Sets the package root for the generated code. (default: )
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: packageRoot..packageSuffix
will be omitted if both packageRoot and packageSuffix are provided.
public void setPackageRoot(java.lang.String p)
Sets the package root for the generated code. (default: )
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: packageRoot..packageSuffix
will be omitted if both packageRoot and packageSuffix are provided.
public java.lang.String getPackageOverride()
Sets the package for the generated code. (default: )
This will override packageRoot and packageSuffix.
public void setPackageOverride(java.lang.String p)
Sets the package for the generated code. (default: )
This will override packageRoot and packageSuffix.