All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.datadog.gradle.plugin.licenses.DependencyLicensesExtension.kt Maven / Gradle / Ivy

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"
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy