name.remal.gradle_plugins.dsl.extensions.org.gradle.api.reporting.Report.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.extensions
import name.remal.fromLowerCamelToLowerHyphen
import org.gradle.api.reporting.Report
import org.gradle.api.reporting.Report.OutputType.FILE
val Report.destinationFileExtension: String
get() {
if (FILE != outputType) throw IllegalStateException("$name report has $outputType output type")
return name.fromLowerCamelToLowerHyphen().substringAfterLast('-').substringAfterLast('_')
}