org.gradle.api.tasks.options.Option Java Examples

The following examples show how to use org.gradle.api.tasks.options.Option. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: GenerateSchemaTask.java    From smallrye-graphql with Apache License 2.0 5 votes vote down vote up
@Option(option = "include-transitive-dependencies", description = "Whether to include transitive dependencies to scan for GraphQL model classes.")
public void setIncludeTransitiveDependencies(boolean includeTransitiveDependencies) {
    this.includeTransitiveDependencies = includeTransitiveDependencies;
    if (includeTransitiveDependencies) {
        this.includeDependencies = true;
    }
}
 
Example #2
Source File: OpenAPIStyleValidatorTask.java    From openapi-style-validator with Apache License 2.0 4 votes vote down vote up
@Option(option = VALIDATE_OPERATION_TAG, description = "Ensures that there is a tag for each operation")
public void setValidateOperationTag(boolean validateOperationTag) {
    this.validateOperationTag = validateOperationTag;
}
 
Example #3
Source File: TerraformOutputTask.java    From curiostack with MIT License 4 votes vote down vote up
@Option(option = "module", description = "The module to output.")
public TerraformOutputTask setModule(String module) {
  this.module = module;
  return this;
}
 
Example #4
Source File: JmhExecTask.java    From reactor-core with Apache License 2.0 4 votes vote down vote up
@Option(option = "exclude", description = "explicitly configure bench exclusion using full JMH style regexp")
public void setExclude(String exclude) {
	this.exclude = exclude;
}
 
Example #5
Source File: JmhExecTask.java    From reactor-core with Apache License 2.0 4 votes vote down vote up
@Option(option = "format", description = "configure report format")
public void setFormat(String format) {
	this.format = format;
}
 
Example #6
Source File: JmhExecTask.java    From reactor-core with Apache License 2.0 4 votes vote down vote up
@Option(option = "fullInclude", description = "explicitly configure bench inclusion using full JMH style regexp")
public void setFullInclude(String fullInclude) {
	this.fullInclude = fullInclude;
}
 
Example #7
Source File: ClojureNRepl.java    From clojurephant with Apache License 2.0 4 votes vote down vote up
@Option(option = "handler", description = "Qualified name of nREPL handler function.")
public void setHandler(String handler) {
  this.handler.set(handler);
}
 
Example #8
Source File: ClojureNRepl.java    From clojurephant with Apache License 2.0 4 votes vote down vote up
@Option(option = "ackPort", description = "Acknowledge the port of this server to another nREPL server.")
public void setAckPort(String ackPort) {
  setAckPort(Integer.parseInt(ackPort));
}
 
Example #9
Source File: ClojureNRepl.java    From clojurephant with Apache License 2.0 4 votes vote down vote up
@Option(option = "port", description = "Port the nREPL server should listen on.")
public void setPort(String port) {
  setPort(Integer.parseInt(port));
}
 
Example #10
Source File: TerraformOutputTask.java    From curiostack with MIT License 4 votes vote down vote up
@Option(option = "name", description = "The name of the output.")
public TerraformOutputTask setName(String name) {
  this.name = name;
  return this;
}
 
Example #11
Source File: ClojureNRepl.java    From clojurephant with Apache License 2.0 4 votes vote down vote up
@Option(option = "middleware", description = "Qualified names of nREPL middleware functions.")
public void setMiddleware(List<String> middleware) {
  if (middleware != null) {
    this.userMiddleware.set(middleware);
  }
}
 
Example #12
Source File: OpenAPIStyleValidatorTask.java    From openapi-style-validator with Apache License 2.0 4 votes vote down vote up
@Option(option = VALIDATE_NAMING, description = "Ensures the names follow a given naming convention")
public void setValidateNaming(boolean validateNaming) {
    this.validateNaming = validateNaming;
}
 
Example #13
Source File: OpenAPIStyleValidatorTask.java    From openapi-style-validator with Apache License 2.0 4 votes vote down vote up
@Option(option = VALIDATE_MODEL_NO_LOCAL_DEF, description = "Not implemented yet")
public void setValidateModelNoLocalDef(boolean validateModelNoLocalDef) {
    this.validateModelNoLocalDef = validateModelNoLocalDef;
}
 
Example #14
Source File: OpenAPIStyleValidatorTask.java    From openapi-style-validator with Apache License 2.0 4 votes vote down vote up
@Option(option = VALIDATE_MODEL_PROPERTIES_EXAMPLE, description = "Ensures that the properties of the Schemas have an example value defined")
public void setValidateModelPropertiesExample(boolean validateModelPropertiesExample) {
    this.validateModelPropertiesExample = validateModelPropertiesExample;
}
 
Example #15
Source File: OpenAPIStyleValidatorTask.java    From openapi-style-validator with Apache License 2.0 4 votes vote down vote up
@Option(option = VALIDATE_OPERATION_SUMMARY, description = "Ensures that there is a summary for each operation")
public void setValidateOperationSummary(boolean validateOperationSummary) {
    this.validateOperationSummary = validateOperationSummary;
}
 
