diff --git a/sweetproperty-gradle-plugin/src/main/java/com/highcapable/sweetproperty/plugin/extension/dsl/configure/SweetPropertyConfigureExtension.kt b/sweetproperty-gradle-plugin/src/main/java/com/highcapable/sweetproperty/plugin/extension/dsl/configure/SweetPropertyConfigureExtension.kt index fe75c60..69f345d 100644 --- a/sweetproperty-gradle-plugin/src/main/java/com/highcapable/sweetproperty/plugin/extension/dsl/configure/SweetPropertyConfigureExtension.kt +++ b/sweetproperty-gradle-plugin/src/main/java/com/highcapable/sweetproperty/plugin/extension/dsl/configure/SweetPropertyConfigureExtension.kt @@ -19,7 +19,7 @@ * * This file is created by fankes on 2023/8/25. */ -@file:Suppress("unused", "MemberVisibilityCanBePrivate", "PropertyName") +@file:Suppress("unused", "MemberVisibilityCanBePrivate", "PropertyName", "DeprecatedCallableAddReplaceWith") package com.highcapable.sweetproperty.plugin.extension.dsl.configure @@ -124,6 +124,16 @@ open class SweetPropertyConfigureExtension internal constructor() { /** 当前构建脚本生成代码功能配置实例 */ internal var buildScriptConfigure: BuildScriptGenerateConfigureExtension? = null + /** + * 错误的调用会导致关闭整个插件的功能 + * + * 请使用 [all]、[sourcesCode]、[buildScript] + * @throws [IllegalStateException] + */ + @Deprecated(message = "Do not use", level = DeprecationLevel.ERROR) + val isEnable: Boolean + get() = SError.make("Please called all { isEnable = ... }, sourcesCode { isEnable = ... }, buildScript { isEnable = ... }") + /** * 配置通用生成代码功能 * @param action 配置方法体