package com.vgaidarji.dependencies.overview

import org.gradle.api.DefaultTask
import org.gradle.api.tasks.TaskAction

open class DependenciesOverviewTask : DefaultTask() {

    override fun getDescription(): String {
        return "Generates project dependencies overview table from project dependencies"
    }

    override fun getGroup(): String {
        return "documentation"
    }

    @TaskAction
    fun generate() {
        println("---DependenciesOverviewTask---")
    }
}

package com.vgaidarji.dependencies.overview

import org.gradle.api.DefaultTask
import org.gradle.api.tasks.TaskAction

open class DependenciesOverviewTask : DefaultTask() {

    init {
        description = "Generates project dependencies overview table from project dependencies"
        group = "documentation"
    }

    @TaskAction
    fun generate() {
        println("---DependenciesOverviewTask---")
    }
}

Move task configuration to init block
Move task configuration to init block

vgaidarji/dependencies-overview,vgaidarji/dependencies-overview,vgaidarji/dependencies-overview