Example #16
Source File: OpenAPIStyleValidatorTask.java    From openapi-style-validator with Apache License 2.0 4 votes vote down vote up
@Option(option = PATH_NAMING_CONVENTION, description = "Naming convention for paths")
public void setPathNamingConvention(NamingConvention pathNamingConvention) {
    this.pathNamingConvention = pathNamingConvention;
}
 
Example #17
Source File: OpenAPIStyleValidatorTask.java    From openapi-style-validator with Apache License 2.0 4 votes vote down vote up
@Option(option = VALIDATE_OPERATION_DESCRIPTION, description = "Ensures that there is a description for each operation")
public void setValidateOperationDescription(boolean validateOperationDescription) {
    this.validateOperationDescription = validateOperationDescription;
}
 
Example #18
Source File: OpenAPIStyleValidatorTask.java    From openapi-style-validator with Apache License 2.0 4 votes vote down vote up
@Option(option = VALIDATE_OPERATION_OPERATION_ID, description = "Ensures that there is an operation id for each operation")
public void setValidateOperationOperationId(boolean validateOperationOperationId) {
    this.validateOperationOperationId = validateOperationOperationId;
}
 
Example #19
Source File: OpenAPIStyleValidatorTask.java    From openapi-style-validator with Apache License 2.0 4 votes vote down vote up
@Option(option = VALIDATE_INFO_CONTACT, description = "Ensures that there is a contact section in the info section")
public void setValidateInfoContact(boolean validateInfoContact) {
    this.validateInfoContact = validateInfoContact;
}
 
Example #20
Source File: OpenAPIStyleValidatorTask.java    From openapi-style-validator with Apache License 2.0 4 votes vote down vote up
@Option(option = VALIDATE_INFO_DESCRIPTION, description = "Ensures that there is a description attribute in the info section")
public void setValidateInfoDescription(boolean validateInfoDescription) {
    this.validateInfoDescription = validateInfoDescription;
}
 
Example #21
Source File: OpenAPIStyleValidatorTask.java    From openapi-style-validator with Apache License 2.0 4 votes vote down vote up
@Option(option = VALIDATE_INFO_LICENSE, description = "Ensures that there is a license section in the info section")
public void setValidateInfoLicense(boolean validateInfoLicense) {
    this.validateInfoLicense = validateInfoLicense;
}
 
Example #22
Source File: OpenAPIStyleValidatorTask.java    From openapi-style-validator with Apache License 2.0 4 votes vote down vote up
@Option(option = INPUT_FILE, description = "OpenAPI specification being validated")
public void setInputFile(String inputFile) {
    this.inputFile = inputFile;
}
 
Example #23
Source File: QuarkusRemoveExtension.java    From quarkus with Apache License 2.0 4 votes vote down vote up
@Option(option = "extensions", description = "Configures the extensions to be removed.")
public void setExtensionsToRemove(List<String> extensionsToRemove) {
    this.extensionsToRemove = extensionsToRemove;
}
 
Example #24
Source File: QuarkusDev.java    From quarkus with Apache License 2.0 4 votes vote down vote up
@Option(description = "Additional parameters to pass to javac when recompiling changed source files", option = "compiler-args")
public void setCompilerArgs(List<String> compilerArgs) {
    this.compilerArgs = compilerArgs;
}
 
Example #25
Source File: QuarkusDev.java    From quarkus with Apache License 2.0 4 votes vote down vote up
@Option(description = "value is intended to be set to true when some generated bytecode is" +
        " erroneous causing the JVM to crash when the verify:none option is set " +
        "(which is on by default)", option = "prevent-noverify")
public void setPreventnoverify(boolean preventnoverify) {
    this.preventnoverify = preventnoverify;
}
 
Example #26
Source File: QuarkusDev.java    From quarkus with Apache License 2.0 4 votes vote down vote up
@Option(description = "Set application arguments", option = "quarkus-args")
public void setArgsString(String argsString) {
    this.setArgs(Arrays.asList(Commandline.translateCommandline(argsString)));
}
 
Example #27
Source File: QuarkusDev.java    From quarkus with Apache License 2.0 4 votes vote down vote up
@Option(description = "Set JVM arguments", option = "jvm-args")
public void setJvmArgs(List<String> jvmArgs) {
    this.jvmArgs = jvmArgs;
}
 
Example #28
Source File: QuarkusDev.java    From quarkus with Apache License 2.0 4 votes vote down vote up
@Option(description = "Set working directory", option = "working-dir")
public void setWorkingDir(String workingDir) {
    this.workingDir = workingDir;
}
 
Example #29
Source File: QuarkusDev.java    From quarkus with Apache License 2.0 4 votes vote down vote up
@Option(description = "Set source directory", option = "source-dir")
public void setSourceDir(String sourceDir) {
    this.sourceDir = sourceDir;
}
 
Example #30
Source File: QuarkusGenerateConfig.java    From quarkus with Apache License 2.0 4 votes vote down vote up
@Option(description = "The name of the file to generate", option = "file")
public void setFile(String file) {
    this.file = file;
}