Package com.google.devtools.ksp.gradle
Class KspExtension
-
- All Implemented Interfaces:
public abstract class KspExtension
-
-
Field Summary
Fields Modifier and Type Field Description private final Property<Boolean>useKsp2private final ConfigurableFileCollectionexcludedSourcesprivate final Map<String, String>argumentsprivate BooleanblockOtherCompilerPluginsprivate BooleanallowSourcesFromOtherPluginsprivate BooleanallWarningsAsErrors
-
Constructor Summary
Constructors Constructor Description KspExtension(Project project)
-
Method Summary
Modifier and Type Method Description abstract Property<Boolean>getUseKsp2()Enables or disables KSP 2, defaults to the ksp.useKSP2gradle property ortrueif that's not set.abstract ConfigurableFileCollectiongetExcludedSources()Map<String, String>getArguments()BooleangetBlockOtherCompilerPlugins()UnitsetBlockOtherCompilerPlugins(@Deprecated(message = "No-op. KSP no longer reads this property") Boolean blockOtherCompilerPlugins)BooleangetAllowSourcesFromOtherPlugins()UnitsetAllowSourcesFromOtherPlugins(@Deprecated(message = "This feature is broken in recent versions of Gradle and is no longer supported in KSP2.") Boolean allowSourcesFromOtherPlugins)BooleangetAllWarningsAsErrors()UnitsetAllWarningsAsErrors(Boolean allWarningsAsErrors)Unitarg(String k, String v)Unitarg(String k, Provider<String> v)Unitarg(CommandLineArgumentProvider arg)UnitexcludeProcessor(String fullyQualifiedName)-
-
Method Detail
-
getUseKsp2
abstract Property<Boolean> getUseKsp2()
Enables or disables KSP 2, defaults to the
ksp.useKSP2gradle property ortrueif that's not set.This API is temporary and will be removed once KSP1 is removed.
-
getExcludedSources
abstract ConfigurableFileCollection getExcludedSources()
-
getArguments
Map<String, String> getArguments()
-
getBlockOtherCompilerPlugins
Boolean getBlockOtherCompilerPlugins()
-
setBlockOtherCompilerPlugins
Unit setBlockOtherCompilerPlugins(@Deprecated(message = "No-op. KSP no longer reads this property") Boolean blockOtherCompilerPlugins)
-
getAllowSourcesFromOtherPlugins
Boolean getAllowSourcesFromOtherPlugins()
-
setAllowSourcesFromOtherPlugins
Unit setAllowSourcesFromOtherPlugins(@Deprecated(message = "This feature is broken in recent versions of Gradle and is no longer supported in KSP2.") Boolean allowSourcesFromOtherPlugins)
-
getAllWarningsAsErrors
Boolean getAllWarningsAsErrors()
-
setAllWarningsAsErrors
Unit setAllWarningsAsErrors(Boolean allWarningsAsErrors)
-
excludeProcessor
Unit excludeProcessor(String fullyQualifiedName)
-
-
-
-