name.remal.gradle_plugins.dsl.reflective_project_plugin.info.WithRequirements.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gradle-plugins-kotlin-dsl Show documentation
Show all versions of gradle-plugins-kotlin-dsl Show documentation
Remal Gradle plugins: gradle-plugins-kotlin-dsl
package name.remal.gradle_plugins.dsl.reflective_project_plugin.info
import name.remal.gradle_plugins.dsl.PluginId
import org.gradle.util.GradleVersion
interface WithRequirements {
val minGradleVersion: GradleVersion?
val maxGradleVersion: GradleVersion?
val supportsCurrentGradleVersion: Boolean
get() = minGradleVersion.let { it == null || it <= GradleVersion.current() }
&& maxGradleVersion.let { it == null || it >= GradleVersion.current() }
val doesNotSupportCurrentGradleVersion: Boolean get() = !supportsCurrentGradleVersion
val requirePluginIds: Set
}