Class ClearSkiesExtension

java.lang.Object
zone.rong.clearskies.gradle.ClearSkiesExtension

public abstract class ClearSkiesExtension extends Object
The clearSkies { } block.

 clearSkies {
     sourceSets("main", "test")
     languageLevel = LanguageLevel.JAVA_21
 }
 
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    exclude(String... patterns)
    Adds exclude patterns.
    abstract org.gradle.api.provider.Property<String>
    Charset used to read and write sources.
    abstract org.gradle.api.provider.Property<Boolean>
    Whether check depends on clearSkiesCheck.
    abstract org.gradle.api.provider.SetProperty<String>
    Ant-style patterns of the files to leave alone, relative to each source directory.
    abstract org.gradle.api.provider.SetProperty<String>
    Ant-style patterns of the files to expand, relative to each source directory.
    abstract org.gradle.api.provider.Property<zone.rong.clearskies.api.LanguageLevel>
    Java release passed to javac as --release.
    abstract org.gradle.api.provider.ListProperty<String>
    Names of the source sets to expand.
    void
    include(String... patterns)
    Adds include patterns.
    void
    sourceSets(String... names)
    Convenience for sourceSets = listOf(...).

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ClearSkiesExtension

      public ClearSkiesExtension()
  • Method Details

    • getSourceSets

      public abstract org.gradle.api.provider.ListProperty<String> getSourceSets()
      Names of the source sets to expand. Defaults to every source set in the project.
    • getIncludes

      public abstract org.gradle.api.provider.SetProperty<String> getIncludes()
      Ant-style patterns of the files to expand, relative to each source directory. Defaults to every file.
    • getExcludes

      public abstract org.gradle.api.provider.SetProperty<String> getExcludes()
      Ant-style patterns of the files to leave alone, relative to each source directory.
    • getLanguageLevel

      public abstract org.gradle.api.provider.Property<zone.rong.clearskies.api.LanguageLevel> getLanguageLevel()
      Java release passed to javac as --release. When unset, each source set uses its JavaCompile release (then source compatibility, then the running JDK).
    • getEncoding

      public abstract org.gradle.api.provider.Property<String> getEncoding()
      Charset used to read and write sources. When unset, each source set uses its JavaCompile encoding, then UTF-8.
    • getEnforceOnCheck

      public abstract org.gradle.api.provider.Property<Boolean> getEnforceOnCheck()
      Whether check depends on clearSkiesCheck. Defaults to true.
    • sourceSets

      public void sourceSets(String... names)
      Convenience for sourceSets = listOf(...).
    • include

      public void include(String... patterns)
      Adds include patterns.
    • exclude

      public void exclude(String... patterns)
      Adds exclude patterns.