com.datadog.gradle.plugin.licenses.DependencyLicensesExtension.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dependency-license Show documentation
Show all versions of dependency-license Show documentation
This plugin generates the OSS licenses csv file for all dependencies.
The newest version!
/*
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2016-Present Datadog, Inc.
*/
package com.datadog.gradle.plugin.licenses
import java.io.File
/**
* Extension to configure the Dependency License plugin.
* @param csvFile the output file where the license information should be written
* @param listDependencyOnce list each dependency only once (default: true)
* @param transitiveDependencies list transitive dependencies (default: false)
* @param checkObsoleteDependencies prints a warning for obsolete dependencies listed (default: false)
*/
open class DependencyLicensesExtension(
var csvFile: File = File(DEFAULT_TP_LICENSE_FILENAME),
var listDependencyOnce: Boolean = true,
var transitiveDependencies: Boolean = false,
var checkObsoleteDependencies: Boolean = false,
) {
companion object {
internal const val DEFAULT_TP_LICENSE_FILENAME = "LICENSE-3rdparty.csv"
}
}