Skip to content

Commit

Permalink
Merge pull request #1843 from DataDog/xgouchet/dependencies_license_p…
Browse files Browse the repository at this point in the history
…lugin

Use shared dependencies license plugin
  • Loading branch information
xgouchet authored Jul 26, 2024
2 parents 1d52055 + 19d16ab commit 4a3bc9f
Show file tree
Hide file tree
Showing 58 changed files with 129 additions and 1,486 deletions.
36 changes: 25 additions & 11 deletions LICENSE-3rdparty.csv
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -66,34 +66,38 @@ 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
import(test),com.facebook.soloader,Apache-2.0,"Copyright (c) Facebook, Inc. and its affiliates"
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 <vokes.s@gmail.com>"
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
Expand All @@ -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
Expand All @@ -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)"
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ tasks.register("unitTestAll") {
registerSubModuleAggregationTask("lintCheckAll", "lintRelease") {
dependsOn(":tools:lint:lint")
}
registerSubModuleAggregationTask("checkThirdPartyLicensesAll", "checkThirdPartyLicences")
registerSubModuleAggregationTask("checkDependencyLicencesAll", "checkDependencyLicences")

registerSubModuleAggregationTask("checkApiSurfaceChangesAll", "checkApiSurfaceChanges")

Expand All @@ -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")
}
Expand Down
5 changes: 1 addition & 4 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ dependencies {
implementation(libs.versionsGradlePlugin)
implementation(libs.fuzzyWuzzy)
implementation(libs.dokkaGradlePlugin)
implementation(libs.dependencyLicenseGradlePlugin)
implementation(libs.kover)

// check api surface
Expand All @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -86,4 +87,8 @@ fun Project.androidLibraryConfig() {
}
}
}

extensionConfig<DependencyLicensesExtension> {
transitiveDependencies = true
}
}

This file was deleted.

Loading

0 comments on commit 4a3bc9f

Please sign in to comment.