diff --git a/LICENSE-3rdparty.csv b/LICENSE-3rdparty.csv index 76296f6370..436775ebed 100644 --- a/LICENSE-3rdparty.csv +++ b/LICENSE-3rdparty.csv @@ -43,7 +43,7 @@ import,androidx.versionedparcelable,Apache-2.0,Copyright 2018 The Android Open S import,androidx.viewpager,Apache-2.0,Copyright 2018 The Android Open Source Project import,androidx.work,Apache-2.0,Copyright 2018 The Android Open Source Project import,com.android.tools,Apache-2.0,Copyright 2018 The Android Open Source Project -import,com.github.bumptech.glide,"Simplified BSD License/The Apache Software License, Version 2.0","Copyright 2014 Google, Inc. All rights reserved, Copyright (c) 2013. Bump Technologies Inc. All Rights Reserved." +import,com.github.bumptech.glide,"BSD 3-Clause","Copyright 2014 Google, Inc. All rights reserved, Copyright (c) 2013. Bump Technologies Inc. All Rights Reserved." import,com.facebook.fresco,MIT,"Copyright (c) Facebook, Inc. and its affiliates" import,com.github.spotbugs,"GNU LESSER GENERAL PUBLIC LICENSE, Version 2.1","Copyright (C) 1991, 1999 Free Software Foundation, Inc." import,com.google.android.material,Apache-2.0,Copyright 2018 The Android Open Source Project @@ -66,25 +66,25 @@ import,io.reactivex.rxjava3.android,Apache-2.0,Copyright 2015 The RxAndroid auth import,org.jetbrains,Apache-2.0,Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors import,org.jetbrains.kotlin,Apache-2.0,Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors import,org.jetbrains.kotlinx,Apache-2.0,Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors -import,org.reactivestreams,"CC0",Copyright 2014 Reactive Streams +import,org.reactivestreams,CC0,Copyright 2014 Reactive Streams +import(test),androidx.autofill,Apache-2.0,Copyright 2018 The Android Open Source Project import(test),androidx.concurrent,Apache-2.0,Copyright 2018 The Android Open Source Project import(test),androidx.dynamicanimation,Apache-2.0,Copyright 2018 The Android Open Source Project -import(test),androidx.exifinterface,Apache-2.0,Copyright 2018 The Android Open Source Project -import(test),androidx.test,Apache-2.0,Copyright 2018 The Android Open Source Project -import(test),androidx.test.espresso,Apache-2.0,Copyright 2018 The Android Open Source Project -import(test),androidx.test.ext,Apache-2.0,Copyright 2018 The Android Open Source Project -import(test),androidx.test.services,Apache-2.0,Copyright 2018 The Android Open Source Project -import(test),androidx.tracing,Apache-2.0,Copyright 2018 The Android Open Source Project -import(test),androidx.viewpager2,Apache-2.0,Copyright 2018 The Android Open Source Project -import(test),androidx.autofill,Apache-2.0,Copyright 2018 The Android Open Source Project import(test),androidx.emoji2,Apache-2.0,Copyright 2018 The Android Open Source Project import(test),androidx.exifinterface,Apache-2.0,Copyright 2018 The Android Open Source Project +import(test),androidx.exifinterface,Apache-2.0,Copyright 2018 The Android Open Source Project import(test),androidx.profileinstaller,Apache-2.0,Copyright 2018 The Android Open Source Project import(test),androidx.test,Apache-2.0,Copyright 2018 The Android Open Source Project +import(test),androidx.test,Apache-2.0,Copyright 2018 The Android Open Source Project +import(test),androidx.test.espresso,Apache-2.0,Copyright 2018 The Android Open Source Project import(test),androidx.test.espresso,Apache-2.0,Copyright 2018 The Android Open Source Project import(test),androidx.test.ext,Apache-2.0,Copyright 2018 The Android Open Source Project +import(test),androidx.test.ext,Apache-2.0,Copyright 2018 The Android Open Source Project +import(test),androidx.test.services,Apache-2.0,Copyright 2018 The Android Open Source Project import(test),androidx.test.services,Apache-2.0,Copyright 2018 The Android Open Source Project import(test),androidx.tracing,Apache-2.0,Copyright 2018 The Android Open Source Project +import(test),androidx.tracing,Apache-2.0,Copyright 2018 The Android Open Source Project +import(test),androidx.viewpager2,Apache-2.0,Copyright 2018 The Android Open Source Project import(test),androidx.viewpager2,Apache-2.0,Copyright 2018 The Android Open Source Project import(test),androidx.window,Apache-2.0,Copyright 2018 The Android Open Source Project import(test),com.android.support,Apache-2.0,Copyright 2018 The Android Open Source Project @@ -92,8 +92,12 @@ import(test),com.facebook.soloader,Apache-2.0,"Copyright (c) Facebook, Inc. and import(test),com.github.xgouchet.Elmyr,MIT,Copyright 2017-2019 Xavier F. Gouchet import(test),com.google.android.apps.common.testing.accessibility.framework,Apache-2.0,Copyright 2018 The Android Open Source Project import(test),com.google.code.findbugs,Apache-2.0,"Copyright (C) 2006, University of Maryland" -import(test),com.parse.bolts,"BSD License","Copyright (c) Facebook, Inc. and its affiliates." +import(test),com.google.errorprone,Apache-2.0,"Copyright 2018 The Error Prone Authors" +import(test),com.google.j2objc,Apache-2.0,"Copyright (C) 2011 The Android Open Source Project" +import(test),com.google.protobuf,BSD-3-Clause,"Copyright 2008 Google Inc" import(test),com.google.re2j,"Go License","Copyright (c) 2009 The Go Authors. All rights reserved." +import(test),com.parse.bolts,"BSD License","Copyright (c) Facebook, Inc. and its affiliates." +import(test),com.squareup,Apache-2.0,"Copyright 2015 Square, Inc." import(test),greatest,ICT,"Copyright (c) 2011-2018 Scott Vokes " import(test),javax.inject,Apache-2.0,Copyright (C) 2009 The JSR-330 Expert Group import(test),junit,EPL-1.0,Copyright © 2002-2019 JUnit @@ -103,9 +107,11 @@ import(test),net.wuerl.kotlin,Apache-2.0,Copyright 2016 Andreas Würl import(test),org.apiguardian,Apache-2.0,Copyright 2002-2017 the original author or authors import(test),org.assertj,Apache-2.0,Copyright 2012-2019 the original author or authors import(test),org.ccil.cowan.tagsoup,Apache-2.0,Copyright 2002-2008 by John Cowan +import(test),org.checkerframework,"MIT","Copyright 2004-present by the Checker Framework developers" import(test),org.hamcrest,BSD-3-Clause,Copyright (c) 2000-2015 www.hamcrest.org import(test),org.jacoco,EPL-2.0,"Copyright (c) 2009, 2019 Mountainminds GmbH & Co. KG and Contributors" import(test),org.jctools,"Apache-2.0","Copyright 2023 Datadog, Inc." +import(test),org.jsoup,MIT,"Copyright (c) 2009-2024 Jonathan Hedley" import(test),org.junit,EPL-2.0,Copyright 2015-2019 the original author or authors import(test),org.junit.jupiter,EPL-2.0,Copyright 2015-2019 the original author or authors import(test),org.junit.platform,EPL-2.0,Copyright 2015-2019 the original author or authors @@ -121,12 +127,20 @@ build,androidx.compose.compiler,Apache-2.0,Copyright 2019 The Android Open Sourc build,ch.qos.logback,EPL-1.0,"Copyright (C) 1999-2015, QOS.ch" build,com.android.tools.build,Apache-2.0,Copyright (C) 2013 The Android Open Source Project build,com.android.tools.lint,Apache-2.0,Copyright (C) 2013 The Android Open Source Project +build,com.fasterxml.jackson.core,Apache-2.0,"Copyright (c) 2007- Tatu Saloranta" +build,com.fasterxml.jackson.dataformat,Apache-2.,"Copyright (c) 2007- Tatu Saloranta" +build,com.fasterxml.jackson.module,Apache-2.0,"Copyright (c) 2007- Tatu Saloranta" +build,com.fasterxml.woodstox,Apache-2.0,"Copyright (c) 2007- Tatu Saloranta" build,com.google.devtools.ksp,Apache-2.0,"Copyright 2020 Google LLC, Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors." build,com.pinterest,MIT,"Copyright 2019 Pinterest Inc, Copyright 2016-2019 Stanley Shyiko" build,io.github.microutils,Apache-2.0,Copyright (c) 2016-2018 Ohad Shai build,io.gitlab.arturbosch.detekt,Apache-2.0,Copyright 2016-2019 the original author or authors +build,jakarta.activation,BSD 3-Clause,"Copyright (c) 2017, 2018 Oracle and/or its affiliates" +build,jakarta.xml.bind,BSD 3-Clause,"Copyright (c) 2017, 2018 Oracle and/or its affiliates" build,net.java.dev.jna,"Apache-2.0","Copyright (c) 2007 Timothy Wall, All Rights Reserved" +build,org.codehaus.woodstox,BSD 2-Clause,"Copyright (c) 2008 FasterXML LLC" build,org.ec4j.core,Apache-2.0,"Copyright (c) 2017 Angelo Zerr and other contributors" +build,org.freemarker,Apache-2.0,"Copyright 2015-2018 The Apache Software Foundation" build,org.jetbrains.dokka,Apache-2.0,"Copyright 2014-2019 JetBrains s.r.o. and Dokka project contributors." build,org.jetbrains.intellij.deps,LGPL-2.1-only,"Copyright (c) 2001-2002, Eric D. Friedman, Jason Baldridge, Copyright (c) 1999 CERN - European Organization for Nuclear Research" build,org.slf4j,MIT,"Copyright (c) 2004-2022 QOS.ch Sarl (Switzerland)" diff --git a/build.gradle.kts b/build.gradle.kts index 9332deba1e..9c2550d2a2 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -119,7 +119,7 @@ tasks.register("unitTestAll") { registerSubModuleAggregationTask("lintCheckAll", "lintRelease") { dependsOn(":tools:lint:lint") } -registerSubModuleAggregationTask("checkThirdPartyLicensesAll", "checkThirdPartyLicences") +registerSubModuleAggregationTask("checkDependencyLicencesAll", "checkDependencyLicences") registerSubModuleAggregationTask("checkApiSurfaceChangesAll", "checkApiSurfaceChanges") @@ -129,7 +129,7 @@ registerSubModuleAggregationTask("checkTransitiveDependenciesListAll", "checkTra * Task necessary to be compliant with the shared Android static analysis pipeline */ tasks.register("checkGeneratedFiles") { - dependsOn("checkThirdPartyLicensesAll") + dependsOn("checkDependencyLicencesAll") dependsOn("checkApiSurfaceChangesAll") dependsOn("checkTransitiveDependenciesListAll") } diff --git a/buildSrc/build.gradle.kts b/buildSrc/build.gradle.kts index d121fd2f96..685bd5c559 100644 --- a/buildSrc/build.gradle.kts +++ b/buildSrc/build.gradle.kts @@ -34,6 +34,7 @@ dependencies { implementation(libs.versionsGradlePlugin) implementation(libs.fuzzyWuzzy) implementation(libs.dokkaGradlePlugin) + implementation(libs.dependencyLicenseGradlePlugin) implementation(libs.kover) // check api surface @@ -57,10 +58,6 @@ dependencies { gradlePlugin { plugins { - register("thirdPartyLicences") { - id = "thirdPartyLicences" // the alias - implementationClass = "com.datadog.gradle.plugin.checklicenses.ThirdPartyLicensesPlugin" - } register("apiSurface") { id = "apiSurface" // the alias implementationClass = "com.datadog.gradle.plugin.apisurface.ApiSurfacePlugin" diff --git a/buildSrc/src/main/kotlin/com/datadog/gradle/config/AndroidConfig.kt b/buildSrc/src/main/kotlin/com/datadog/gradle/config/AndroidConfig.kt index efda648ecc..e33106be89 100644 --- a/buildSrc/src/main/kotlin/com/datadog/gradle/config/AndroidConfig.kt +++ b/buildSrc/src/main/kotlin/com/datadog/gradle/config/AndroidConfig.kt @@ -8,6 +8,7 @@ package com.datadog.gradle.config import com.android.build.api.dsl.CompileOptions import com.android.build.gradle.LibraryExtension +import com.datadog.gradle.plugin.licenses.DependencyLicensesExtension import com.datadog.gradle.utils.Version import org.gradle.api.JavaVersion import org.gradle.api.Project @@ -86,4 +87,8 @@ fun Project.androidLibraryConfig() { } } } + + extensionConfig { + transitiveDependencies = true + } } diff --git a/buildSrc/src/main/kotlin/com/datadog/gradle/plugin/checklicenses/CheckThirdPartyLicensesTask.kt b/buildSrc/src/main/kotlin/com/datadog/gradle/plugin/checklicenses/CheckThirdPartyLicensesTask.kt deleted file mode 100644 index 6db2ed2cfb..0000000000 --- a/buildSrc/src/main/kotlin/com/datadog/gradle/plugin/checklicenses/CheckThirdPartyLicensesTask.kt +++ /dev/null @@ -1,131 +0,0 @@ -/* - * 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.checklicenses - -import org.gradle.api.DefaultTask -import org.gradle.api.tasks.Input -import org.gradle.api.tasks.InputFile -import org.gradle.api.tasks.TaskAction -import java.io.File - -open class CheckThirdPartyLicensesTask : DefaultTask() { - - @get:Input - internal var extension: ThirdPartyLicensesExtension = - ThirdPartyLicensesExtension() - private val provider: DependenciesLicenseProvider = - DependenciesLicenseProvider() - - init { - group = "datadog" - description = "Check all Third Party Licences appear in the csv file" - } - - // region Task - - @TaskAction - fun applyTask() { - val projectDependencies = provider.getThirdPartyDependencies( - project, - extension.transitiveDependencies, - extension.listDependencyOnce - ) - val listedDependencies = parseCsvFile() - - checkMatchingDependencies(projectDependencies, listedDependencies, "missing") - - if (extension.checkObsoleteDependencies) { - checkMatchingDependencies(listedDependencies, projectDependencies, "obsolete") - } - - listedDependencies.filter { it.license is License.Empty } - .forEach { - logger.warn("License for ${it.origin} is empty") - } - - listedDependencies.filter { it.license is License.Raw } - .forEach { - logger.warn("License for ${it.origin} is not valid : ${it.license}") - } - - listedDependencies.filter { it.copyright == "__" } - .forEach { - logger.warn("Copyright for ${it.origin} is missing") - } - } - - private fun checkMatchingDependencies( - trueDependencies: List, - testedDependencies: List, - check: String - ) { - var error = false - - trueDependencies.forEach { dep -> - val known = testedDependencies.firstOrNull { - it.component == dep.component && it.origin == dep.origin - } - val knownInOtherComponent = testedDependencies.firstOrNull { - it.component != dep.component && it.origin == dep.origin - } - - if (known == null && knownInOtherComponent == null) { - error = true - logger.error("✗ $check dependency in ${extension.csvFile.name} : $dep") - } else if (knownInOtherComponent != null) { - logger.info( - "✗ $dep $check but exist in component ${knownInOtherComponent.component}" - ) - } - } - - check(!error) { "Some dependencies are missing in ${extension.csvFile.name}" } - } - - @InputFile - fun getCsvInputFile(): File { - return extension.csvFile - } - - // endregion - - // region Internal - - @Suppress("DestructuringDeclarationWithTooManyEntries") - private fun parseCsvFile(): List { - val result = mutableListOf() - var firstLineRead = false - extension.csvFile.forEachLine { - if (firstLineRead) { - val (component, origin, license, copyright) = it.split(",") - result.add( - ThirdPartyDependency( - component = componentMap[component] - ?: ThirdPartyDependency.Component.UNKNOWN, - origin = origin, - license = License.from( - license - ), - copyright = copyright - ) - ) - } else { - firstLineRead = true - } - } - - return result - } - - // endregion - - companion object { - private val componentMap = ThirdPartyDependency.Component.values() - .map { it.csvName to it } - .toMap() - } -} diff --git a/buildSrc/src/main/kotlin/com/datadog/gradle/plugin/checklicenses/DependenciesLicenseProvider.kt b/buildSrc/src/main/kotlin/com/datadog/gradle/plugin/checklicenses/DependenciesLicenseProvider.kt deleted file mode 100644 index bfc97be52b..0000000000 --- a/buildSrc/src/main/kotlin/com/datadog/gradle/plugin/checklicenses/DependenciesLicenseProvider.kt +++ /dev/null @@ -1,232 +0,0 @@ -/* - * 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.checklicenses - -import com.datadog.gradle.utils.asSequence -import org.gradle.api.Project -import org.gradle.api.artifacts.component.ComponentIdentifier -import org.gradle.api.artifacts.component.ProjectComponentIdentifier -import org.gradle.api.artifacts.result.ComponentSelectionCause -import org.gradle.api.artifacts.result.ResolvedArtifactResult -import org.gradle.api.artifacts.result.ResolvedDependencyResult -import org.gradle.maven.MavenModule -import org.gradle.maven.MavenPomArtifact -import org.slf4j.LoggerFactory -import org.w3c.dom.Document -import javax.xml.parsers.DocumentBuilderFactory - -class DependenciesLicenseProvider { - - private val logger = LoggerFactory.getLogger(DependenciesLicenseProvider::class.java) - - fun getThirdPartyDependencies( - project: Project, - transitive: Boolean, - listDependencyOnce: Boolean - ): List { - val dependencies = getConfigurationDependenciesMap(project, transitive) - - val dependencyIds = dependencies.values.flatten() - val pomFilesList = resolvePomFiles(project, dependencyIds) - - return listThirdPartyLicenses(dependencies, pomFilesList, listDependencyOnce) - } - - // region Internal - - @Suppress("FunctionMaxLength") - private fun getConfigurationDependenciesMap( - project: Project, - transitive: Boolean - ): Map> { - return project.configurations.filter { it.isCanBeResolved } - .map { configuration -> - configuration.name to configuration.incoming.resolutionResult.allDependencies - .filterIsInstance() - .filter { - transitive || (it.isRoot() && it.selected.id !is ProjectComponentIdentifier) - } - .map { it.selected.id } - } - .filter { it.second.isNotEmpty() } - .toMap() - } - - private fun resolvePomFiles( - project: Project, - dependencyIds: List - ): Map { - return project.dependencies - .createArtifactResolutionQuery() - .withArtifacts(MavenModule::class.java, MavenPomArtifact::class.java) - .forComponents(dependencyIds) - .execute() - .resolvedComponents - .flatMap { result -> - result.getArtifacts(MavenPomArtifact::class.java) - .filterIsInstance() - .map { result.id to it.file.absolutePath } - }.toMap() - } - - private fun listThirdPartyLicenses( - dependencies: Map>, - pomFilesList: Map, - listDependencyOnce: Boolean - ): List { - val sorted = dependencies.map { - listThirdPartyLicensesInConfiguration( - it.key, - it.value, - pomFilesList - ) - }.flatten() - .toSet() - .sortedBy { it.origin } - .sortedBy { it.component.ordinal } - - return if (listDependencyOnce) { - val knownOrigins = mutableSetOf() - val result = mutableListOf() - sorted.forEach { - if (it.origin !in knownOrigins) { - result.add(it) - knownOrigins.add(it.origin) - } else { - logger.info("Ignoring ${it.component.csvName}/${it.origin}, already added.") - } - } - result - } else { - sorted - } - } - - @Suppress("FunctionMaxLength") - private fun listThirdPartyLicensesInConfiguration( - configuration: String, - dependencies: List, - pomFilesList: Map - ): List { - return dependencies.mapNotNull { - val pomFilePath = pomFilesList[it] - if (pomFilePath.isNullOrBlank()) { - logger.warn("Missing pom.xml file for dependency $it") - null - } else { - readLicenseFromPomFile(configuration, pomFilePath) - } - } - } - - private fun readLicenseFromPomFile( - configuration: String, - path: String - ): ThirdPartyDependency? { - val document = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(path) - val groupId = readGroupIdFromPomDocument(document) - val licenseString = readLicenseFromPomDocument(document) - - return if (groupId != null) { - return ThirdPartyDependency( - component = configurationToComponent(configuration), - origin = groupId, - license = License.from( - licenseString - ), - copyright = "__" - ) - } else { - logger.warn("Missing groupId in $path") - null - } - } - - private fun configurationToComponent(configuration: String): ThirdPartyDependency.Component { - return if (configuration in knownImportConfiguration) { - ThirdPartyDependency.Component.IMPORT - } else if (configuration in knownImportTestConfiguration) { - ThirdPartyDependency.Component.IMPORT_TEST - } else if (configuration in knownBuildConfiguration) { - ThirdPartyDependency.Component.BUILD - } else { - logger.info("Unknown configuration $configuration") - ThirdPartyDependency.Component.UNKNOWN - } - } - - private fun readGroupIdFromPomDocument(document: Document): String? { - val groupIdNode = document.getElementsByTagName(TAG_GROUP_ID) - .asSequence().firstOrNull() - val groupId = groupIdNode?.textContent - return groupId - } - - private fun readLicenseFromPomDocument(document: Document): String? { - val licencesNode = document.getElementsByTagName(TAG_LICENSES) - .asSequence() - .firstOrNull() - val licenceNodes = licencesNode?.childNodes - ?.asSequence() - ?.filter { it.nodeName == TAG_LICENSE } - val licenses = licenceNodes?.asSequence() - ?.mapNotNull { - it.childNodes - .asSequence() - .firstOrNull { child -> child.nodeName == TAG_NAME } - } - ?.joinToString("/") { it.textContent } - return licenses - } - - @Suppress("UnstableApiUsage") - private fun ResolvedDependencyResult.isRoot(): Boolean { - return from.selectionReason.descriptions.any { - it.cause == ComponentSelectionCause.ROOT - } - } - // endregion - - companion object { - private const val TAG_GROUP_ID = "groupId" - private const val TAG_LICENSES = "licenses" - private const val TAG_LICENSE = "license" - private const val TAG_NAME = "name" - - private val knownImportConfiguration = setOf( - "archives", - "debugCompileClasspath", - "debugImplementationDependenciesMetadata", - "debugRuntimeClasspath", - "implementationDependenciesMetadata", - "releaseCompileClasspath", - "releaseImplementationDependenciesMetadata", - "releaseRuntimeClasspath" - ) - private val knownImportTestConfiguration = setOf( - "androidTestImplementationDependenciesMetadata", - "debugAndroidTestCompileClasspath", - "debugAndroidTestImplementationDependenciesMetadata", - "debugAndroidTestRuntimeClasspath", - "debugUnitTestCompileClasspath", - "debugUnitTestImplementationDependenciesMetadata", - "debugUnitTestRuntimeClasspath", - "releaseUnitTestCompileClasspath", - "releaseUnitTestImplementationDependenciesMetadata", - "releaseUnitTestRuntimeClasspath", - "testImplementationDependenciesMetadata" - ) - private val knownBuildConfiguration = setOf( - "_internal_aapt2_binary", - "detekt", - "kotlin-extension", - "kotlinCompilerClasspath", - "kotlinCompilerPluginClasspath", - "lintClassPath" - ) - } -} diff --git a/buildSrc/src/main/kotlin/com/datadog/gradle/plugin/checklicenses/License.kt b/buildSrc/src/main/kotlin/com/datadog/gradle/plugin/checklicenses/License.kt deleted file mode 100644 index 18f8f43a11..0000000000 --- a/buildSrc/src/main/kotlin/com/datadog/gradle/plugin/checklicenses/License.kt +++ /dev/null @@ -1,47 +0,0 @@ -/* - * 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.checklicenses - -sealed class License { - - data class SPDX(val licenses: List) : License() { - override fun toString(): String { - return licenses.joinToString("/") { it.csvName } - } - } - - data class Raw(val value: String) : License() { - override fun toString(): String { - return "\"$value\"" - } - } - - object Empty : License() { - override fun toString(): String { - return "__" - } - } - - companion object { - fun from(license: String?): License { - val licenseOrEmpty = license.orEmpty() - val matches = - SPDXLicenceConverter.convert( - licenseOrEmpty - ) - return when { - licenseOrEmpty.isEmpty() -> Empty - matches.isNullOrEmpty() -> Raw( - licenseOrEmpty - ) - else -> SPDX( - matches - ) - } - } - } -} diff --git a/buildSrc/src/main/kotlin/com/datadog/gradle/plugin/checklicenses/SPDXLicenceConverter.kt b/buildSrc/src/main/kotlin/com/datadog/gradle/plugin/checklicenses/SPDXLicenceConverter.kt deleted file mode 100644 index aa8ac43889..0000000000 --- a/buildSrc/src/main/kotlin/com/datadog/gradle/plugin/checklicenses/SPDXLicenceConverter.kt +++ /dev/null @@ -1,443 +0,0 @@ -/* - * 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.checklicenses - -import me.xdrop.fuzzywuzzy.FuzzySearch - -object SPDXLicenceConverter { - - fun convert(licenses: String): List? { - val result = licenses.split('/') - .map { - convertLicense( - it - ) - } - - return if (result.isEmpty() || result.contains(null)) { - null - } else { - result.filterNotNull() - } - } - - @Suppress("ReturnCount") - private fun convertLicense(license: String): SPDXLicense? { - if (license.isBlank()) return null - - val nameMatch = FuzzySearch.extractOne( - license.trim(), - nameList - ) - if (nameMatch.score > 90) { - // println("matched name ${nameMatch.score}% [$license] to [${nameMatch.string}]") - return nameMap[nameMatch.string] - } - - val identifierMatch = FuzzySearch.extractOne( - license.trim(), - identifierList - ) - if (identifierMatch.score > 90) { - // println("matched identifier ${identifierMatch.score}% [$license] to [${identifierMatch.string}]") - return identifierMap[identifierMatch.string] - } - - // println(" ? no match for [$license]") - // println(" closest name [${nameMatch.string}] ${nameMatch.score}%") - // println(" closest id [${identifierMatch.string}] ${identifierMatch.score}%") - return null - } - - private val identifierMap = SPDXLicense.values() - .map { it.csvName to it } - .toMap() - - private val nameMap = mapOf( - "BSD Zero Clause License" to SPDXLicense._0BSD, - "Attribution Assurance License" to SPDXLicense.AAL, - "Abstyles License" to SPDXLicense.ABSTYLES, - "Adobe Systems Incorporated Source Code License Agreement" to SPDXLicense.ADOBE_2006, - "Adobe Glyph List License" to SPDXLicense.ADOBE_GLYPH, - "Amazon Digital Services License" to SPDXLicense.ADSL, - "Academic Free License v1.1" to SPDXLicense.AFL_1_1, - "Academic Free License v1.2" to SPDXLicense.AFL_1_2, - "Academic Free License v2.0" to SPDXLicense.AFL_2_0, - "Academic Free License v2.1" to SPDXLicense.AFL_2_1, - "Academic Free License v3.0" to SPDXLicense.AFL_3_0, - "Afmparse License" to SPDXLicense.AFMPARSE, - "Affero General Public License v1.0 only" to SPDXLicense.AGPL_1_0_ONLY, - "Affero General Public License v1.0 or later" to SPDXLicense.AGPL_1_0_OR_LATER, - "GNU Affero General Public License v3.0 only" to SPDXLicense.AGPL_3_0_ONLY, - "GNU Affero General Public License v3.0 or later" to SPDXLicense.AGPL_3_0_OR_LATER, - "Aladdin Free Public License" to SPDXLicense.ALADDIN, - "AMD's plpa_map.c License" to SPDXLicense.AMDPLPA, - "Apple MIT License" to SPDXLicense.AML, - "Academy of Motion Picture Arts and Sciences BSD" to SPDXLicense.AMPAS, - "ANTLR Software Rights Notice" to SPDXLicense.ANTLR_PD, - "Apache License 1.0" to SPDXLicense.APACHE_1_0, - "Apache License 1.1" to SPDXLicense.APACHE_1_1, - "Apache License 2.0" to SPDXLicense.APACHE_2_0, - "The Apache License, Version 2.0" to SPDXLicense.APACHE_2_0, - "Adobe Postscript AFM License" to SPDXLicense.APAFML, - "Adaptive Public License 1.0" to SPDXLicense.APL_1_0, - "Apple Public Source License 1.0" to SPDXLicense.APSL_1_0, - "Apple Public Source License 1.1" to SPDXLicense.APSL_1_1, - "Apple Public Source License 1.2" to SPDXLicense.APSL_1_2, - "Apple Public Source License 2.0" to SPDXLicense.APSL_2_0, - "Artistic License 1.0" to SPDXLicense.ARTISTIC_1_0, - "Artistic License 1.0 w/clause 8" to SPDXLicense.ARTISTIC_1_0_CL8, - "Artistic License 1.0 (Perl)" to SPDXLicense.ARTISTIC_1_0_PERL, - "Artistic License 2.0" to SPDXLicense.ARTISTIC_2_0, - "Bahyph License" to SPDXLicense.BAHYPH, - "Barr License" to SPDXLicense.BARR, - "Beerware License" to SPDXLicense.BEERWARE, - "BitTorrent Open Source License v1.0" to SPDXLicense.BITTORRENT_1_0, - "BitTorrent Open Source License v1.1" to SPDXLicense.BITTORRENT_1_1, - "SQLite Blessing" to SPDXLicense.BLESSING, - "Blue Oak Model License 1.0.0" to SPDXLicense.BLUEOAK_1_0_0, - "Borceux license" to SPDXLicense.BORCEUX, - "BSD 1-Clause License" to SPDXLicense.BSD_1_CLAUSE, - "BSD 2-Clause \"Simplified\" License" to SPDXLicense.BSD_2_CLAUSE, - "BSD 2-Clause FreeBSD License" to SPDXLicense.BSD_2_CLAUSE_FREEBSD, - "BSD 2-Clause NetBSD License" to SPDXLicense.BSD_2_CLAUSE_NETBSD, - "BSD-2-Clause Plus Patent License" to SPDXLicense.BSD_2_CLAUSE_PATENT, - "BSD 3-Clause \"New\" or \"Revised\" License" to SPDXLicense.BSD_3_CLAUSE, - "BSD with attribution" to SPDXLicense.BSD_3_CLAUSE_ATTRIBUTION, - "BSD 3-Clause Clear License" to SPDXLicense.BSD_3_CLAUSE_CLEAR, - "Lawrence Berkeley National Labs BSD variant license" to SPDXLicense.BSD_3_CLAUSE_LBNL, - "BSD 3-Clause No Nuclear License" to SPDXLicense.BSD_3_CLAUSE_NO_NUCLEAR_LICENSE, - "BSD 3-Clause No Nuclear License 2014" to SPDXLicense.BSD_3_CLAUSE_NO_NUCLEAR_LICENSE_2014, - "BSD 3-Clause No Nuclear Warranty" to SPDXLicense.BSD_3_CLAUSE_NO_NUCLEAR_WARRANTY, - "BSD 3-Clause Open MPI variant" to SPDXLicense.BSD_3_CLAUSE_OPEN_MPI, - "BSD 4-Clause \"Original\" or \"Old\" License" to SPDXLicense.BSD_4_CLAUSE, - "BSD-4-Clause (University of California-Specific)" to SPDXLicense.BSD_4_CLAUSE_UC, - "BSD Protection License" to SPDXLicense.BSD_PROTECTION, - "BSD Source Code Attribution" to SPDXLicense.BSD_SOURCE_CODE, - "Boost Software License 1.0" to SPDXLicense.BSL_1_0, - "Bouncy Castle Licence" to SPDXLicense.BOUNCY_CASTLE, - "bzip2 and libbzip2 License v1.0.5" to SPDXLicense.BZIP2_1_0_5, - "bzip2 and libbzip2 License v1.0.6" to SPDXLicense.BZIP2_1_0_6, - "Caldera License" to SPDXLicense.CALDERA, - "Computer Associates Trusted Open Source License 1.1" to SPDXLicense.CATOSL_1_1, - "Creative Commons Attribution 1.0 Generic" to SPDXLicense.CC_BY_1_0, - "Creative Commons Attribution 2.0 Generic" to SPDXLicense.CC_BY_2_0, - "Creative Commons Attribution 2.5 Generic" to SPDXLicense.CC_BY_2_5, - "Creative Commons Attribution 3.0 Unported" to SPDXLicense.CC_BY_3_0, - "Creative Commons Attribution 4.0 International" to SPDXLicense.CC_BY_4_0, - "Creative Commons Attribution Non Commercial 1.0 Generic" to SPDXLicense.CC_BY_NC_1_0, - "Creative Commons Attribution Non Commercial 2.0 Generic" to SPDXLicense.CC_BY_NC_2_0, - "Creative Commons Attribution Non Commercial 2.5 Generic" to SPDXLicense.CC_BY_NC_2_5, - "Creative Commons Attribution Non Commercial 3.0 Unported" to SPDXLicense.CC_BY_NC_3_0, - "Creative Commons Attribution Non Commercial 4.0 International" to SPDXLicense.CC_BY_NC_4_0, - "Creative Commons Attribution Non Commercial No Derivatives 1.0 Generic" to SPDXLicense.CC_BY_NC_ND_1_0, - "Creative Commons Attribution Non Commercial No Derivatives 2.0 Generic" to SPDXLicense.CC_BY_NC_ND_2_0, - "Creative Commons Attribution Non Commercial No Derivatives 2.5 Generic" to SPDXLicense.CC_BY_NC_ND_2_5, - "Creative Commons Attribution Non Commercial No Derivatives 3.0 Unported" to SPDXLicense.CC_BY_NC_ND_3_0, - "Creative Commons Attribution Non Commercial No Derivatives 4.0 International" to SPDXLicense.CC_BY_NC_ND_4_0, - "Creative Commons Attribution Non Commercial Share Alike 1.0 Generic" to SPDXLicense.CC_BY_NC_SA_1_0, - "Creative Commons Attribution Non Commercial Share Alike 2.0 Generic" to SPDXLicense.CC_BY_NC_SA_2_0, - "Creative Commons Attribution Non Commercial Share Alike 2.5 Generic" to SPDXLicense.CC_BY_NC_SA_2_5, - "Creative Commons Attribution Non Commercial Share Alike 3.0 Unported" to SPDXLicense.CC_BY_NC_SA_3_0, - "Creative Commons Attribution Non Commercial Share Alike 4.0 International" to SPDXLicense.CC_BY_NC_SA_4_0, - "Creative Commons Attribution No Derivatives 1.0 Generic" to SPDXLicense.CC_BY_ND_1_0, - "Creative Commons Attribution No Derivatives 2.0 Generic" to SPDXLicense.CC_BY_ND_2_0, - "Creative Commons Attribution No Derivatives 2.5 Generic" to SPDXLicense.CC_BY_ND_2_5, - "Creative Commons Attribution No Derivatives 3.0 Unported" to SPDXLicense.CC_BY_ND_3_0, - "Creative Commons Attribution No Derivatives 4.0 International" to SPDXLicense.CC_BY_ND_4_0, - "Creative Commons Attribution Share Alike 1.0 Generic" to SPDXLicense.CC_BY_SA_1_0, - "Creative Commons Attribution Share Alike 2.0 Generic" to SPDXLicense.CC_BY_SA_2_0, - "Creative Commons Attribution Share Alike 2.5 Generic" to SPDXLicense.CC_BY_SA_2_5, - "Creative Commons Attribution Share Alike 3.0 Unported" to SPDXLicense.CC_BY_SA_3_0, - "Creative Commons Attribution Share Alike 4.0 International" to SPDXLicense.CC_BY_SA_4_0, - "Creative Commons Public Domain Dedication and Certification" to SPDXLicense.CC_PDDC, - "Creative Commons Zero v1.0 Universal" to SPDXLicense.CC0_1_0, - "Common Development and Distribution License 1.0" to SPDXLicense.CDDL_1_0, - "Common Development and Distribution License 1.1" to SPDXLicense.CDDL_1_1, - "Community Data License Agreement Permissive 1.0" to SPDXLicense.CDLA_PERMISSIVE_1_0, - "Community Data License Agreement Sharing 1.0" to SPDXLicense.CDLA_SHARING_1_0, - "CeCILL Free Software License Agreement v1.0" to SPDXLicense.CECILL_1_0, - "CeCILL Free Software License Agreement v1.1" to SPDXLicense.CECILL_1_1, - "CeCILL Free Software License Agreement v2.0" to SPDXLicense.CECILL_2_0, - "CeCILL Free Software License Agreement v2.1" to SPDXLicense.CECILL_2_1, - "CeCILL-B Free Software License Agreement" to SPDXLicense.CECILL_B, - "CeCILL-C Free Software License Agreement" to SPDXLicense.CECILL_C, - "CERN Open Hardware Licence v1.1" to SPDXLicense.CERN_OHL_1_1, - "CERN Open Hardware Licence v1.2" to SPDXLicense.CERN_OHL_1_2, - "Clarified Artistic License" to SPDXLicense.CLARTISTIC, - "CNRI Jython License" to SPDXLicense.CNRI_JYTHON, - "CNRI Python License" to SPDXLicense.CNRI_PYTHON, - "CNRI Python Open Source GPL Compatible License Agreement" to SPDXLicense.CNRI_PYTHON_GPL_COMPATIBLE, - "Condor Public License v1.1" to SPDXLicense.CONDOR_1_1, - "copyleft-next 0.3.0" to SPDXLicense.COPYLEFT_NEXT_0_3_0, - "copyleft-next 0.3.1" to SPDXLicense.COPYLEFT_NEXT_0_3_1, - "Common Public Attribution License 1.0" to SPDXLicense.CPAL_1_0, - "Common Public License 1.0" to SPDXLicense.CPL_1_0, - "Code Project Open License 1.02" to SPDXLicense.CPOL_1_02, - "Crossword License" to SPDXLicense.CROSSWORD, - "CrystalStacker License" to SPDXLicense.CRYSTALSTACKER, - "CUA Office Public License v1.0" to SPDXLicense.CUA_OPL_1_0, - "Cube License" to SPDXLicense.CUBE, - "curl License" to SPDXLicense.CURL, - "Deutsche Freie Software Lizenz" to SPDXLicense.D_FSL_1_0, - "diffmark license" to SPDXLicense.DIFFMARK, - "DOC License" to SPDXLicense.DOC, - "Dotseqn License" to SPDXLicense.DOTSEQN, - "DSDP License" to SPDXLicense.DSDP, - "dvipdfm License" to SPDXLicense.DVIPDFM, - "Educational Community License v1.0" to SPDXLicense.ECL_1_0, - "Educational Community License v2.0" to SPDXLicense.ECL_2_0, - "Eiffel Forum License v1.0" to SPDXLicense.EFL_1_0, - "Eiffel Forum License v2.0" to SPDXLicense.EFL_2_0, - "eGenix.com Public License 1.1.0" to SPDXLicense.EGENIX, - "Entessa Public License v1.0" to SPDXLicense.ENTESSA, - "Eclipse Public License 1.0" to SPDXLicense.EPL_1_0, - "Eclipse Public License 2.0" to SPDXLicense.EPL_2_0, - "Erlang Public License v1.1" to SPDXLicense.ERLPL_1_1, - "Etalab Open License 2.0" to SPDXLicense.ETALAB_2_0, - "EU DataGrid Software License" to SPDXLicense.EUDATAGRID, - "European Union Public License 1.0" to SPDXLicense.EUPL_1_0, - "European Union Public License 1.1" to SPDXLicense.EUPL_1_1, - "European Union Public License 1.2" to SPDXLicense.EUPL_1_2, - "Eurosym License" to SPDXLicense.EUROSYM, - "Fair License" to SPDXLicense.FAIR, - "Frameworx Open License 1.0" to SPDXLicense.FRAMEWORX_1_0, - "FreeImage Public License v1.0" to SPDXLicense.FREEIMAGE, - "FSF All Permissive License" to SPDXLicense.FSFAP, - "FSF Unlimited License" to SPDXLicense.FSFUL, - "FSF Unlimited License (with License Retention)" to SPDXLicense.FSFULLR, - "Freetype Project License" to SPDXLicense.FTL, - "GNU Free Documentation License v1.1 only" to SPDXLicense.GFDL_1_1_ONLY, - "GNU Free Documentation License v1.1 or later" to SPDXLicense.GFDL_1_1_OR_LATER, - "GNU Free Documentation License v1.2 only" to SPDXLicense.GFDL_1_2_ONLY, - "GNU Free Documentation License v1.2 or later" to SPDXLicense.GFDL_1_2_OR_LATER, - "GNU Free Documentation License v1.3 only" to SPDXLicense.GFDL_1_3_ONLY, - "GNU Free Documentation License v1.3 or later" to SPDXLicense.GFDL_1_3_OR_LATER, - "Giftware License" to SPDXLicense.GIFTWARE, - "GL2PS License" to SPDXLicense.GL2PS, - "3dfx Glide License" to SPDXLicense.GLIDE, - "Glulxe License" to SPDXLicense.GLULXE, - "gnuplot License" to SPDXLicense.GNUPLOT, - "GNU General Public License v1.0 only" to SPDXLicense.GPL_1_0_ONLY, - "GNU General Public License v1.0 or later" to SPDXLicense.GPL_1_0_OR_LATER, - "GNU General Public License v2.0 only" to SPDXLicense.GPL_2_0_ONLY, - "GNU General Public License v2.0 or later" to SPDXLicense.GPL_2_0_OR_LATER, - "GNU General Public License v3.0 only" to SPDXLicense.GPL_3_0_ONLY, - "GNU General Public License v3.0 or later" to SPDXLicense.GPL_3_0_OR_LATER, - "gSOAP Public License v1.3b" to SPDXLicense.GSOAP_1_3B, - "Haskell Language Report License" to SPDXLicense.HASKELLREPORT, - "Historical Permission Notice and Disclaimer" to SPDXLicense.HPND, - "Historical Permission Notice and Disclaimer - sell variant" to SPDXLicense.HPND_SELL_VARIANT, - "IBM PowerPC Initialization and Boot Software" to SPDXLicense.IBM_PIBS, - "ICU License" to SPDXLicense.ICU, - "Independent JPEG Group License" to SPDXLicense.IJG, - "ImageMagick License" to SPDXLicense.IMAGEMAGICK, - "iMatix Standard Function Library Agreement" to SPDXLicense.IMATIX, - "Imlib2 License" to SPDXLicense.IMLIB2, - "Info-ZIP License" to SPDXLicense.INFO_ZIP, - "Intel Open Source License" to SPDXLicense.INTEL, - "Intel ACPI Software License Agreement" to SPDXLicense.INTEL_ACPI, - "Interbase Public License v1.0" to SPDXLicense.INTERBASE_1_0, - "IPA Font License" to SPDXLicense.IPA, - "IBM Public License v1.0" to SPDXLicense.IPL_1_0, - "ISC License" to SPDXLicense.ISC, - "JasPer License" to SPDXLicense.JASPER_2_0, - "Japan Network Information Center License" to SPDXLicense.JPNIC, - "JSON License" to SPDXLicense.JSON, - "Licence Art Libre 1.2" to SPDXLicense.LAL_1_2, - "Licence Art Libre 1.3" to SPDXLicense.LAL_1_3, - "Latex2e License" to SPDXLicense.LATEX2E, - "Leptonica License" to SPDXLicense.LEPTONICA, - "GNU Library General Public License v2 only" to SPDXLicense.LGPL_2_0_ONLY, - "GNU Library General Public License v2 or later" to SPDXLicense.LGPL_2_0_OR_LATER, - "GNU Lesser General Public License v2.1 only" to SPDXLicense.LGPL_2_1_ONLY, - "GNU Lesser General Public License v2.1 or later" to SPDXLicense.LGPL_2_1_OR_LATER, - "GNU Lesser General Public License v3.0 only" to SPDXLicense.LGPL_3_0_ONLY, - "GNU Lesser General Public License v3.0 or later" to SPDXLicense.LGPL_3_0_OR_LATER, - "Lesser General Public License For Linguistic Resources" to SPDXLicense.LGPLLR, - "libpng License" to SPDXLicense.LIBPNG, - "PNG Reference Library version 2" to SPDXLicense.LIBPNG_2_0, - "libtiff License" to SPDXLicense.LIBTIFF, - "Licence Libre du Québec – Permissive version 1.1" to SPDXLicense.LILIQ_P_1_1, - "Licence Libre du Québec – Réciprocité version 1.1" to SPDXLicense.LILIQ_R_1_1, - "Licence Libre du Québec – Réciprocité forte version 1.1" to SPDXLicense.LILIQ_RPLUS_1_1, - "Linux Kernel Variant of OpenIB.org license" to SPDXLicense.LINUX_OPENIB, - "Lucent Public License Version 1.0" to SPDXLicense.LPL_1_0, - "Lucent Public License v1.02" to SPDXLicense.LPL_1_02, - "LaTeX Project Public License v1.0" to SPDXLicense.LPPL_1_0, - "LaTeX Project Public License v1.1" to SPDXLicense.LPPL_1_1, - "LaTeX Project Public License v1.2" to SPDXLicense.LPPL_1_2, - "LaTeX Project Public License v1.3a" to SPDXLicense.LPPL_1_3A, - "LaTeX Project Public License v1.3c" to SPDXLicense.LPPL_1_3C, - "MakeIndex License" to SPDXLicense.MAKEINDEX, - "The MirOS Licence" to SPDXLicense.MIROS, - "MIT" to SPDXLicense.MIT, - "MIT License" to SPDXLicense.MIT, - "MIT No Attribution" to SPDXLicense.MIT_0, - "Enlightenment License (e16)" to SPDXLicense.MIT_ADVERTISING, - "CMU License" to SPDXLicense.MIT_CMU, - "enna License" to SPDXLicense.MIT_ENNA, - "feh License" to SPDXLicense.MIT_FEH, - "MIT +no-false-attribs license" to SPDXLicense.MITNFA, - "Motosoto License" to SPDXLicense.MOTOSOTO, - "mpich2 License" to SPDXLicense.MPICH2, - "Mozilla Public License 1.0" to SPDXLicense.MPL_1_0, - "Mozilla Public License 1.1" to SPDXLicense.MPL_1_1, - "Mozilla Public License 2.0" to SPDXLicense.MPL_2_0, - "Mozilla Public License 2.0 (no copyleft exception)" to SPDXLicense.MPL_2_0_NO_COPYLEFT_EXCEPTION, - "Microsoft Public License" to SPDXLicense.MS_PL, - "Microsoft Reciprocal License" to SPDXLicense.MS_RL, - "Matrix Template Library License" to SPDXLicense.MTLL, - "Mulan Permissive Software License, Version 1" to SPDXLicense.MULANPSL_1_0, - "Multics License" to SPDXLicense.MULTICS, - "Mup License" to SPDXLicense.MUP, - "NASA Open Source Agreement 1.3" to SPDXLicense.NASA_1_3, - "Naumen Public License" to SPDXLicense.NAUMEN, - "Net Boolean Public License v1" to SPDXLicense.NBPL_1_0, - "University of Illinois/NCSA Open Source License" to SPDXLicense.NCSA, - "Net-SNMP License" to SPDXLicense.NET_SNMP, - "NetCDF license" to SPDXLicense.NETCDF, - "Newsletr License" to SPDXLicense.NEWSLETR, - "Nethack General Public License" to SPDXLicense.NGPL, - "Norwegian Licence for Open Government Data" to SPDXLicense.NLOD_1_0, - "No Limit Public License" to SPDXLicense.NLPL, - "Nokia Open Source License" to SPDXLicense.NOKIA, - "Netizen Open Source License" to SPDXLicense.NOSL, - "Noweb License" to SPDXLicense.NOWEB, - "Netscape Public License v1.0" to SPDXLicense.NPL_1_0, - "Netscape Public License v1.1" to SPDXLicense.NPL_1_1, - "Non-Profit Open Software License 3.0" to SPDXLicense.NPOSL_3_0, - "NRL License" to SPDXLicense.NRL, - "NTP License" to SPDXLicense.NTP, - "Open CASCADE Technology Public License" to SPDXLicense.OCCT_PL, - "OCLC Research Public License 2.0" to SPDXLicense.OCLC_2_0, - "ODC Open Database License v1.0" to SPDXLicense.ODBL_1_0, - "Open Data Commons Attribution License v1.0" to SPDXLicense.ODC_BY_1_0, - "SIL Open Font License 1.0" to SPDXLicense.OFL_1_0, - "SIL Open Font License 1.1" to SPDXLicense.OFL_1_1, - "Open Government Licence - Canada" to SPDXLicense.OGL_CANADA_2_0, - "Open Government Licence v1.0" to SPDXLicense.OGL_UK_1_0, - "Open Government Licence v2.0" to SPDXLicense.OGL_UK_2_0, - "Open Government Licence v3.0" to SPDXLicense.OGL_UK_3_0, - "Open Group Test Suite License" to SPDXLicense.OGTSL, - "Open LDAP Public License v1.1" to SPDXLicense.OLDAP_1_1, - "Open LDAP Public License v1.2" to SPDXLicense.OLDAP_1_2, - "Open LDAP Public License v1.3" to SPDXLicense.OLDAP_1_3, - "Open LDAP Public License v1.4" to SPDXLicense.OLDAP_1_4, - "Open LDAP Public License v2.0 (or possibly 2.0A and 2.0B)" to SPDXLicense.OLDAP_2_0, - "Open LDAP Public License v2.0.1" to SPDXLicense.OLDAP_2_0_1, - "Open LDAP Public License v2.1" to SPDXLicense.OLDAP_2_1, - "Open LDAP Public License v2.2" to SPDXLicense.OLDAP_2_2, - "Open LDAP Public License v2.2.1" to SPDXLicense.OLDAP_2_2_1, - "Open LDAP Public License 2.2.2" to SPDXLicense.OLDAP_2_2_2, - "Open LDAP Public License v2.3" to SPDXLicense.OLDAP_2_3, - "Open LDAP Public License v2.4" to SPDXLicense.OLDAP_2_4, - "Open LDAP Public License v2.5" to SPDXLicense.OLDAP_2_5, - "Open LDAP Public License v2.6" to SPDXLicense.OLDAP_2_6, - "Open LDAP Public License v2.7" to SPDXLicense.OLDAP_2_7, - "Open LDAP Public License v2.8" to SPDXLicense.OLDAP_2_8, - "Open Market License" to SPDXLicense.OML, - "OpenSSL License" to SPDXLicense.OPENSSL, - "Open Public License v1.0" to SPDXLicense.OPL_1_0, - "OSET Public License version 2.1" to SPDXLicense.OSET_PL_2_1, - "Open Software License 1.0" to SPDXLicense.OSL_1_0, - "Open Software License 1.1" to SPDXLicense.OSL_1_1, - "Open Software License 2.0" to SPDXLicense.OSL_2_0, - "Open Software License 2.1" to SPDXLicense.OSL_2_1, - "Open Software License 3.0" to SPDXLicense.OSL_3_0, - "The Parity Public License 6.0.0" to SPDXLicense.PARITY_6_0_0, - "ODC Public Domain Dedication & License 1.0" to SPDXLicense.PDDL_1_0, - "PHP License v3.0" to SPDXLicense.PHP_3_0, - "PHP License v3.01" to SPDXLicense.PHP_3_01, - "Plexus Classworlds License" to SPDXLicense.PLEXUS, - "PostgreSQL License" to SPDXLicense.POSTGRESQL, - "psfrag License" to SPDXLicense.PSFRAG, - "psutils License" to SPDXLicense.PSUTILS, - "Public Domain" to SPDXLicense.PUBLIC_DOMAIN, - "Python License 2.0" to SPDXLicense.PYTHON_2_0, - "Qhull License" to SPDXLicense.QHULL, - "Q Public License 1.0" to SPDXLicense.QPL_1_0, - "Rdisc License" to SPDXLicense.RDISC, - "Red Hat eCos Public License v1.1" to SPDXLicense.RHECOS_1_1, - "Reciprocal Public License 1.1" to SPDXLicense.RPL_1_1, - "Reciprocal Public License 1.5" to SPDXLicense.RPL_1_5, - "RealNetworks Public Source License v1.0" to SPDXLicense.RPSL_1_0, - "RSA Message-Digest License" to SPDXLicense.RSA_MD, - "Ricoh Source Code Public License" to SPDXLicense.RSCPL, - "Ruby License" to SPDXLicense.RUBY, - "Sax Public Domain Notice" to SPDXLicense.SAX_PD, - "Saxpath License" to SPDXLicense.SAXPATH, - "SCEA Shared Source License" to SPDXLicense.SCEA, - "Sendmail License" to SPDXLicense.SENDMAIL, - "Sendmail License 8.23" to SPDXLicense.SENDMAIL_8_23, - "SGI Free Software License B v1.0" to SPDXLicense.SGI_B_1_0, - "SGI Free Software License B v1.1" to SPDXLicense.SGI_B_1_1, - "SGI Free Software License B v2.0" to SPDXLicense.SGI_B_2_0, - "Solderpad Hardware License v0.5" to SPDXLicense.SHL_0_5, - "Solderpad Hardware License, Version 0.51" to SPDXLicense.SHL_0_51, - "Simple Public License 2.0" to SPDXLicense.SIMPL_2_0, - "Sun Industry Standards Source License v1.1" to SPDXLicense.SISSL, - "Sun Industry Standards Source License v1.2" to SPDXLicense.SISSL_1_2, - "Sleepycat License" to SPDXLicense.SLEEPYCAT, - "Standard ML of New Jersey License" to SPDXLicense.SMLNJ, - "Secure Messaging Protocol Public License" to SPDXLicense.SMPPL, - "SNIA Public License 1.1" to SPDXLicense.SNIA, - "Spencer License 86" to SPDXLicense.SPENCER_86, - "Spencer License 94" to SPDXLicense.SPENCER_94, - "Spencer License 99" to SPDXLicense.SPENCER_99, - "Sun Public License v1.0" to SPDXLicense.SPL_1_0, - "SSH OpenSSH license" to SPDXLicense.SSH_OPENSSH, - "SSH short notice" to SPDXLicense.SSH_SHORT, - "Server Side Public License, v 1" to SPDXLicense.SSPL_1_0, - "SugarCRM Public License v1.1.3" to SPDXLicense.SUGARCRM_1_1_3, - "Scheme Widget Library (SWL) Software License Agreement" to SPDXLicense.SWL, - "TAPR Open Hardware License v1.0" to SPDXLicense.TAPR_OHL_1_0, - "TCL/TK License" to SPDXLicense.TCL, - "TCP Wrappers License" to SPDXLicense.TCP_WRAPPERS, - "TMate Open Source License" to SPDXLicense.TMATE, - "TORQUE v2.5+ Software License v1.1" to SPDXLicense.TORQUE_1_1, - "Trusster Open Source License" to SPDXLicense.TOSL, - "Technische Universitaet Berlin License 1.0" to SPDXLicense.TU_BERLIN_1_0, - "Technische Universitaet Berlin License 2.0" to SPDXLicense.TU_BERLIN_2_0, - "Upstream Compatibility License v1.0" to SPDXLicense.UCL_1_0, - "Unicode License Agreement - Data Files and Software (2015)" to SPDXLicense.UNICODE_DFS_2015, - "Unicode License Agreement - Data Files and Software (2016)" to SPDXLicense.UNICODE_DFS_2016, - "Unicode Terms of Use" to SPDXLicense.UNICODE_TOU, - "The Unlicense" to SPDXLicense.UNLICENSE, - "Universal Permissive License v1.0" to SPDXLicense.UPL_1_0, - "Vim License" to SPDXLicense.VIM, - "VOSTROM Public License for Open Source" to SPDXLicense.VOSTROM, - "Vovida Software License v1.0" to SPDXLicense.VSL_1_0, - "W3C Software Notice and License (2002-12-31)" to SPDXLicense.W3C, - "W3C Software Notice and License (1998-07-20)" to SPDXLicense.W3C_19980720, - "W3C Software Notice and Document License (2015-05-13)" to SPDXLicense.W3C_20150513, - "Sybase Open Watcom Public License 1.0" to SPDXLicense.WATCOM_1_0, - "Wsuipa License" to SPDXLicense.WSUIPA, - "Do What The F*ck You Want To Public License" to SPDXLicense.WTFPL, - "X11 License" to SPDXLicense.X11, - "Xerox License" to SPDXLicense.XEROX, - "XFree86 License 1.1" to SPDXLicense.XFREE86_1_1, - "xinetd License" to SPDXLicense.XINETD, - "X.Net License" to SPDXLicense.XNET, - "XPP License" to SPDXLicense.XPP, - "XSkat License" to SPDXLicense.XSKAT, - "Yahoo! Public License v1.0" to SPDXLicense.YPL_1_0, - "Yahoo! Public License v1.1" to SPDXLicense.YPL_1_1, - "Zed License" to SPDXLicense.ZED, - "Zend License v2.0" to SPDXLicense.ZEND_2_0, - "Zimbra Public License v1.3" to SPDXLicense.ZIMBRA_1_3, - "Zimbra Public License v1.4" to SPDXLicense.ZIMBRA_1_4, - "zlib License" to SPDXLicense.ZLIB, - "zlib/libpng License with Acknowledgement" to SPDXLicense.ZLIB_ACKNOWLEDGEMENT, - "Zope Public License 1.1" to SPDXLicense.ZPL_1_1, - "Zope Public License 2.0" to SPDXLicense.ZPL_2_0, - "Zope Public License 2.1" to SPDXLicense.ZPL_2_1 - ) - - private val nameList = nameMap.keys - private val identifierList = nameMap.values.map { it.csvName } -} diff --git a/buildSrc/src/main/kotlin/com/datadog/gradle/plugin/checklicenses/SPDXLicense.kt b/buildSrc/src/main/kotlin/com/datadog/gradle/plugin/checklicenses/SPDXLicense.kt deleted file mode 100644 index e624d9fe29..0000000000 --- a/buildSrc/src/main/kotlin/com/datadog/gradle/plugin/checklicenses/SPDXLicense.kt +++ /dev/null @@ -1,387 +0,0 @@ -/* - * 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.checklicenses - -@Suppress("EnumNaming") -enum class SPDXLicense(val csvName: String) { - _0BSD("0BSD"), - AAL("AAL"), - ABSTYLES("Abstyles"), - ADOBE_2006("Adobe-2006"), - ADOBE_GLYPH("Adobe-Glyph"), - ADSL("ADSL"), - AFL_1_1("AFL-1.1"), - AFL_1_2("AFL-1.2"), - AFL_2_0("AFL-2.0"), - AFL_2_1("AFL-2.1"), - AFL_3_0("AFL-3.0"), - AFMPARSE("Afmparse"), - AGPL_1_0_ONLY("AGPL-1.0-only"), - AGPL_1_0_OR_LATER("AGPL-1.0-or-later"), - AGPL_3_0_ONLY("AGPL-3.0-only"), - AGPL_3_0_OR_LATER("AGPL-3.0-or-later"), - ALADDIN("Aladdin"), - AMDPLPA("AMDPLPA"), - AML("AML"), - AMPAS("AMPAS"), - ANTLR_PD("ANTLR-PD"), - APACHE_1_0("Apache-1.0"), - APACHE_1_1("Apache-1.1"), - APACHE_2_0("Apache-2.0"), - APAFML("APAFML"), - APL_1_0("APL-1.0"), - APSL_1_0("APSL-1.0"), - APSL_1_1("APSL-1.1"), - APSL_1_2("APSL-1.2"), - APSL_2_0("APSL-2.0"), - ARTISTIC_1_0("Artistic-1.0"), - ARTISTIC_1_0_CL8("Artistic-1.0-cl8"), - ARTISTIC_1_0_PERL("Artistic-1.0-Perl"), - ARTISTIC_2_0("Artistic-2.0"), - BAHYPH("Bahyph"), - BARR("Barr"), - BEERWARE("Beerware"), - BITTORRENT_1_0("BitTorrent-1.0"), - BITTORRENT_1_1("BitTorrent-1.1"), - BLESSING("blessing"), - BLUEOAK_1_0_0("BlueOak-1.0.0"), - BORCEUX("Borceux"), - BSD_1_CLAUSE("BSD-1-Clause"), - BSD_2_CLAUSE("BSD-2-Clause"), - BSD_2_CLAUSE_FREEBSD("BSD-2-Clause-FreeBSD"), - BSD_2_CLAUSE_NETBSD("BSD-2-Clause-NetBSD"), - BSD_2_CLAUSE_PATENT("BSD-2-Clause-Patent"), - BSD_3_CLAUSE("BSD-3-Clause"), - BSD_3_CLAUSE_ATTRIBUTION("BSD-3-Clause-Attribution"), - BSD_3_CLAUSE_CLEAR("BSD-3-Clause-Clear"), - BSD_3_CLAUSE_LBNL("BSD-3-Clause-LBNL"), - BSD_3_CLAUSE_NO_NUCLEAR_LICENSE("BSD-3-Clause-No-Nuclear-License"), - BSD_3_CLAUSE_NO_NUCLEAR_LICENSE_2014("BSD-3-Clause-No-Nuclear-License-2014"), - BSD_3_CLAUSE_NO_NUCLEAR_WARRANTY("BSD-3-Clause-No-Nuclear-Warranty"), - BSD_3_CLAUSE_OPEN_MPI("BSD-3-Clause-Open-MPI"), - BSD_4_CLAUSE("BSD-4-Clause"), - BSD_4_CLAUSE_UC("BSD-4-Clause-UC"), - BSD_PROTECTION("BSD-Protection"), - BSD_SOURCE_CODE("BSD-Source-Code"), - BSL_1_0("BSL-1.0"), - BOUNCY_CASTLE("BouncyCastle-License"), - BZIP2_1_0_5("bzip2-1.0.5"), - BZIP2_1_0_6("bzip2-1.0.6"), - CALDERA("Caldera"), - CATOSL_1_1("CATOSL-1.1"), - CC_BY_1_0("CC-BY-1.0"), - CC_BY_2_0("CC-BY-2.0"), - CC_BY_2_5("CC-BY-2.5"), - CC_BY_3_0("CC-BY-3.0"), - CC_BY_4_0("CC-BY-4.0"), - CC_BY_NC_1_0("CC-BY-NC-1.0"), - CC_BY_NC_2_0("CC-BY-NC-2.0"), - CC_BY_NC_2_5("CC-BY-NC-2.5"), - CC_BY_NC_3_0("CC-BY-NC-3.0"), - CC_BY_NC_4_0("CC-BY-NC-4.0"), - CC_BY_NC_ND_1_0("CC-BY-NC-ND-1.0"), - CC_BY_NC_ND_2_0("CC-BY-NC-ND-2.0"), - CC_BY_NC_ND_2_5("CC-BY-NC-ND-2.5"), - CC_BY_NC_ND_3_0("CC-BY-NC-ND-3.0"), - CC_BY_NC_ND_4_0("CC-BY-NC-ND-4.0"), - CC_BY_NC_SA_1_0("CC-BY-NC-SA-1.0"), - CC_BY_NC_SA_2_0("CC-BY-NC-SA-2.0"), - CC_BY_NC_SA_2_5("CC-BY-NC-SA-2.5"), - CC_BY_NC_SA_3_0("CC-BY-NC-SA-3.0"), - CC_BY_NC_SA_4_0("CC-BY-NC-SA-4.0"), - CC_BY_ND_1_0("CC-BY-ND-1.0"), - CC_BY_ND_2_0("CC-BY-ND-2.0"), - CC_BY_ND_2_5("CC-BY-ND-2.5"), - CC_BY_ND_3_0("CC-BY-ND-3.0"), - CC_BY_ND_4_0("CC-BY-ND-4.0"), - CC_BY_SA_1_0("CC-BY-SA-1.0"), - CC_BY_SA_2_0("CC-BY-SA-2.0"), - CC_BY_SA_2_5("CC-BY-SA-2.5"), - CC_BY_SA_3_0("CC-BY-SA-3.0"), - CC_BY_SA_4_0("CC-BY-SA-4.0"), - CC_PDDC("CC-PDDC"), - CC0_1_0("CC0-1.0"), - CDDL_1_0("CDDL-1.0"), - CDDL_1_1("CDDL-1.1"), - CDLA_PERMISSIVE_1_0("CDLA-Permissive-1.0"), - CDLA_SHARING_1_0("CDLA-Sharing-1.0"), - CECILL_1_0("CECILL-1.0"), - CECILL_1_1("CECILL-1.1"), - CECILL_2_0("CECILL-2.0"), - CECILL_2_1("CECILL-2.1"), - CECILL_B("CECILL-B"), - CECILL_C("CECILL-C"), - CERN_OHL_1_1("CERN-OHL-1.1"), - CERN_OHL_1_2("CERN-OHL-1.2"), - CLARTISTIC("ClArtistic"), - CNRI_JYTHON("CNRI-Jython"), - CNRI_PYTHON("CNRI-Python"), - CNRI_PYTHON_GPL_COMPATIBLE("CNRI-Python-GPL-Compatible"), - CONDOR_1_1("Condor-1.1"), - COPYLEFT_NEXT_0_3_0("copyleft-next-0.3.0"), - COPYLEFT_NEXT_0_3_1("copyleft-next-0.3.1"), - CPAL_1_0("CPAL-1.0"), - CPL_1_0("CPL-1.0"), - CPOL_1_02("CPOL-1.02"), - CROSSWORD("Crossword"), - CRYSTALSTACKER("CrystalStacker"), - CUA_OPL_1_0("CUA-OPL-1.0"), - CUBE("Cube"), - CURL("curl"), - D_FSL_1_0("D-FSL-1.0"), - DIFFMARK("diffmark"), - DOC("DOC"), - DOTSEQN("Dotseqn"), - DSDP("DSDP"), - DVIPDFM("dvipdfm"), - ECL_1_0("ECL-1.0"), - ECL_2_0("ECL-2.0"), - EFL_1_0("EFL-1.0"), - EFL_2_0("EFL-2.0"), - EGENIX("eGenix"), - ENTESSA("Entessa"), - EPL_1_0("EPL-1.0"), - EPL_2_0("EPL-2.0"), - ERLPL_1_1("ErlPL-1.1"), - ETALAB_2_0("etalab-2.0"), - EUDATAGRID("EUDatagrid"), - EUPL_1_0("EUPL-1.0"), - EUPL_1_1("EUPL-1.1"), - EUPL_1_2("EUPL-1.2"), - EUROSYM("Eurosym"), - FAIR("Fair"), - FRAMEWORX_1_0("Frameworx-1.0"), - FREEIMAGE("FreeImage"), - FSFAP("FSFAP"), - FSFUL("FSFUL"), - FSFULLR("FSFULLR"), - FTL("FTL"), - GFDL_1_1_ONLY("GFDL-1.1-only"), - GFDL_1_1_OR_LATER("GFDL-1.1-or-later"), - GFDL_1_2_ONLY("GFDL-1.2-only"), - GFDL_1_2_OR_LATER("GFDL-1.2-or-later"), - GFDL_1_3_ONLY("GFDL-1.3-only"), - GFDL_1_3_OR_LATER("GFDL-1.3-or-later"), - GIFTWARE("Giftware"), - GL2PS("GL2PS"), - GLIDE("Glide"), - GLULXE("Glulxe"), - GNUPLOT("gnuplot"), - GPL_1_0_ONLY("GPL-1.0-only"), - GPL_1_0_OR_LATER("GPL-1.0-or-later"), - GPL_2_0_ONLY("GPL-2.0-only"), - GPL_2_0_OR_LATER("GPL-2.0-or-later"), - GPL_3_0_ONLY("GPL-3.0-only"), - GPL_3_0_OR_LATER("GPL-3.0-or-later"), - GSOAP_1_3B("gSOAP-1.3b"), - HASKELLREPORT("HaskellReport"), - HPND("HPND"), - HPND_SELL_VARIANT("HPND-sell-variant"), - IBM_PIBS("IBM-pibs"), - ICU("ICU"), - IJG("IJG"), - IMAGEMAGICK("ImageMagick"), - IMATIX("iMatix"), - IMLIB2("Imlib2"), - INFO_ZIP("Info-ZIP"), - INTEL("Intel"), - INTEL_ACPI("Intel-ACPI"), - INTERBASE_1_0("Interbase-1.0"), - IPA("IPA"), - IPL_1_0("IPL-1.0"), - ISC("ISC"), - JASPER_2_0("JasPer-2.0"), - JPNIC("JPNIC"), - JSON("JSON"), - LAL_1_2("LAL-1.2"), - LAL_1_3("LAL-1.3"), - LATEX2E("Latex2e"), - LEPTONICA("Leptonica"), - LGPL_2_0_ONLY("LGPL-2.0-only"), - LGPL_2_0_OR_LATER("LGPL-2.0-or-later"), - LGPL_2_1_ONLY("LGPL-2.1-only"), - LGPL_2_1_OR_LATER("LGPL-2.1-or-later"), - LGPL_3_0_ONLY("LGPL-3.0-only"), - LGPL_3_0_OR_LATER("LGPL-3.0-or-later"), - LGPLLR("LGPLLR"), - LIBPNG("Libpng"), - LIBPNG_2_0("libpng-2.0"), - LIBTIFF("libtiff"), - LILIQ_P_1_1("LiLiQ-P-1.1"), - LILIQ_R_1_1("LiLiQ-R-1.1"), - LILIQ_RPLUS_1_1("LiLiQ-Rplus-1.1"), - LINUX_OPENIB("Linux-OpenIB"), - LPL_1_0("LPL-1.0"), - LPL_1_02("LPL-1.02"), - LPPL_1_0("LPPL-1.0"), - LPPL_1_1("LPPL-1.1"), - LPPL_1_2("LPPL-1.2"), - LPPL_1_3A("LPPL-1.3a"), - LPPL_1_3C("LPPL-1.3c"), - MAKEINDEX("MakeIndex"), - MIROS("MirOS"), - MIT("MIT"), - MIT_0("MIT-0"), - MIT_ADVERTISING("MIT-advertising"), - MIT_CMU("MIT-CMU"), - MIT_ENNA("MIT-enna"), - MIT_FEH("MIT-feh"), - MITNFA("MITNFA"), - MOTOSOTO("Motosoto"), - MPICH2("mpich2"), - MPL_1_0("MPL-1.0"), - MPL_1_1("MPL-1.1"), - MPL_2_0("MPL-2.0"), - MPL_2_0_NO_COPYLEFT_EXCEPTION("MPL-2.0-no-copyleft-exception"), - MS_PL("MS-PL"), - MS_RL("MS-RL"), - MTLL("MTLL"), - MULANPSL_1_0("MulanPSL-1.0"), - MULTICS("Multics"), - MUP("Mup"), - NASA_1_3("NASA-1.3"), - NAUMEN("Naumen"), - NBPL_1_0("NBPL-1.0"), - NCSA("NCSA"), - NET_SNMP("Net-SNMP"), - NETCDF("NetCDF"), - NEWSLETR("Newsletr"), - NGPL("NGPL"), - NLOD_1_0("NLOD-1.0"), - NLPL("NLPL"), - NOKIA("Nokia"), - NOSL("NOSL"), - NOWEB("Noweb"), - NPL_1_0("NPL-1.0"), - NPL_1_1("NPL-1.1"), - NPOSL_3_0("NPOSL-3.0"), - NRL("NRL"), - NTP("NTP"), - OCCT_PL("OCCT-PL"), - OCLC_2_0("OCLC-2.0"), - ODBL_1_0("ODbL-1.0"), - ODC_BY_1_0("ODC-By-1.0"), - OFL_1_0("OFL-1.0"), - OFL_1_1("OFL-1.1"), - OGL_CANADA_2_0("OGL-Canada-2.0"), - OGL_UK_1_0("OGL-UK-1.0"), - OGL_UK_2_0("OGL-UK-2.0"), - OGL_UK_3_0("OGL-UK-3.0"), - OGTSL("OGTSL"), - OLDAP_1_1("OLDAP-1.1"), - OLDAP_1_2("OLDAP-1.2"), - OLDAP_1_3("OLDAP-1.3"), - OLDAP_1_4("OLDAP-1.4"), - OLDAP_2_0("OLDAP-2.0"), - OLDAP_2_0_1("OLDAP-2.0.1"), - OLDAP_2_1("OLDAP-2.1"), - OLDAP_2_2("OLDAP-2.2"), - OLDAP_2_2_1("OLDAP-2.2.1"), - OLDAP_2_2_2("OLDAP-2.2.2"), - OLDAP_2_3("OLDAP-2.3"), - OLDAP_2_4("OLDAP-2.4"), - OLDAP_2_5("OLDAP-2.5"), - OLDAP_2_6("OLDAP-2.6"), - OLDAP_2_7("OLDAP-2.7"), - OLDAP_2_8("OLDAP-2.8"), - OML("OML"), - OPENSSL("OpenSSL"), - OPL_1_0("OPL-1.0"), - OSET_PL_2_1("OSET-PL-2.1"), - OSL_1_0("OSL-1.0"), - OSL_1_1("OSL-1.1"), - OSL_2_0("OSL-2.0"), - OSL_2_1("OSL-2.1"), - OSL_3_0("OSL-3.0"), - PARITY_6_0_0("Parity-6.0.0"), - PDDL_1_0("PDDL-1.0"), - PHP_3_0("PHP-3.0"), - PHP_3_01("PHP-3.01"), - PLEXUS("Plexus"), - POSTGRESQL("PostgreSQL"), - PSFRAG("psfrag"), - PSUTILS("psutils"), - PUBLIC_DOMAIN("Public Domain"), - PYTHON_2_0("Python-2.0"), - QHULL("Qhull"), - QPL_1_0("QPL-1.0"), - RDISC("Rdisc"), - RHECOS_1_1("RHeCos-1.1"), - RPL_1_1("RPL-1.1"), - RPL_1_5("RPL-1.5"), - RPSL_1_0("RPSL-1.0"), - RSA_MD("RSA-MD"), - RSCPL("RSCPL"), - RUBY("Ruby"), - SAX_PD("SAX-PD"), - SAXPATH("Saxpath"), - SCEA("SCEA"), - SENDMAIL("Sendmail"), - SENDMAIL_8_23("Sendmail-8.23"), - SGI_B_1_0("SGI-B-1.0"), - SGI_B_1_1("SGI-B-1.1"), - SGI_B_2_0("SGI-B-2.0"), - SHL_0_5("SHL-0.5"), - SHL_0_51("SHL-0.51"), - SIMPL_2_0("SimPL-2.0"), - SISSL("SISSL"), - SISSL_1_2("SISSL-1.2"), - SLEEPYCAT("Sleepycat"), - SMLNJ("SMLNJ"), - SMPPL("SMPPL"), - SNIA("SNIA"), - SPENCER_86("Spencer-86"), - SPENCER_94("Spencer-94"), - SPENCER_99("Spencer-99"), - SPL_1_0("SPL-1.0"), - SSH_OPENSSH("SSH-OpenSSH"), - SSH_SHORT("SSH-short"), - SSPL_1_0("SSPL-1.0"), - SUGARCRM_1_1_3("SugarCRM-1.1.3"), - SWL("SWL"), - TAPR_OHL_1_0("TAPR-OHL-1.0"), - TCL("TCL"), - TCP_WRAPPERS("TCP-wrappers"), - TMATE("TMate"), - TORQUE_1_1("TORQUE-1.1"), - TOSL("TOSL"), - TU_BERLIN_1_0("TU-Berlin-1.0"), - TU_BERLIN_2_0("TU-Berlin-2.0"), - UCL_1_0("UCL-1.0"), - UNICODE_DFS_2015("Unicode-DFS-2015"), - UNICODE_DFS_2016("Unicode-DFS-2016"), - UNICODE_TOU("Unicode-TOU"), - UNLICENSE("Unlicense"), - UPL_1_0("UPL-1.0"), - VIM("Vim"), - VOSTROM("VOSTROM"), - VSL_1_0("VSL-1.0"), - W3C("W3C"), - W3C_19980720("W3C-19980720"), - W3C_20150513("W3C-20150513"), - WATCOM_1_0("Watcom-1.0"), - WSUIPA("Wsuipa"), - WTFPL("WTFPL"), - X11("X11"), - XEROX("Xerox"), - XFREE86_1_1("XFree86-1.1"), - XINETD("xinetd"), - XNET("Xnet"), - XPP("xpp"), - XSKAT("XSkat"), - YPL_1_0("YPL-1.0"), - YPL_1_1("YPL-1.1"), - ZED("Zed"), - ZEND_2_0("Zend-2.0"), - ZIMBRA_1_3("Zimbra-1.3"), - ZIMBRA_1_4("Zimbra-1.4"), - ZLIB("Zlib"), - ZLIB_ACKNOWLEDGEMENT("zlib-acknowledgement"), - ZPL_1_1("ZPL-1.1"), - ZPL_2_0("ZPL-2.0"), - ZPL_2_1("ZPL-2.1") -} diff --git a/buildSrc/src/main/kotlin/com/datadog/gradle/plugin/checklicenses/ThirdPartyDependency.kt b/buildSrc/src/main/kotlin/com/datadog/gradle/plugin/checklicenses/ThirdPartyDependency.kt deleted file mode 100644 index 7ea8052db3..0000000000 --- a/buildSrc/src/main/kotlin/com/datadog/gradle/plugin/checklicenses/ThirdPartyDependency.kt +++ /dev/null @@ -1,25 +0,0 @@ -/* - * 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.checklicenses - -data class ThirdPartyDependency( - val component: Component, - val origin: String, - val license: License, - val copyright: String -) { - enum class Component(val csvName: String) { - IMPORT("import"), - IMPORT_TEST("import(test)"), - BUILD("build"), - UNKNOWN("__") - } - - override fun toString(): String { - return "${component.csvName},$origin,$license,__" - } -} diff --git a/buildSrc/src/main/kotlin/com/datadog/gradle/plugin/checklicenses/ThirdPartyLicensesExtension.kt b/buildSrc/src/main/kotlin/com/datadog/gradle/plugin/checklicenses/ThirdPartyLicensesExtension.kt deleted file mode 100644 index 79e33900ba..0000000000 --- a/buildSrc/src/main/kotlin/com/datadog/gradle/plugin/checklicenses/ThirdPartyLicensesExtension.kt +++ /dev/null @@ -1,20 +0,0 @@ -/* - * 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.checklicenses - -import java.io.File - -open class ThirdPartyLicensesExtension( - var csvFile: File = File(DEFAULT_TP_LICENCE_FILENAME), - var listDependencyOnce: Boolean = true, - var transitiveDependencies: Boolean = false, - var checkObsoleteDependencies: Boolean = false -) { - companion object { - const val DEFAULT_TP_LICENCE_FILENAME = "LICENSE-3rdparty.csv" - } -} diff --git a/buildSrc/src/main/kotlin/com/datadog/gradle/plugin/checklicenses/ThirdPartyLicensesPlugin.kt b/buildSrc/src/main/kotlin/com/datadog/gradle/plugin/checklicenses/ThirdPartyLicensesPlugin.kt deleted file mode 100644 index 87ba3c7968..0000000000 --- a/buildSrc/src/main/kotlin/com/datadog/gradle/plugin/checklicenses/ThirdPartyLicensesPlugin.kt +++ /dev/null @@ -1,43 +0,0 @@ -/* - * 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.checklicenses - -import com.android.build.gradle.internal.tasks.factory.dependsOn -import org.gradle.api.Plugin -import org.gradle.api.Project -import java.io.File - -class ThirdPartyLicensesPlugin : Plugin { - - override fun apply(target: Project) { - val extension = target.extensions - .create(EXT_NAME, ThirdPartyLicensesExtension::class.java) - extension.csvFile = File( - target.rootDir, - ThirdPartyLicensesExtension.DEFAULT_TP_LICENCE_FILENAME - ) - - target.tasks - .register(TASK_UPDATE_NAME, UpdateThirdPartyLicensesTask::class.java) { - this.extension = extension - } - - target.tasks - .register(TASK_CHECK_NAME, CheckThirdPartyLicensesTask::class.java) { - this.extension = extension - } - - target.tasks.named("check").dependsOn(TASK_CHECK_NAME) - } - - companion object { - const val EXT_NAME = "thirdPartyLicences" - - const val TASK_UPDATE_NAME = "updateThirdPartyLicences" - const val TASK_CHECK_NAME = "checkThirdPartyLicences" - } -} diff --git a/buildSrc/src/main/kotlin/com/datadog/gradle/plugin/checklicenses/UpdateThirdPartyLicensesTask.kt b/buildSrc/src/main/kotlin/com/datadog/gradle/plugin/checklicenses/UpdateThirdPartyLicensesTask.kt deleted file mode 100644 index a0fbbab566..0000000000 --- a/buildSrc/src/main/kotlin/com/datadog/gradle/plugin/checklicenses/UpdateThirdPartyLicensesTask.kt +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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.checklicenses - -import org.gradle.api.DefaultTask -import org.gradle.api.tasks.Input -import org.gradle.api.tasks.TaskAction - -open class UpdateThirdPartyLicensesTask : DefaultTask() { - - @get: Input - internal var extension: ThirdPartyLicensesExtension = - ThirdPartyLicensesExtension() - private val provider: DependenciesLicenseProvider = - DependenciesLicenseProvider() - - init { - group = "datadog" - description = "Lists Third Party Licences in a csv file" - } - - // region Task - - @TaskAction - fun applyTask() { - val dependencies = provider.getThirdPartyDependencies( - project, - extension.transitiveDependencies, - extension.listDependencyOnce - ) - - extension.csvFile.printWriter().use { writer -> - writer.println("Component,Origin,License,Copyright") - dependencies - .forEach { - writer.println(it.toString()) - } - } - } - - // endregion -} diff --git a/dd-sdk-android-core/build.gradle.kts b/dd-sdk-android-core/build.gradle.kts index 4add02fda1..51b910d596 100644 --- a/dd-sdk-android-core/build.gradle.kts +++ b/dd-sdk-android-core/build.gradle.kts @@ -34,7 +34,7 @@ plugins { id("org.jetbrains.kotlinx.kover") // Internal Generation - id("thirdPartyLicences") + id("com.datadoghq.dependency-license") id("apiSurface") id("transitiveDependencies") id("binary-compatibility-validator") diff --git a/dd-sdk-android-core/transitiveDependencies b/dd-sdk-android-core/transitiveDependencies index ff394e8741..cda87a1111 100644 --- a/dd-sdk-android-core/transitiveDependencies +++ b/dd-sdk-android-core/transitiveDependencies @@ -16,10 +16,10 @@ com.lyft.kronos:kronos-android:0.0.1-alpha11 : 5 Kb com.lyft.kronos:kronos-java:0.0.1-alpha11 : 29 Kb com.squareup.okhttp3:okhttp:4.11.0 : 768 Kb com.squareup.okio:okio-jvm:3.2.0 : 337 Kb -org.jetbrains.kotlin:kotlin-stdlib-common:1.8.22 : 216 Kb -org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.22 : 963 b -org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.22 : 969 b -org.jetbrains.kotlin:kotlin-stdlib:1.8.22 : 1631 Kb +org.jetbrains.kotlin:kotlin-stdlib-common:1.9.10 : 219 Kb +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.9.10 : 959 b +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.9.10 : 965 b +org.jetbrains.kotlin:kotlin-stdlib:1.9.10 : 1667 Kb org.jetbrains:annotations:13.0 : 17 Kb Total transitive dependencies size : 4 Mb diff --git a/features/dd-sdk-android-logs/build.gradle.kts b/features/dd-sdk-android-logs/build.gradle.kts index d829546e91..60362b8d1c 100644 --- a/features/dd-sdk-android-logs/build.gradle.kts +++ b/features/dd-sdk-android-logs/build.gradle.kts @@ -32,7 +32,7 @@ plugins { id("org.jetbrains.kotlinx.kover") // Internal Generation - id("thirdPartyLicences") + id("com.datadoghq.dependency-license") id("apiSurface") id("transitiveDependencies") id("binary-compatibility-validator") diff --git a/features/dd-sdk-android-logs/transitiveDependencies b/features/dd-sdk-android-logs/transitiveDependencies index 837f776f2d..3beb8ee992 100644 --- a/features/dd-sdk-android-logs/transitiveDependencies +++ b/features/dd-sdk-android-logs/transitiveDependencies @@ -2,8 +2,8 @@ Dependencies List androidx.annotation:annotation:1.3.0 : 30 Kb com.google.code.gson:gson:2.10.1 : 276 Kb -org.jetbrains.kotlin:kotlin-stdlib-common:1.8.22 : 216 Kb -org.jetbrains.kotlin:kotlin-stdlib:1.8.22 : 1631 Kb +org.jetbrains.kotlin:kotlin-stdlib-common:1.9.10 : 219 Kb +org.jetbrains.kotlin:kotlin-stdlib:1.9.10 : 1667 Kb org.jetbrains:annotations:13.0 : 17 Kb Total transitive dependencies size : 2 Mb diff --git a/features/dd-sdk-android-ndk/build.gradle.kts b/features/dd-sdk-android-ndk/build.gradle.kts index b8b3910425..45358199f8 100644 --- a/features/dd-sdk-android-ndk/build.gradle.kts +++ b/features/dd-sdk-android-ndk/build.gradle.kts @@ -31,7 +31,7 @@ plugins { id("org.jetbrains.kotlinx.kover") // Internal Generation - id("thirdPartyLicences") + id("com.datadoghq.dependency-license") id("apiSurface") id("transitiveDependencies") id("binary-compatibility-validator") diff --git a/features/dd-sdk-android-ndk/transitiveDependencies b/features/dd-sdk-android-ndk/transitiveDependencies index be21345c56..341a18c0b9 100644 --- a/features/dd-sdk-android-ndk/transitiveDependencies +++ b/features/dd-sdk-android-ndk/transitiveDependencies @@ -3,10 +3,10 @@ Dependencies List androidx.multidex:multidex:2.0.1 : 26 Kb com.squareup.okhttp3:okhttp:4.11.0 : 768 Kb com.squareup.okio:okio-jvm:3.2.0 : 337 Kb -org.jetbrains.kotlin:kotlin-stdlib-common:1.8.22 : 216 Kb -org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.22 : 963 b -org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.22 : 969 b -org.jetbrains.kotlin:kotlin-stdlib:1.8.22 : 1631 Kb +org.jetbrains.kotlin:kotlin-stdlib-common:1.9.10 : 219 Kb +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.9.10 : 959 b +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.9.10 : 965 b +org.jetbrains.kotlin:kotlin-stdlib:1.9.10 : 1667 Kb org.jetbrains:annotations:13.0 : 17 Kb Total transitive dependencies size : 2 Mb diff --git a/features/dd-sdk-android-rum/build.gradle.kts b/features/dd-sdk-android-rum/build.gradle.kts index 8124c20213..2354b14131 100644 --- a/features/dd-sdk-android-rum/build.gradle.kts +++ b/features/dd-sdk-android-rum/build.gradle.kts @@ -32,7 +32,7 @@ plugins { id("org.jetbrains.kotlinx.kover") // Internal Generation - id("thirdPartyLicences") + id("com.datadoghq.dependency-license") id("apiSurface") id("transitiveDependencies") id("binary-compatibility-validator") diff --git a/features/dd-sdk-android-rum/transitiveDependencies b/features/dd-sdk-android-rum/transitiveDependencies index d2b4ff8717..d6718040d5 100644 --- a/features/dd-sdk-android-rum/transitiveDependencies +++ b/features/dd-sdk-android-rum/transitiveDependencies @@ -27,10 +27,10 @@ androidx.viewpager:viewpager:1.0.0 : 52 Kb com.google.code.gson:gson:2.10.1 : 276 Kb com.squareup.okhttp3:okhttp:4.11.0 : 768 Kb com.squareup.okio:okio-jvm:3.2.0 : 337 Kb -org.jetbrains.kotlin:kotlin-stdlib-common:1.8.22 : 216 Kb -org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.22 : 963 b -org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.22 : 969 b -org.jetbrains.kotlin:kotlin-stdlib:1.8.22 : 1631 Kb +org.jetbrains.kotlin:kotlin-stdlib-common:1.9.10 : 219 Kb +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.9.10 : 959 b +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.9.10 : 965 b +org.jetbrains.kotlin:kotlin-stdlib:1.9.10 : 1667 Kb org.jetbrains:annotations:13.0 : 17 Kb Total transitive dependencies size : 5 Mb diff --git a/features/dd-sdk-android-session-replay-material/build.gradle.kts b/features/dd-sdk-android-session-replay-material/build.gradle.kts index 2bef1faeb9..cbafe97b61 100644 --- a/features/dd-sdk-android-session-replay-material/build.gradle.kts +++ b/features/dd-sdk-android-session-replay-material/build.gradle.kts @@ -29,7 +29,7 @@ plugins { id("org.jetbrains.kotlinx.kover") // Internal Generation - id("thirdPartyLicences") + id("com.datadoghq.dependency-license") id("apiSurface") id("transitiveDependencies") id("binary-compatibility-validator") diff --git a/features/dd-sdk-android-session-replay-material/transitiveDependencies b/features/dd-sdk-android-session-replay-material/transitiveDependencies index bc90cd91e5..f2b433a131 100644 --- a/features/dd-sdk-android-session-replay-material/transitiveDependencies +++ b/features/dd-sdk-android-session-replay-material/transitiveDependencies @@ -40,8 +40,8 @@ androidx.viewpager:viewpager:1.0.0 : 52 Kb androidx.viewpager2:viewpager2:1.0.0 : 60 Kb com.google.android.material:material:1.3.0 : 1535 Kb com.google.code.gson:gson:2.10.1 : 276 Kb -org.jetbrains.kotlin:kotlin-stdlib-common:1.8.22 : 216 Kb -org.jetbrains.kotlin:kotlin-stdlib:1.8.22 : 1631 Kb +org.jetbrains.kotlin:kotlin-stdlib-common:1.9.10 : 219 Kb +org.jetbrains.kotlin:kotlin-stdlib:1.9.10 : 1667 Kb org.jetbrains:annotations:13.0 : 17 Kb Total transitive dependencies size : 7 Mb diff --git a/features/dd-sdk-android-session-replay/build.gradle.kts b/features/dd-sdk-android-session-replay/build.gradle.kts index ae26e2c6ba..3381cef368 100644 --- a/features/dd-sdk-android-session-replay/build.gradle.kts +++ b/features/dd-sdk-android-session-replay/build.gradle.kts @@ -31,7 +31,7 @@ plugins { id("org.jetbrains.kotlinx.kover") // Internal Generation - id("thirdPartyLicences") + id("com.datadoghq.dependency-license") id("apiSurface") id("transitiveDependencies") id("binary-compatibility-validator") diff --git a/features/dd-sdk-android-session-replay/transitiveDependencies b/features/dd-sdk-android-session-replay/transitiveDependencies index 506a6b1809..3e277816e7 100644 --- a/features/dd-sdk-android-session-replay/transitiveDependencies +++ b/features/dd-sdk-android-session-replay/transitiveDependencies @@ -29,10 +29,10 @@ androidx.viewpager:viewpager:1.0.0 : 52 Kb com.google.code.gson:gson:2.10.1 : 276 Kb com.squareup.okhttp3:okhttp:4.11.0 : 768 Kb com.squareup.okio:okio-jvm:3.2.0 : 337 Kb -org.jetbrains.kotlin:kotlin-stdlib-common:1.8.22 : 216 Kb -org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.22 : 963 b -org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.22 : 969 b -org.jetbrains.kotlin:kotlin-stdlib:1.8.22 : 1631 Kb +org.jetbrains.kotlin:kotlin-stdlib-common:1.9.10 : 219 Kb +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.9.10 : 959 b +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.9.10 : 965 b +org.jetbrains.kotlin:kotlin-stdlib:1.9.10 : 1667 Kb org.jetbrains:annotations:13.0 : 17 Kb Total transitive dependencies size : 5 Mb diff --git a/features/dd-sdk-android-trace-otel/build.gradle.kts b/features/dd-sdk-android-trace-otel/build.gradle.kts index 8dd97e946c..807d0d6deb 100644 --- a/features/dd-sdk-android-trace-otel/build.gradle.kts +++ b/features/dd-sdk-android-trace-otel/build.gradle.kts @@ -30,7 +30,7 @@ plugins { id("org.jetbrains.kotlinx.kover") // Internal Generation - id("thirdPartyLicences") + id("com.datadoghq.dependency-license") id("apiSurface") id("transitiveDependencies") id("binary-compatibility-validator") diff --git a/features/dd-sdk-android-trace-otel/transitiveDependencies b/features/dd-sdk-android-trace-otel/transitiveDependencies index 936364300d..1984bb39c0 100644 --- a/features/dd-sdk-android-trace-otel/transitiveDependencies +++ b/features/dd-sdk-android-trace-otel/transitiveDependencies @@ -3,9 +3,9 @@ Dependencies List androidx.annotation:annotation:1.3.0 : 30 Kb io.opentelemetry:opentelemetry-api:1.4.0 : 78 Kb io.opentelemetry:opentelemetry-context:1.4.0 : 42 Kb -org.jetbrains.kotlin:kotlin-stdlib-common:1.8.22 : 216 Kb -org.jetbrains.kotlin:kotlin-stdlib:1.8.22 : 1631 Kb +org.jetbrains.kotlin:kotlin-stdlib-common:1.9.10 : 219 Kb +org.jetbrains.kotlin:kotlin-stdlib:1.9.10 : 1667 Kb org.jetbrains:annotations:13.0 : 17 Kb -Total transitive dependencies size : 2017 Kb +Total transitive dependencies size : 2 Mb diff --git a/features/dd-sdk-android-trace/build.gradle.kts b/features/dd-sdk-android-trace/build.gradle.kts index 78a0f80e6a..aad735ac28 100644 --- a/features/dd-sdk-android-trace/build.gradle.kts +++ b/features/dd-sdk-android-trace/build.gradle.kts @@ -31,7 +31,7 @@ plugins { id("org.jetbrains.kotlinx.kover") // Internal Generation - id("thirdPartyLicences") + id("com.datadoghq.dependency-license") id("apiSurface") id("transitiveDependencies") id("binary-compatibility-validator") diff --git a/features/dd-sdk-android-trace/transitiveDependencies b/features/dd-sdk-android-trace/transitiveDependencies index 20817044c1..c012a8cf8e 100644 --- a/features/dd-sdk-android-trace/transitiveDependencies +++ b/features/dd-sdk-android-trace/transitiveDependencies @@ -7,8 +7,8 @@ io.opentracing:opentracing-api:0.32.0 : 18 Kb io.opentracing:opentracing-noop:0.32.0 : 10 Kb io.opentracing:opentracing-util:0.32.0 : 10 Kb org.jctools:jctools-core:3.3.0 : 328 Kb -org.jetbrains.kotlin:kotlin-stdlib-common:1.8.22 : 216 Kb -org.jetbrains.kotlin:kotlin-stdlib:1.8.22 : 1631 Kb +org.jetbrains.kotlin:kotlin-stdlib-common:1.9.10 : 219 Kb +org.jetbrains.kotlin:kotlin-stdlib:1.9.10 : 1667 Kb org.jetbrains:annotations:13.0 : 17 Kb Total transitive dependencies size : 2 Mb diff --git a/features/dd-sdk-android-webview/build.gradle.kts b/features/dd-sdk-android-webview/build.gradle.kts index 6fb495f99a..320ed43cb7 100644 --- a/features/dd-sdk-android-webview/build.gradle.kts +++ b/features/dd-sdk-android-webview/build.gradle.kts @@ -31,7 +31,7 @@ plugins { id("org.jetbrains.kotlinx.kover") // Internal Generation - id("thirdPartyLicences") + id("com.datadoghq.dependency-license") id("apiSurface") id("transitiveDependencies") id("binary-compatibility-validator") diff --git a/features/dd-sdk-android-webview/transitiveDependencies b/features/dd-sdk-android-webview/transitiveDependencies index 837f776f2d..3beb8ee992 100644 --- a/features/dd-sdk-android-webview/transitiveDependencies +++ b/features/dd-sdk-android-webview/transitiveDependencies @@ -2,8 +2,8 @@ Dependencies List androidx.annotation:annotation:1.3.0 : 30 Kb com.google.code.gson:gson:2.10.1 : 276 Kb -org.jetbrains.kotlin:kotlin-stdlib-common:1.8.22 : 216 Kb -org.jetbrains.kotlin:kotlin-stdlib:1.8.22 : 1631 Kb +org.jetbrains.kotlin:kotlin-stdlib-common:1.9.10 : 219 Kb +org.jetbrains.kotlin:kotlin-stdlib:1.9.10 : 1667 Kb org.jetbrains:annotations:13.0 : 17 Kb Total transitive dependencies size : 2 Mb diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 0ef78853f7..6b4cb3dd0a 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,7 +1,7 @@ [versions] # Commons -kotlin = "1.8.22" -kotlinSP = "1.8.22-1.0.11" +kotlin = "1.9.10" +kotlinSP = "1.9.10-1.0.13" gson = "2.10.1" okHttp = "4.11.0" kronosNTP = "0.0.1-alpha11" @@ -17,7 +17,7 @@ androidXNavigation = "2.3.0" androidXRecyclerView = "1.1.0" androidXWorkManager = "2.8.1" androidXConstraintLayout = "2.0.4" -androidXComposeCompiler = "1.4.8" +androidXComposeCompiler = "1.5.3" androidXComposeRuntime = "1.4.3" androidXComposeNavigation = "2.6.0" androidXComposeUi = "1.4.3" @@ -69,6 +69,7 @@ kotlinPoet = "1.14.2" kotlinGrammarParser = "9b264ee" jsonSchemaValidator = "1.12.1" binaryCompatibility = "0.13.2" +dependencyLicense = "0.2" # Integrations realm = "1.11.0" @@ -103,6 +104,7 @@ unmockGradlePlugin = { module = "com.github.bjoernq:unmockplugin", version.ref = realmGradlePlugin = { module = "io.realm.kotlin:gradle-plugin", version.ref = "realm" } sqlDelightGradlePlugin = { module = "com.squareup.sqldelight:gradle-plugin", version.ref = "sqlDelight" } binaryCompatibilityGradlePlugin = { module = "org.jetbrains.kotlinx:binary-compatibility-validator", version.ref = "binaryCompatibility" } +dependencyLicenseGradlePlugin = { module = "com.datadoghq:dependency-license", version.ref = "dependencyLicense" } versionsGradlePlugin = { module = "com.github.ben-manes:gradle-versions-plugin", version.ref = "versionsGradlePlugin" } diff --git a/integrations/dd-sdk-android-coil/build.gradle.kts b/integrations/dd-sdk-android-coil/build.gradle.kts index 3e78f76950..423faba3da 100644 --- a/integrations/dd-sdk-android-coil/build.gradle.kts +++ b/integrations/dd-sdk-android-coil/build.gradle.kts @@ -29,7 +29,7 @@ plugins { id("org.jetbrains.kotlinx.kover") // Internal Generation - id("thirdPartyLicences") + id("com.datadoghq.dependency-license") id("apiSurface") id("transitiveDependencies") id("binary-compatibility-validator") diff --git a/integrations/dd-sdk-android-coil/transitiveDependencies b/integrations/dd-sdk-android-coil/transitiveDependencies index defc0dca63..4d9242a115 100644 --- a/integrations/dd-sdk-android-coil/transitiveDependencies +++ b/integrations/dd-sdk-android-coil/transitiveDependencies @@ -7,13 +7,13 @@ com.squareup.okhttp3:okhttp:4.11.0 : 768 Kb com.squareup.okio:okio-jvm:3.2.0 : 337 Kb io.coil-kt:coil-base:1.0.0 : 395 Kb io.coil-kt:coil:1.0.0 : 15 Kb -org.jetbrains.kotlin:kotlin-stdlib-common:1.8.22 : 216 Kb -org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.22 : 963 b -org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.22 : 969 b -org.jetbrains.kotlin:kotlin-stdlib:1.8.22 : 1631 Kb +org.jetbrains.kotlin:kotlin-stdlib-common:1.9.10 : 219 Kb +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.9.10 : 959 b +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.9.10 : 965 b +org.jetbrains.kotlin:kotlin-stdlib:1.9.10 : 1667 Kb org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.9 : 19 Kb org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.3.9 : 1629 Kb org.jetbrains:annotations:13.0 : 17 Kb -Total transitive dependencies size : 4 Mb +Total transitive dependencies size : 5 Mb diff --git a/integrations/dd-sdk-android-compose/build.gradle.kts b/integrations/dd-sdk-android-compose/build.gradle.kts index 548ed22799..24c863c016 100644 --- a/integrations/dd-sdk-android-compose/build.gradle.kts +++ b/integrations/dd-sdk-android-compose/build.gradle.kts @@ -31,7 +31,7 @@ plugins { id("org.jetbrains.kotlinx.kover") // Internal Generation - id("thirdPartyLicences") + id("com.datadoghq.dependency-license") id("apiSurface") id("transitiveDependencies") } diff --git a/integrations/dd-sdk-android-compose/transitiveDependencies b/integrations/dd-sdk-android-compose/transitiveDependencies index 82a4d2976f..60347adff5 100644 --- a/integrations/dd-sdk-android-compose/transitiveDependencies +++ b/integrations/dd-sdk-android-compose/transitiveDependencies @@ -40,10 +40,10 @@ androidx.navigation:navigation-runtime:2.6.0 : 125 Kb androidx.savedstate:savedstate-ktx:1.2.1 : 3 Kb androidx.savedstate:savedstate:1.2.1 : 19 Kb androidx.versionedparcelable:versionedparcelable:1.1.1 : 30 Kb -org.jetbrains.kotlin:kotlin-stdlib-common:1.8.22 : 216 Kb -org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.22 : 963 b -org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.22 : 969 b -org.jetbrains.kotlin:kotlin-stdlib:1.8.22 : 1631 Kb +org.jetbrains.kotlin:kotlin-stdlib-common:1.9.10 : 219 Kb +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.9.10 : 959 b +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.9.10 : 965 b +org.jetbrains.kotlin:kotlin-stdlib:1.9.10 : 1667 Kb org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4 : 19 Kb org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.6.4 : 1442 Kb org.jetbrains:annotations:13.0 : 17 Kb diff --git a/integrations/dd-sdk-android-fresco/build.gradle.kts b/integrations/dd-sdk-android-fresco/build.gradle.kts index f084563a4b..f36fba4520 100644 --- a/integrations/dd-sdk-android-fresco/build.gradle.kts +++ b/integrations/dd-sdk-android-fresco/build.gradle.kts @@ -29,7 +29,7 @@ plugins { id("org.jetbrains.kotlinx.kover") // Internal Generation - id("thirdPartyLicences") + id("com.datadoghq.dependency-license") id("apiSurface") id("transitiveDependencies") id("binary-compatibility-validator") diff --git a/integrations/dd-sdk-android-fresco/transitiveDependencies b/integrations/dd-sdk-android-fresco/transitiveDependencies index bab2afb17c..c54d1d1dd9 100644 --- a/integrations/dd-sdk-android-fresco/transitiveDependencies +++ b/integrations/dd-sdk-android-fresco/transitiveDependencies @@ -14,10 +14,10 @@ com.facebook.fresco:nativeimagefilters:2.3.0 : 52 Kb com.facebook.fresco:nativeimagetranscoder:2.3.0 : 764 Kb com.squareup.okhttp3:okhttp:4.11.0 : 768 Kb com.squareup.okio:okio-jvm:3.2.0 : 337 Kb -org.jetbrains.kotlin:kotlin-stdlib-common:1.8.22 : 216 Kb -org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.22 : 963 b -org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.22 : 969 b -org.jetbrains.kotlin:kotlin-stdlib:1.8.22 : 1631 Kb +org.jetbrains.kotlin:kotlin-stdlib-common:1.9.10 : 219 Kb +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.9.10 : 959 b +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.9.10 : 965 b +org.jetbrains.kotlin:kotlin-stdlib:1.9.10 : 1667 Kb org.jetbrains:annotations:13.0 : 17 Kb Total transitive dependencies size : 4 Mb diff --git a/integrations/dd-sdk-android-glide/build.gradle.kts b/integrations/dd-sdk-android-glide/build.gradle.kts index 48ba251078..17fa20e802 100644 --- a/integrations/dd-sdk-android-glide/build.gradle.kts +++ b/integrations/dd-sdk-android-glide/build.gradle.kts @@ -29,7 +29,7 @@ plugins { id("org.jetbrains.kotlinx.kover") // Internal Generation - id("thirdPartyLicences") + id("com.datadoghq.dependency-license") id("apiSurface") id("transitiveDependencies") id("binary-compatibility-validator") diff --git a/integrations/dd-sdk-android-glide/transitiveDependencies b/integrations/dd-sdk-android-glide/transitiveDependencies index 8443202ccc..9b81dd84c7 100644 --- a/integrations/dd-sdk-android-glide/transitiveDependencies +++ b/integrations/dd-sdk-android-glide/transitiveDependencies @@ -41,10 +41,10 @@ com.github.bumptech.glide:glide:4.11.0 : 614 Kb com.github.bumptech.glide:okhttp3-integration:4.11.0 : 8 Kb com.squareup.okhttp3:okhttp:4.11.0 : 768 Kb com.squareup.okio:okio-jvm:3.2.0 : 337 Kb -org.jetbrains.kotlin:kotlin-stdlib-common:1.8.22 : 216 Kb -org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.22 : 963 b -org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.22 : 969 b -org.jetbrains.kotlin:kotlin-stdlib:1.8.22 : 1631 Kb +org.jetbrains.kotlin:kotlin-stdlib-common:1.9.10 : 219 Kb +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.9.10 : 959 b +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.9.10 : 965 b +org.jetbrains.kotlin:kotlin-stdlib:1.9.10 : 1667 Kb org.jetbrains:annotations:13.0 : 17 Kb Total transitive dependencies size : 5 Mb diff --git a/integrations/dd-sdk-android-okhttp-otel/build.gradle.kts b/integrations/dd-sdk-android-okhttp-otel/build.gradle.kts index 41afcf8d68..cf119391c4 100644 --- a/integrations/dd-sdk-android-okhttp-otel/build.gradle.kts +++ b/integrations/dd-sdk-android-okhttp-otel/build.gradle.kts @@ -29,7 +29,7 @@ plugins { id("org.jetbrains.kotlinx.kover") // Internal Generation - id("thirdPartyLicences") + id("com.datadoghq.dependency-license") id("apiSurface") id("transitiveDependencies") id("binary-compatibility-validator") diff --git a/integrations/dd-sdk-android-okhttp-otel/transitiveDependencies b/integrations/dd-sdk-android-okhttp-otel/transitiveDependencies index 87f1f2dc0d..eb011e7e2e 100644 --- a/integrations/dd-sdk-android-okhttp-otel/transitiveDependencies +++ b/integrations/dd-sdk-android-okhttp-otel/transitiveDependencies @@ -2,10 +2,10 @@ Dependencies List com.squareup.okhttp3:okhttp:4.11.0 : 768 Kb com.squareup.okio:okio-jvm:3.2.0 : 337 Kb -org.jetbrains.kotlin:kotlin-stdlib-common:1.8.22 : 216 Kb -org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.22 : 963 b -org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.22 : 969 b -org.jetbrains.kotlin:kotlin-stdlib:1.8.22 : 1631 Kb +org.jetbrains.kotlin:kotlin-stdlib-common:1.9.10 : 219 Kb +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.9.10 : 959 b +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.9.10 : 965 b +org.jetbrains.kotlin:kotlin-stdlib:1.9.10 : 1667 Kb org.jetbrains:annotations:13.0 : 17 Kb Total transitive dependencies size : 2 Mb diff --git a/integrations/dd-sdk-android-okhttp/build.gradle.kts b/integrations/dd-sdk-android-okhttp/build.gradle.kts index 00e85ad3ca..12a186980b 100644 --- a/integrations/dd-sdk-android-okhttp/build.gradle.kts +++ b/integrations/dd-sdk-android-okhttp/build.gradle.kts @@ -31,7 +31,7 @@ plugins { id("org.jetbrains.kotlinx.kover") // Internal Generation - id("thirdPartyLicences") + id("com.datadoghq.dependency-license") id("apiSurface") id("transitiveDependencies") id("binary-compatibility-validator") diff --git a/integrations/dd-sdk-android-okhttp/transitiveDependencies b/integrations/dd-sdk-android-okhttp/transitiveDependencies index e557b98593..c50108c69b 100644 --- a/integrations/dd-sdk-android-okhttp/transitiveDependencies +++ b/integrations/dd-sdk-android-okhttp/transitiveDependencies @@ -3,10 +3,10 @@ Dependencies List androidx.annotation:annotation:1.3.0 : 30 Kb com.squareup.okhttp3:okhttp:4.11.0 : 768 Kb com.squareup.okio:okio-jvm:3.2.0 : 337 Kb -org.jetbrains.kotlin:kotlin-stdlib-common:1.8.22 : 216 Kb -org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.22 : 963 b -org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.22 : 969 b -org.jetbrains.kotlin:kotlin-stdlib:1.8.22 : 1631 Kb +org.jetbrains.kotlin:kotlin-stdlib-common:1.9.10 : 219 Kb +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.9.10 : 959 b +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.9.10 : 965 b +org.jetbrains.kotlin:kotlin-stdlib:1.9.10 : 1667 Kb org.jetbrains:annotations:13.0 : 17 Kb Total transitive dependencies size : 2 Mb diff --git a/integrations/dd-sdk-android-rum-coroutines/build.gradle.kts b/integrations/dd-sdk-android-rum-coroutines/build.gradle.kts index 79bb82131f..7f87bfdf5f 100644 --- a/integrations/dd-sdk-android-rum-coroutines/build.gradle.kts +++ b/integrations/dd-sdk-android-rum-coroutines/build.gradle.kts @@ -29,7 +29,7 @@ plugins { id("org.jetbrains.kotlinx.kover") // Internal Generation - id("thirdPartyLicences") + id("com.datadoghq.dependency-license") id("apiSurface") id("transitiveDependencies") } diff --git a/integrations/dd-sdk-android-rum-coroutines/transitiveDependencies b/integrations/dd-sdk-android-rum-coroutines/transitiveDependencies index 567880ae5d..ad25124ae2 100644 --- a/integrations/dd-sdk-android-rum-coroutines/transitiveDependencies +++ b/integrations/dd-sdk-android-rum-coroutines/transitiveDependencies @@ -1,7 +1,7 @@ Dependencies List -org.jetbrains.kotlin:kotlin-stdlib-common:1.8.22 : 216 Kb -org.jetbrains.kotlin:kotlin-stdlib:1.8.22 : 1631 Kb +org.jetbrains.kotlin:kotlin-stdlib-common:1.9.10 : 219 Kb +org.jetbrains.kotlin:kotlin-stdlib:1.9.10 : 1667 Kb org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.4.2 : 1635 Kb org.jetbrains:annotations:13.0 : 17 Kb diff --git a/integrations/dd-sdk-android-rx/build.gradle.kts b/integrations/dd-sdk-android-rx/build.gradle.kts index 2ea8a09871..c8ef838c53 100644 --- a/integrations/dd-sdk-android-rx/build.gradle.kts +++ b/integrations/dd-sdk-android-rx/build.gradle.kts @@ -29,7 +29,7 @@ plugins { id("org.jetbrains.kotlinx.kover") // Internal Generation - id("thirdPartyLicences") + id("com.datadoghq.dependency-license") id("apiSurface") id("transitiveDependencies") id("binary-compatibility-validator") diff --git a/integrations/dd-sdk-android-rx/transitiveDependencies b/integrations/dd-sdk-android-rx/transitiveDependencies index 44fecb7b7d..7155f28954 100644 --- a/integrations/dd-sdk-android-rx/transitiveDependencies +++ b/integrations/dd-sdk-android-rx/transitiveDependencies @@ -3,10 +3,10 @@ Dependencies List com.squareup.okhttp3:okhttp:4.11.0 : 768 Kb com.squareup.okio:okio-jvm:3.2.0 : 337 Kb io.reactivex.rxjava3:rxjava:3.0.0 : 2 Mb -org.jetbrains.kotlin:kotlin-stdlib-common:1.8.22 : 216 Kb -org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.22 : 963 b -org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.22 : 969 b -org.jetbrains.kotlin:kotlin-stdlib:1.8.22 : 1631 Kb +org.jetbrains.kotlin:kotlin-stdlib-common:1.9.10 : 219 Kb +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.9.10 : 959 b +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.9.10 : 965 b +org.jetbrains.kotlin:kotlin-stdlib:1.9.10 : 1667 Kb org.jetbrains:annotations:13.0 : 17 Kb org.reactivestreams:reactive-streams:1.0.3 : 11 Kb diff --git a/integrations/dd-sdk-android-sqldelight/build.gradle.kts b/integrations/dd-sdk-android-sqldelight/build.gradle.kts index 50824902d3..a3e41b37ac 100644 --- a/integrations/dd-sdk-android-sqldelight/build.gradle.kts +++ b/integrations/dd-sdk-android-sqldelight/build.gradle.kts @@ -29,7 +29,7 @@ plugins { id("org.jetbrains.kotlinx.kover") // Internal Generation - id("thirdPartyLicences") + id("com.datadoghq.dependency-license") id("apiSurface") id("transitiveDependencies") id("binary-compatibility-validator") diff --git a/integrations/dd-sdk-android-sqldelight/transitiveDependencies b/integrations/dd-sdk-android-sqldelight/transitiveDependencies index 0418e59a4f..f0abe94522 100644 --- a/integrations/dd-sdk-android-sqldelight/transitiveDependencies +++ b/integrations/dd-sdk-android-sqldelight/transitiveDependencies @@ -6,10 +6,10 @@ com.squareup.okhttp3:okhttp:4.11.0 : 768 Kb com.squareup.okio:okio-jvm:3.2.0 : 337 Kb com.squareup.sqldelight:android-driver:1.5.5 : 23 Kb com.squareup.sqldelight:runtime-jvm:1.5.5 : 44 Kb -org.jetbrains.kotlin:kotlin-stdlib-common:1.8.22 : 216 Kb -org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.22 : 963 b -org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.22 : 969 b -org.jetbrains.kotlin:kotlin-stdlib:1.8.22 : 1631 Kb +org.jetbrains.kotlin:kotlin-stdlib-common:1.9.10 : 219 Kb +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.9.10 : 959 b +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.9.10 : 965 b +org.jetbrains.kotlin:kotlin-stdlib:1.9.10 : 1667 Kb org.jetbrains:annotations:13.0 : 17 Kb Total transitive dependencies size : 3 Mb diff --git a/integrations/dd-sdk-android-timber/build.gradle.kts b/integrations/dd-sdk-android-timber/build.gradle.kts index b7d751f717..ca7f778893 100644 --- a/integrations/dd-sdk-android-timber/build.gradle.kts +++ b/integrations/dd-sdk-android-timber/build.gradle.kts @@ -29,7 +29,7 @@ plugins { id("org.jetbrains.kotlinx.kover") // Internal Generation - id("thirdPartyLicences") + id("com.datadoghq.dependency-license") id("apiSurface") id("transitiveDependencies") id("binary-compatibility-validator") diff --git a/integrations/dd-sdk-android-timber/transitiveDependencies b/integrations/dd-sdk-android-timber/transitiveDependencies index 11549caeeb..624b40bc65 100644 --- a/integrations/dd-sdk-android-timber/transitiveDependencies +++ b/integrations/dd-sdk-android-timber/transitiveDependencies @@ -1,9 +1,9 @@ Dependencies List com.jakewharton.timber:timber:5.0.1 : 31 Kb -org.jetbrains.kotlin:kotlin-stdlib-common:1.8.22 : 216 Kb -org.jetbrains.kotlin:kotlin-stdlib:1.8.22 : 1631 Kb +org.jetbrains.kotlin:kotlin-stdlib-common:1.9.10 : 219 Kb +org.jetbrains.kotlin:kotlin-stdlib:1.9.10 : 1667 Kb org.jetbrains:annotations:20.1.0 : 25 Kb -Total transitive dependencies size : 1904 Kb +Total transitive dependencies size : 1945 Kb diff --git a/integrations/dd-sdk-android-trace-coroutines/build.gradle.kts b/integrations/dd-sdk-android-trace-coroutines/build.gradle.kts index 9fae87ba4f..e77299e7f6 100644 --- a/integrations/dd-sdk-android-trace-coroutines/build.gradle.kts +++ b/integrations/dd-sdk-android-trace-coroutines/build.gradle.kts @@ -29,7 +29,7 @@ plugins { id("org.jetbrains.kotlinx.kover") // Internal Generation - id("thirdPartyLicences") + id("com.datadoghq.dependency-license") id("apiSurface") id("transitiveDependencies") } diff --git a/integrations/dd-sdk-android-trace-coroutines/transitiveDependencies b/integrations/dd-sdk-android-trace-coroutines/transitiveDependencies index 567880ae5d..ad25124ae2 100644 --- a/integrations/dd-sdk-android-trace-coroutines/transitiveDependencies +++ b/integrations/dd-sdk-android-trace-coroutines/transitiveDependencies @@ -1,7 +1,7 @@ Dependencies List -org.jetbrains.kotlin:kotlin-stdlib-common:1.8.22 : 216 Kb -org.jetbrains.kotlin:kotlin-stdlib:1.8.22 : 1631 Kb +org.jetbrains.kotlin:kotlin-stdlib-common:1.9.10 : 219 Kb +org.jetbrains.kotlin:kotlin-stdlib:1.9.10 : 1667 Kb org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.4.2 : 1635 Kb org.jetbrains:annotations:13.0 : 17 Kb diff --git a/integrations/dd-sdk-android-tv/build.gradle.kts b/integrations/dd-sdk-android-tv/build.gradle.kts index f66efa2480..e7a5fd88d9 100644 --- a/integrations/dd-sdk-android-tv/build.gradle.kts +++ b/integrations/dd-sdk-android-tv/build.gradle.kts @@ -29,7 +29,7 @@ plugins { id("org.jetbrains.kotlinx.kover") // Internal Generation - id("thirdPartyLicences") + id("com.datadoghq.dependency-license") id("apiSurface") id("transitiveDependencies") id("binary-compatibility-validator") diff --git a/integrations/dd-sdk-android-tv/transitiveDependencies b/integrations/dd-sdk-android-tv/transitiveDependencies index 95a06d7856..75735b8f82 100644 --- a/integrations/dd-sdk-android-tv/transitiveDependencies +++ b/integrations/dd-sdk-android-tv/transitiveDependencies @@ -34,8 +34,8 @@ androidx.slidingpanelayout:slidingpanelayout:1.0.0 : 22 Kb androidx.swiperefreshlayout:swiperefreshlayout:1.0.0 : 32 Kb androidx.versionedparcelable:versionedparcelable:1.1.1 : 30 Kb androidx.viewpager:viewpager:1.0.0 : 52 Kb -org.jetbrains.kotlin:kotlin-stdlib-common:1.8.22 : 216 Kb -org.jetbrains.kotlin:kotlin-stdlib:1.8.22 : 1631 Kb +org.jetbrains.kotlin:kotlin-stdlib-common:1.9.10 : 219 Kb +org.jetbrains.kotlin:kotlin-stdlib:1.9.10 : 1667 Kb org.jetbrains:annotations:13.0 : 17 Kb Total transitive dependencies size : 5 Mb diff --git a/sample/kotlin/build.gradle.kts b/sample/kotlin/build.gradle.kts index 00fe296ca7..94a2110658 100644 --- a/sample/kotlin/build.gradle.kts +++ b/sample/kotlin/build.gradle.kts @@ -19,7 +19,6 @@ plugins { kotlin("android") kotlin("kapt") id("com.github.ben-manes.versions") - id("thirdPartyLicences") id("org.jetbrains.dokka") id("io.realm.kotlin") id("com.squareup.sqldelight") diff --git a/tools/unit/build.gradle.kts b/tools/unit/build.gradle.kts index d56eb2be63..fcf22d07b1 100644 --- a/tools/unit/build.gradle.kts +++ b/tools/unit/build.gradle.kts @@ -15,7 +15,7 @@ plugins { id("com.android.library") kotlin("android") id("com.github.ben-manes.versions") - id("thirdPartyLicences") + id("com.datadoghq.dependency-license") id("de.mobilej.unmock") }