com.autonomousapps.extension.ReportingHandler.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
package com.autonomousapps.extension
import org.gradle.api.model.ObjectFactory
import org.gradle.api.provider.Property
import org.gradle.kotlin.dsl.property
import javax.inject.Inject
/**
* Customize issue reports.
*
* ```
* dependencyAnalysis {
* reporting {
* postscript(/* Some text to help out end users who may not be build engineers. */)
* }
* }
* ```
*/
abstract class ReportingHandler @Inject constructor(objects: ObjectFactory) {
internal val postscript: Property = objects.property().convention("")
/**
* A postscript to include in issue reports. Only included when there are issues to report, otherwise ignored.
*/
fun postscript(postscript: String) {
this.postscript.set(postscript)
this.postscript.disallowChanges()
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy