/** * 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();
/** * Describes a task operation for which an event has occurred. * * @since 2.5 */ @Incubating public interface TaskOperationDescriptor extends OperationDescriptor { /** * Returns the path of the task. */ String getTaskPath(); }
/** * An event that informs about a test having started its execution. * * @since 2.4 */ @Incubating public interface TestStartEvent extends TestProgressEvent, StartEvent { }
/** * Represents a model that is associated with some Gradle project. * * @since 3.0 */ @Incubating public interface ProjectModel { /** * Returns the identifier for the project that this model is associated with. */ ProjectIdentifier getProjectIdentifier(); }
/** * Returns the build script for this project. * * @return The build script. * @since 1.8 * @throws UnsupportedMethodException For Gradle versions older than 1.8, where this method is not supported. */ @Incubating GradleScript getBuildScript() throws UnsupportedMethodException;
/** * Returns the build directory for this project. * * @return The build directory. * @since 2.0 * @throws UnsupportedMethodException For Gradle versions older than 2.0, where this method is not supported. */ @Incubating File getBuildDirectory() throws UnsupportedMethodException;