org.gradle.api.tasks.Optional Java Examples
The following examples show how to use
org.gradle.api.tasks.Optional.
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: MapNotationParser.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
private boolean optional(Annotation[] annotations) { for (Annotation annotation : annotations) { if (annotation instanceof Optional) { return true; } } return false; }
Example #2
Source File: TwirlCompile.java From playframework with Apache License 2.0 | 5 votes |
/** * Returns the default imports that will be used when compiling templates. * * @return The imports that will be used. */ @Nullable @Optional @Input public Property<TwirlImports> getDefaultImports() { return defaultImports; }
Example #3
Source File: ScalaCompileOptions.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
/** * Returns which backend is to be used. * * @deprecated use {@link ScalaCompile#getTargetCompatibility} instead */ @Input @Optional @Deprecated public String getTargetCompatibility() { return targetCompatibility; }
Example #4
Source File: ExcludeRuleNotationParser.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
protected ExcludeRule parseMap(@MapKey(ExcludeRule.GROUP_KEY) @Optional String group, @MapKey(ExcludeRule.MODULE_KEY) @Optional String module) { if (group == null && module == null) { throw new InvalidUserDataException("Dependency exclude rule requires 'group' and/or 'module' specified. For example: [group: 'com.google.collections']"); } return new DefaultExcludeRule(group, module); }
Example #5
Source File: MapNotationParser.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
private boolean optional(Annotation[] annotations) { for (Annotation annotation : annotations) { if (annotation instanceof Optional) { return true; } } return false; }
Example #6
Source File: MergeResources.java From javafxmobile-plugin with BSD 3-Clause "New" or "Revised" License | 5 votes |
@Optional @InputFiles @PathSensitive(PathSensitivity.RELATIVE) public FileCollection getLibraries() { if (libraries != null) { return libraries.getArtifactFiles(); } return null; }
Example #7
Source File: MinimalJavadocOptions.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
@Input @Optional JavadocMemberLevel getMemberLevel();
Example #8
Source File: JettyRun.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
@InputFile @Optional public File getJettyEnvXml() { return jettyEnvXml; }
Example #9
Source File: JettyRun.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
@InputFile @Optional public File getJettyEnvXmlFile() { return jettyEnvXmlFile; }
Example #10
Source File: MinimalJavadocOptions.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
@Input @Optional String getLocale();
Example #11
Source File: MinimalJavadocOptions.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
@Input @Optional String getOverview();
Example #12
Source File: BaseForkOptions.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
/** * Returns any additional JVM arguments for the compiler process. * Defaults to the empty list. */ @Input @Optional public List<String> getJvmArgs() { return jvmArgs; }
Example #13
Source File: MinimalJavadocOptions.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
@Input @Optional String getDoclet();
Example #14
Source File: MinimalJavadocOptions.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
@Input @Optional String getSource();
Example #15
Source File: ModelMapGenTask.java From doov with Apache License 2.0 | 4 votes |
@Input @Optional public Property<String> getBaseClassProperty() { return baseClassProperty; }
Example #16
Source File: SupportPortalDownload.java From commerce-gradle-plugin with Apache License 2.0 | 4 votes |
@Input @Optional public Property<String> getMd5Hash() { return md5Hash; }
Example #17
Source File: MinimalJavadocOptions.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
@Input @Optional String getHeader();
Example #18
Source File: ModelMapGenTask.java From doov with Apache License 2.0 | 4 votes |
@Input @Optional public Property<Boolean> getDslEntrypointMethods() { return dslEntrypointMethods; }
Example #19
Source File: DownloadTask.java From swaggerhub-gradle-plugin with Apache License 2.0 | 4 votes |
@Input @Optional public String getProtocol() { return protocol; }
Example #20
Source File: QuarkusBuild.java From quarkus with Apache License 2.0 | 4 votes |
@Optional @Input public List<String> getIgnoredEntries() { return ignoredEntries; }
Example #21
Source File: AbstractJettyRunTask.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
@InputFile @Optional public File getWebDefaultXml() { return webDefaultXml; }
Example #22
Source File: FormatterTask.java From spring-javaformat with Apache License 2.0 | 4 votes |
/** * Get the file encoding in use. * @return the encoding the file encoding */ @Input @Optional public String getEncoding() { return this.encoding; }
Example #23
Source File: UploadTask.java From swaggerhub-gradle-plugin with Apache License 2.0 | 4 votes |
@Input @Optional public int getPort() { return port; }
Example #24
Source File: DownloadTask.java From swaggerhub-gradle-plugin with Apache License 2.0 | 4 votes |
@Input @Optional public String getFormat() { return format; }
Example #25
Source File: GoogleServicesTask.java From play-services-plugins with Apache License 2.0 | 4 votes |
/** * Either packageNameXOR1 or packageNameXOR2 must be present, but both must be marked as @Optional or Gradle * will throw an exception if one is missing. */ @Input @Optional public String getPackageNameXOR1() { return packageNameXOR1; }
Example #26
Source File: QuarkusListExtensions.java From quarkus with Apache License 2.0 | 4 votes |
@Optional @Input public String getFormat() { return format; }
Example #27
Source File: QuarkusListExtensions.java From quarkus with Apache License 2.0 | 4 votes |
@Optional @Input public String getSearchPattern() { return searchPattern; }
Example #28
Source File: JettyRun.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
@InputFile @Optional public File getJettyEnvXmlFile() { return jettyEnvXmlFile; }
Example #29
Source File: JettyRun.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
@InputFile @Optional public File getJettyEnvXml() { return jettyEnvXml; }
Example #30
Source File: GenerateSchemaTask.java From smallrye-graphql with Apache License 2.0 | 4 votes |
@Optional @OutputFile public String getDestination() { return destination; }