/** * Returns the configured authentication schemes or an instance of {@link org.gradle.internal.authentication.AllSchemesAuthentication} * if none have been configured yet credentials have been configured. */ @Incubating Collection<Authentication> getConfiguredAuthentication();
/** * Specifies the Gradle user home for the builder. If not set, an empty directory under the project directory * will be used. * @return The builder */ @Incubating public ProjectBuilder withGradleUserHomeDir(File dir) { gradleUserHomeDir = dir; return this; }
/** * Represents a model that is associated with or represents some Gradle build. * * @since 3.0 */ @Incubating public interface BuildModel { /** * Returns the identifier for the build that this model is associated with. */ BuildIdentifier getBuildIdentifier(); }
/** * Describes how a test operation was skipped. * * @since 2.4 */ @Incubating public interface TestSkippedResult extends TestOperationResult, SkippedResult { }
/** * Returns the Eclipse classpath containers defined on the project. * * @return The list of classpath containers. * @since 3.0 * @throws UnsupportedMethodException For Gradle versions older than 3.0, where this method is not supported. */ @Incubating DomainObjectSet<? extends EclipseClasspathContainer> getClasspathContainers() throws UnsupportedMethodException;
/** * {@inheritDoc} * @since 2.5 */ @Incubating @Override T addProgressListener(org.gradle.tooling.events.ProgressListener listener);
/** * Specifies the tasks to execute before executing the BuildAction. * * If not configured, null, or an empty array is passed, then no tasks will be executed. * * @param tasks The paths of the tasks to be executed. Relative paths are evaluated relative to the project for which this launcher was created. * @return this * @since 3.5 */ @Incubating BuildActionExecuter<T> forTasks(String... tasks);
/** * An event that informs about a task having started its execution. * * @since 2.5 */ @Incubating public interface TaskStartEvent extends TaskProgressEvent, StartEvent { }
/** * Sets the launchables to execute. If no entries are specified, the project's default tasks are executed. * * @param launchables The launchables for this build. * @return this * @since 1.12 */ @Incubating BuildLauncher forLaunchables(Launchable... launchables);
/** * {@inheritDoc} */ @Incubating @Override public boolean isParallelProjectExecutionEnabled() { return parallelProjectExecution; }
/** * {@inheritDoc} */ @Incubating @Override public int getMaxWorkerCount() { return maxWorkerCount; }
/** * Returns the include patterns for this source directory. * * @return The list of patterns to include. Does not return null. * @throws UnsupportedMethodException For Gradle versions older than 3.0, where this method is not supported. * * @since 3.0 */ @Incubating List<String> getIncludes() throws UnsupportedMethodException;
/** * Specifies the tasks to execute before building the model. * * If not configured, null, or an empty array is passed, then no tasks will be executed. * * @param tasks The paths of the tasks to be executed. Relative paths are evaluated relative to the project for which this launcher was created. * @return this * @since 1.2 */ @Incubating ModelBuilder<T> forTasks(String... tasks);
/** * Describes a test operation for which an event has occurred. * * @since 2.4 */ @Incubating public interface TestOperationDescriptor extends OperationDescriptor { }
/** * Returns the identifier for this Gradle build. * * @since 2.13 */ @Incubating BuildIdentifier getBuildIdentifier();
/** * Returns the output location of this source directory. If {@code null}, then the compiled classes are placed in the project's default output location. * * @return The output location of this source directory. * @throws UnsupportedMethodException For Gradle versions older than 3.0, where this method is not supported. * * @since 3.0 */ @Incubating @Nullable String getOutput() throws UnsupportedMethodException;
/** * The character set used to encode ZIP metadata like file names. * Defaults to the platform's default character set. * * @return null if using the platform's default character set for ZIP metadata * @since 2.14 */ @Incubating @Input @Optional public String getMetadataCharset() { return this.metadataCharset; }
/** * Returns the filter that defines which files to preserve in the destination directory. * * @return the filter defining the files to preserve * * @see #getDestinationDir() */ @Internal @Incubating public PatternFilterable getPreserve() { return preserveInDestination; }
/** * Creates a new output directory property for this task. * * @return The property. * @since 4.1 */ @Incubating protected DirectoryVar newOutputDirectory() { return getServices().get(TaskFileVarFactory.class).newOutputDirectory(this); }
/** * Creates a new output file property for this task. * * @return The property. * @since 4.1 */ @Incubating protected RegularFileVar newOutputFile() { return getServices().get(TaskFileVarFactory.class).newOutputFile(this); }