Class ResourceDetectionOptions

java.lang.Object
org.graalvm.buildtools.gradle.dsl.ResourceDetectionOptions

public abstract class ResourceDetectionOptions extends Object
  • Constructor Details

    • ResourceDetectionOptions

      public ResourceDetectionOptions()
  • Method Details

    • getEnabled

      @Input public abstract org.gradle.api.provider.Property<Boolean> getEnabled()
      Determines if the resources should be detected from classpath. If this property is set to true, then Gradle will automatically detect resources to include from conventional places like src/main/resources.
      Returns:
      if resources should be detected from the classpath
    • getRestrictToProjectDependencies

      @Input public abstract org.gradle.api.provider.Property<Boolean> getRestrictToProjectDependencies()
      Determines if detection should be limited to project dependencies, in which case external dependencies will not be scanned. Default value is true.
      Returns:
      if detection should be limited to the project dependencies
    • getIgnoreExistingResourcesConfigFile

      @Input public abstract org.gradle.api.provider.Property<Boolean> getIgnoreExistingResourcesConfigFile()
      If set to true, then if a classpath entry contains a META-INF/native-image resources file, then we would still try to detect resources contained in that classpath entry (e.g jar). By default, this behavior is set to false, meaning that if such a file is present, detection is disabled for this particular classpath entry.
      Returns:
      the ignore property
    • getDetectionExclusionPatterns

      @Input public abstract org.gradle.api.provider.SetProperty<String> getDetectionExclusionPatterns()
      Returns the list of regular expressions which will be used to exclude resources from detection.
      Returns:
      a list of regular expressions for resources exclusion
    • addDefaultDetectionExclusions

      public ResourceDetectionOptions addDefaultDetectionExclusions()
      Adds the default resource excludes for detection, which can be useful if you want to add more excludes but still want the conventional ones to be added.
      Returns:
      resource detection options