com.autonomousapps.AbstractPostProcessingTask.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dependency-analysis-gradle-plugin Show documentation
Show all versions of dependency-analysis-gradle-plugin Show documentation
Analyzes dependency usage in Android and JVM projects
// Copyright (c) 2024. Tony Robalik.
// SPDX-License-Identifier: Apache-2.0
@file:Suppress("unused")
package com.autonomousapps
import com.autonomousapps.internal.utils.fromJson
import com.autonomousapps.model.ProjectAdvice
import org.gradle.api.DefaultTask
import org.gradle.api.file.RegularFileProperty
import org.gradle.api.tasks.InputFile
import org.gradle.api.tasks.PathSensitive
import org.gradle.api.tasks.PathSensitivity
/** Extend this class to do custom post-processing of the [ProjectAdvice] produced by this project. */
abstract class AbstractPostProcessingTask : DefaultTask() {
init {
group = TASK_GROUP_DEP
}
@get:PathSensitive(PathSensitivity.NONE)
@get:InputFile
abstract val input: RegularFileProperty
fun projectAdvice(): ProjectAdvice = input.fromJson()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy