AndroidSourceSet

An AndroidSourceSet represents a logical group of Java, aidl and RenderScript sources as well as Android and non-Android (Java-style) resources.

Properties

PropertyDescription
aidl

The Android AIDL source directory for this source set.

assets

The Android Assets directory for this source set.

compileConfigurationName

The name of the compile configuration for this source set.

java

The Java source which is to be compiled by the Java compiler into the class output directory.

jni

The Android JNI source directory for this source set.

jniLibs

The Android JNI libs directory for this source set.

manifest

The Android Manifest file for this source set.

name

The name of this source set.

packageConfigurationName

The name of the runtime configuration for this source set.

providedConfigurationName

The name of the compiled-only configuration for this source set.

renderscript

The Android RenderScript source directory for this source set.

res

The Android Resources directory for this source set.

resources

The Java resources which are to be copied into the javaResources output directory.

Methods

MethodDescription
setRoot(path)

Sets the root of the source sets to a given path. All entries of the source set are located under this root directory.

Script blocks

BlockDescription
aidl

Configures the location of the Android AIDL source for this set.

assets

Configures the location of the Android Assets for this set.

java

Configures the Java source for this set.

jni

Configures the location of the Android JNI source for this set.

jniLibs

Configures the location of the Android JNI libs for this set.

manifest

Configures the location of the Android Manifest for this set.

manifest

Configures the location of the Android Manifest for this set.

renderscript

Configures the location of the Android RenderScript source for this set.

res

Configures the location of the Android Resources for this set.

resources

Configures the Java resources for this set.

Property details

The Android AIDL source directory for this source set.

The Android Assets directory for this source set.

String compileConfigurationName

The name of the compile configuration for this source set.

The Java source which is to be compiled by the Java compiler into the class output directory.

The Android JNI source directory for this source set.

The Android JNI libs directory for this source set.

The Android Manifest file for this source set.

String name

The name of this source set.

String packageConfigurationName

The name of the runtime configuration for this source set.

String providedConfigurationName

The name of the compiled-only configuration for this source set.

The Android RenderScript source directory for this source set.

The Android Resources directory for this source set.

The Java resources which are to be copied into the javaResources output directory.

Method details

AndroidSourceSet setRoot(String path)

Sets the root of the source sets to a given path. All entries of the source set are located under this root directory.

Script block details

aidl { }

Configures the location of the Android AIDL source for this set.

The given closure is used to configure the AndroidSourceDirectorySet which contains the AIDL source.

assets { }

Configures the location of the Android Assets for this set.

The given closure is used to configure the AndroidSourceDirectorySet which contains the assets.

java { }

Configures the Java source for this set.

The given closure is used to configure the AndroidSourceDirectorySet which contains the Java source.

jni { }

Configures the location of the Android JNI source for this set.

The given closure is used to configure the AndroidSourceDirectorySet which contains the JNI source.

Delegates to:
AndroidSourceDirectorySet from jni

jniLibs { }

Configures the location of the Android JNI libs for this set.

The given closure is used to configure the AndroidSourceDirectorySet which contains the JNI libs.

manifest { }

Configures the location of the Android Manifest for this set.

The given closure is used to configure the AndroidSourceFile which contains the manifest.

Delegates to:
AndroidSourceFile from manifest

manifest { }

Configures the location of the Android Manifest for this set.

The given closure is used to configure the AndroidSourceFile which contains the manifest.

Delegates to:
AndroidSourceFile from manifest

renderscript { }

Configures the location of the Android RenderScript source for this set.

The given closure is used to configure the AndroidSourceDirectorySet which contains the Renderscript source.

res { }

Configures the location of the Android Resources for this set.

The given closure is used to configure the AndroidSourceDirectorySet which contains the resources.

Delegates to:
AndroidSourceDirectorySet from res

resources { }

Configures the Java resources for this set.

The given closure is used to configure the AndroidSourceDirectorySet which contains the java resources.