programs.gradle.enable
Whether to enable Gradle Build Tool.
Type: boolean
Default:
false
Example:
true
Declared by:
programs.gradle.package
The gradle package to use.
Type: null or package
Default:
pkgs.gradle
Example:
pkgs.gradle_7
Declared by:
programs.gradle.home
The Gradle home directory, relative to .
If set, the GRADLE_USER_HOME environment variable will be
set accordingly. Defaults to .gradle.
Type: string
Default:
".gradle"
Declared by:
programs.gradle.initScripts
Definition of init scripts to link into the Gradle home directory.
For more information about init scripts, including naming conventions see https://docs.gradle.org/current/userguide/init_scripts.html.
Type: attribute set of (submodule)
Default:
{ }
Example:
{
"maven-local.gradle".text = ''
allProject {
repositories {
mavenLocal()
}
}
'';
"another.init.gradle.kts".source = ./another.init.gradle.kts;
}
Declared by:
programs.gradle.initScripts.<name>.source
Path of the init script file. If
text is non-null then this option will automatically point
to a file containing that text.
Type: absolute path
Declared by:
programs.gradle.initScripts.<name>.text
Text of the init script file. if this option is null
then source must be set.
Type: null or strings concatenated with ā\nā
Default:
null
Declared by:
programs.gradle.settings
Key value pairs to write to gradle.properties in the Gradle
home directory.
Type: open submodule of attribute set of (string, package, bool, int or float)
Default:
{ }
Example:
{
"org.gradle.caching" = true;
"org.gradle.parallel" = true;
"org.gradle.jvmargs" = "-XX:MaxMetaspaceSize=384m";
"org.gradle.home" = pkgs.jdk17;
};
Declared by: