All Downloads are FREE. Search and download functionalities are using the official Maven repository.

name.remal.gradle_plugins.dsl.reflective_project_plugin.info.ActionsGroupInfo.kt Maven / Gradle / Ivy

There is a newer version: 1.9.2
Show newest version
package name.remal.gradle_plugins.dsl.reflective_project_plugin.info

import name.remal.gradle_plugins.dsl.PluginId
import name.remal.gradle_plugins.dsl.ProjectPluginClass
import org.gradle.util.GradleVersion

data class ActionsGroupInfo(
    val actionsGroupClass: Class<*>,
    val isHidden: Boolean = false,
    override val order: Int = 0,
    override val description: String = "",
    override val conditionMethods: List = listOf(),
    override val minGradleVersion: GradleVersion? = null,
    override val maxGradleVersion: GradleVersion? = null,
    override val requirePluginIds: Set = setOf(),
    override val applyPluginIds: Set = setOf(),
    override val applyOptionalPluginIds: Set = setOf(),
    override val applyPluginClasses: Set = setOf(),
    override val applyPluginIdsAtTheEnd: Set = setOf(),
    override val applyOptionalPluginIdsAtTheEnd: Set = setOf(),
    override val applyPluginClassesAtTheEnd: Set = setOf(),
    override val actionMethods: List = listOf(),
    override val actionsGroups: List = listOf()
) : ActionInfo, WithPluginActions, Comparable {

    override val actions: List = super.actions

    override fun compareTo(other: ActionsGroupInfo): Int {
        super.compareTo(other).let { if (it != 0) return it }
        actionsGroupClass.simpleName.compareTo(other.actionsGroupClass.simpleName).let { if (it != 0) return it }
        actionsGroupClass.name.compareTo(other.actionsGroupClass.name).let { if (it != 0) return it }
        return 0
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy