/** * The version of the gradle distribution required by the wrapper. This is usually the same version of Gradle you * use for building your project. */ @Option(option = "gradle-version", description = "The version of the Gradle distribution required by the wrapper.") public void setGradleVersion(String gradleVersion) { this.gradleVersion = GradleVersion.version(gradleVersion); }
@Option(option = "type", description = "Set type of build to create.", order = 0) public void setType(String type) { this.type = type; }
@Option(option = "test-framework", description = "Set alternative test framework to be used.", order = 1) public void setTestFramework(String testFramework) { this.testFramework = testFramework; }
@Option(option = "showHidden", description = "Show hidden model elements.") public void setShowHidden(boolean showHidden) { this.showHidden = showHidden; }
@Option(option = "format", description = "Output format (full, short)") public void setFormat(String format) { this.format = Format.valueOf(format.toUpperCase()); }
@Option(option = "non-buildable", description = "Show non-buildable components.") public void setShowNonBuildable(boolean showNonBuildable) { this.showNonBuildable = showNonBuildable; }
@Option(option = "test-suites", description = "Show test suites components.") public void setShowTestSuites(boolean showTestSuites) { this.showTestSuites = showTestSuites; }
/** * Set this to include both non buildable components and test suites in the report. */ @Option(option = "all", description = "Show all components (non-buildable and test suites).") public void setShowAll(boolean showAll) { this.showNonBuildable = showAll; this.showTestSuites = showAll; }
@Option(option = "all", description = "Show additional tasks and detail.") public void setShowDetail(boolean detail) { this.detail = detail; }
@Option(option = "task", description = "The task to show help for.") public void setTaskPath(String taskPath) { this.taskPath = taskPath; }
/** * {@inheritDoc} */ @Override @Option(option = "debug-jvm", description = "Enable debugging for the test process. The process is started suspended and listening on port 5005. [INCUBATING]") public void setDebug(boolean enabled) { forkOptions.setDebug(enabled); }
/** * {@inheritDoc} */ @Option(option = "debug-jvm", description = "Enable debugging for the process. The process is started suspended and listening on port 5005. [INCUBATING]") public void setDebug(boolean enabled) { javaExecHandleBuilder.setDebug(enabled); }
/** * {@inheritDoc} */ @Option(option = "debug-jvm", description = "Enable debugging for the test process. The process is started suspended and listening on port 5005. [INCUBATING]") public void setDebug(boolean enabled) { forkOptions.setDebug(enabled); }
@Option(option = "task", description = "The task, detailed help is requested for.") public void setTaskPath(String taskPath) { this.taskPath = taskPath; }
@Option(option = "key", description = "The credentials key.") public void setKey(String key) { this.key = key; }
@Option(option = "value", description = "The credentials value.") public void setValue(String value) { this.value = value; }
/** * Sets the test name patterns to be included in execution. * Classes or method names are supported, wildcard '*' is supported. * For more information see the user guide chapter on testing. * * For more information on supported patterns see {@link TestFilter} */ @Option(option = "tests", description = "Sets test class or method name to be included, '*' is supported.") @Incubating public Test setTestNameIncludePatterns(List<String> testNamePattern) { filter.setIncludePatterns(testNamePattern.toArray(new String[]{})); return this; }
/** * Sets the test name patterns to be included in execution. * Classes or method names are supported, wildcard '*' is supported. * For more information see the user guide chapter on testing. * * For more information on supported patterns see {@link TestFilter} */ @Option(option = "tests", description = "Sets test class or method name to be included, '*' is supported.") @Incubating public Test setTestNameIncludePattern(String testNamePattern) { filter.setIncludePatterns(testNamePattern); return this; }
/** * The type of the Gradle distribution to be used by the wrapper. By default, this is {@link DistributionType#BIN}, * which is the binary-only Gradle distribution without documentation. * * @see DistributionType */ @Option(option = "distribution-type", description = "The type of the Gradle distribution to be used by the wrapper.") public void setDistributionType(DistributionType distributionType) { this.distributionType = distributionType; }
/** * The URL to download the gradle distribution from. * * <p>If not set, the download URL is the default for the specified {@link #getGradleVersion()}. * * <p>If {@link #getGradleVersion()} is not set, will return null. * * <p>The wrapper downloads a certain distribution only once and caches it. If your distribution base is the * project, you might submit the distribution to your version control system. That way no download is necessary at * all. This might be in particular interesting, if you provide a custom gradle snapshot to the wrapper, because you * don't need to provide a download server then. */ @Option(option = "gradle-distribution-url", description = "The URL to download the Gradle distribution from.") public void setDistributionUrl(String url) { this.distributionUrl = url; }
/** * Sets the components to generate the report for. * * @param components the components. */ @Option(option = "component", description = "Component to generate the report for (can be specified more than once).") public void setComponents(List<String> components) { this.components = components; }
/** * Configures the dependency to show the report for. * Multiple notation formats are supported: Strings, instances of {@link Spec} * and groovy closures. Spec and closure receive {@link DependencyResult} as parameter. * Examples of String notation: 'org.slf4j:slf4j-api', 'slf4j-api', or simply: 'slf4j'. * The input may potentially match multiple dependencies. * See also {@link DependencyInsightReportTask#setDependencySpec(Spec)} * <p> * This method is exposed to the command line interface. Example usage: * <pre>gradle dependencyInsight --dependency slf4j</pre> */ @Option(option = "dependency", description = "Shows the details of given dependency.") public void setDependencySpec(Object dependencyInsightNotation) { NotationParser<Object, Spec<DependencyResult>> parser = DependencyResultSpecNotationConverter.parser(); this.dependencySpec = parser.parseNotation(dependencyInsightNotation); }
/** * Sets the configuration (via name) to look the dependency in. * <p> * This method is exposed to the command line interface. Example usage: * <pre>gradle dependencyInsight --configuration runtime --dependency slf4j</pre> */ @Option(option = "configuration", description = "Looks for the dependency in given configuration.") public void setConfiguration(String configurationName) { this.configuration = getProject().getConfigurations().getByName(configurationName); }
/** * Sets the single configuration (by name) to generate the report for. * * @param configurationName name of the configuration to generate the report for */ @Option(option = "configuration", description = "The configuration to generate the report for.") public void setConfiguration(String configurationName) { this.configurations = Collections.singleton(getTaskConfigurations().getByName(configurationName)); }
/** * Sets the environment id. This method may also be called when * the environment id is set via the command line option. * * @param environmentId The environment id. */ @Option(option = "environmentId", description = "The id of the environment that will be used.") public void setEnvironmentId(String environmentId) { this.environmentId = environmentId; }
/** * Sets the single configuration (by name) to generate the report for. * * @param configurationName name of the configuration to generate the report for */ @Option(option = "configuration", description = "The configuration to generate the report for.") public void setConfiguration(String configurationName) { this.configurations = Collections.singleton(getProject().getConfigurations().getByName(configurationName)); }