From 405f4f61c222b3a280a2465628c404278f46093e Mon Sep 17 00:00:00 2001 From: Xavier Gouchet Date: Tue, 30 Mar 2021 10:37:15 +0200 Subject: [PATCH] :green_heart: Add Pom file generation data --- .../com/datadog/gradle/config/MavenConfig.kt | 33 ++++++++++++++++++- dd-sdk-android-coil/build.gradle.kts | 4 ++- dd-sdk-android-fresco/build.gradle.kts | 4 ++- dd-sdk-android-glide/build.gradle.kts | 4 ++- dd-sdk-android-ktx/build.gradle.kts | 4 ++- dd-sdk-android-ndk/build.gradle.kts | 4 ++- dd-sdk-android-rx/build.gradle.kts | 4 ++- dd-sdk-android-sqldelight/build.gradle.kts | 4 ++- dd-sdk-android-timber/build.gradle.kts | 4 ++- dd-sdk-android/build.gradle.kts | 2 +- 10 files changed, 57 insertions(+), 10 deletions(-) diff --git a/buildSrc/src/main/kotlin/com/datadog/gradle/config/MavenConfig.kt b/buildSrc/src/main/kotlin/com/datadog/gradle/config/MavenConfig.kt index 67f2a7d5e6..a0aa7be062 100644 --- a/buildSrc/src/main/kotlin/com/datadog/gradle/config/MavenConfig.kt +++ b/buildSrc/src/main/kotlin/com/datadog/gradle/config/MavenConfig.kt @@ -20,7 +20,7 @@ object MavenConfig { } @Suppress("UnstableApiUsage") -fun Project.publishingConfig() { +fun Project.publishingConfig(projectDescription: String) { val projectName = name afterEvaluate { @@ -51,6 +51,37 @@ fun Project.publishingConfig() { groupId = MavenConfig.GROUP_ID artifactId = projectName version = AndroidConfig.VERSION.name + + pom { + name.set(projectName) + description.set(projectDescription) + url.set("https://github.com/DataDog/dd-sdk-android/") + + licenses { + license { + name.set("Apache-2.0") + url.set("https://www.apache.org/licenses/LICENSE-2.0") + } + } + organization { + name.set("Datadog") + url.set("https://www.datadoghq.com/") + } + developers { + developer { + name.set("Datadog") + email.set("info@datadoghq.com") + organization.set("Datadog") + organizationUrl.set("https://www.datadoghq.com/") + } + } + + scm { + url.set("https://github.com/DataDog/dd-sdk-android/") + connection.set("scm:git:git@github.com:Datadog/dd-sdk-android.git") + developerConnection.set("scm:git:git@github.com:Datadog/dd-sdk-android.git") + } + } } } diff --git a/dd-sdk-android-coil/build.gradle.kts b/dd-sdk-android-coil/build.gradle.kts index d6e33e4b3e..a1572bf1d4 100644 --- a/dd-sdk-android-coil/build.gradle.kts +++ b/dd-sdk-android-coil/build.gradle.kts @@ -96,4 +96,6 @@ junitConfig() jacocoConfig() javadocConfig() dependencyUpdateConfig() -publishingConfig() +publishingConfig( + "A Coil integration to use with the Datadog monitoring library for Android applications." +) diff --git a/dd-sdk-android-fresco/build.gradle.kts b/dd-sdk-android-fresco/build.gradle.kts index 1bb831a3d0..f919a643d6 100644 --- a/dd-sdk-android-fresco/build.gradle.kts +++ b/dd-sdk-android-fresco/build.gradle.kts @@ -96,4 +96,6 @@ junitConfig() jacocoConfig() javadocConfig() dependencyUpdateConfig() -publishingConfig() +publishingConfig( + "A Fresco integration to use with the Datadog monitoring library for Android applications." +) diff --git a/dd-sdk-android-glide/build.gradle.kts b/dd-sdk-android-glide/build.gradle.kts index 08d3a7154b..930f3fc44d 100644 --- a/dd-sdk-android-glide/build.gradle.kts +++ b/dd-sdk-android-glide/build.gradle.kts @@ -100,4 +100,6 @@ junitConfig() jacocoConfig() javadocConfig() dependencyUpdateConfig() -publishingConfig() +publishingConfig( + "A Glide integration to use with the Datadog monitoring library for Android applications." +) diff --git a/dd-sdk-android-ktx/build.gradle.kts b/dd-sdk-android-ktx/build.gradle.kts index 3f63958618..998c6829a3 100644 --- a/dd-sdk-android-ktx/build.gradle.kts +++ b/dd-sdk-android-ktx/build.gradle.kts @@ -98,4 +98,6 @@ junitConfig() jacocoConfig() javadocConfig() dependencyUpdateConfig() -publishingConfig() +publishingConfig( + "A Kotlin integration to use with the Datadog monitoring library for Android applications." +) diff --git a/dd-sdk-android-ndk/build.gradle.kts b/dd-sdk-android-ndk/build.gradle.kts index 616ce93836..cb589634d2 100644 --- a/dd-sdk-android-ndk/build.gradle.kts +++ b/dd-sdk-android-ndk/build.gradle.kts @@ -132,4 +132,6 @@ junitConfig() jacocoConfig() javadocConfig() dependencyUpdateConfig() -publishingConfig() +publishingConfig( + "An NDK integration to use with the Datadog monitoring library for Android applications." +) diff --git a/dd-sdk-android-rx/build.gradle.kts b/dd-sdk-android-rx/build.gradle.kts index f28dfb027b..dbbacda853 100644 --- a/dd-sdk-android-rx/build.gradle.kts +++ b/dd-sdk-android-rx/build.gradle.kts @@ -95,4 +95,6 @@ junitConfig() jacocoConfig() javadocConfig() dependencyUpdateConfig() -publishingConfig() +publishingConfig( + "A RxJava integration to use with the Datadog monitoring library for Android applications." +) diff --git a/dd-sdk-android-sqldelight/build.gradle.kts b/dd-sdk-android-sqldelight/build.gradle.kts index 096dafbc58..719c8742a8 100644 --- a/dd-sdk-android-sqldelight/build.gradle.kts +++ b/dd-sdk-android-sqldelight/build.gradle.kts @@ -95,4 +95,6 @@ junitConfig() jacocoConfig() javadocConfig() dependencyUpdateConfig() -publishingConfig() +publishingConfig( + "A SQLDelight integration to use with the Datadog monitoring library for Android applications." +) diff --git a/dd-sdk-android-timber/build.gradle.kts b/dd-sdk-android-timber/build.gradle.kts index 4d5e966db5..2bc8e19e58 100644 --- a/dd-sdk-android-timber/build.gradle.kts +++ b/dd-sdk-android-timber/build.gradle.kts @@ -95,4 +95,6 @@ junitConfig() jacocoConfig() javadocConfig() dependencyUpdateConfig() -publishingConfig() +publishingConfig( + "A Timber integration to use with the Datadog monitoring library for Android applications." +) diff --git a/dd-sdk-android/build.gradle.kts b/dd-sdk-android/build.gradle.kts index de015bfbee..225f707ff7 100644 --- a/dd-sdk-android/build.gradle.kts +++ b/dd-sdk-android/build.gradle.kts @@ -178,4 +178,4 @@ junitConfig() jacocoConfig() javadocConfig() dependencyUpdateConfig() -publishingConfig() +publishingConfig("Datadog monitoring library for Android applications.")