Skip to content

Commit

Permalink
💚 Add Pom file generation data
Browse files Browse the repository at this point in the history
  • Loading branch information
xgouchet committed Mar 30, 2021
1 parent a57de3f commit 405f4f6
Show file tree
Hide file tree
Showing 10 changed files with 57 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ object MavenConfig {
}

@Suppress("UnstableApiUsage")
fun Project.publishingConfig() {
fun Project.publishingConfig(projectDescription: String) {
val projectName = name

afterEvaluate {
Expand Down Expand Up @@ -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("[email protected]")
organization.set("Datadog")
organizationUrl.set("https://www.datadoghq.com/")
}
}

scm {
url.set("https://github.com/DataDog/dd-sdk-android/")
connection.set("scm:git:[email protected]:Datadog/dd-sdk-android.git")
developerConnection.set("scm:git:[email protected]:Datadog/dd-sdk-android.git")
}
}
}
}

Expand Down
4 changes: 3 additions & 1 deletion dd-sdk-android-coil/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,6 @@ junitConfig()
jacocoConfig()
javadocConfig()
dependencyUpdateConfig()
publishingConfig()
publishingConfig(
"A Coil integration to use with the Datadog monitoring library for Android applications."
)
4 changes: 3 additions & 1 deletion dd-sdk-android-fresco/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,6 @@ junitConfig()
jacocoConfig()
javadocConfig()
dependencyUpdateConfig()
publishingConfig()
publishingConfig(
"A Fresco integration to use with the Datadog monitoring library for Android applications."
)
4 changes: 3 additions & 1 deletion dd-sdk-android-glide/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,6 @@ junitConfig()
jacocoConfig()
javadocConfig()
dependencyUpdateConfig()
publishingConfig()
publishingConfig(
"A Glide integration to use with the Datadog monitoring library for Android applications."
)
4 changes: 3 additions & 1 deletion dd-sdk-android-ktx/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,6 @@ junitConfig()
jacocoConfig()
javadocConfig()
dependencyUpdateConfig()
publishingConfig()
publishingConfig(
"A Kotlin integration to use with the Datadog monitoring library for Android applications."
)
4 changes: 3 additions & 1 deletion dd-sdk-android-ndk/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,6 @@ junitConfig()
jacocoConfig()
javadocConfig()
dependencyUpdateConfig()
publishingConfig()
publishingConfig(
"An NDK integration to use with the Datadog monitoring library for Android applications."
)
4 changes: 3 additions & 1 deletion dd-sdk-android-rx/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,6 @@ junitConfig()
jacocoConfig()
javadocConfig()
dependencyUpdateConfig()
publishingConfig()
publishingConfig(
"A RxJava integration to use with the Datadog monitoring library for Android applications."
)
4 changes: 3 additions & 1 deletion dd-sdk-android-sqldelight/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,6 @@ junitConfig()
jacocoConfig()
javadocConfig()
dependencyUpdateConfig()
publishingConfig()
publishingConfig(
"A SQLDelight integration to use with the Datadog monitoring library for Android applications."
)
4 changes: 3 additions & 1 deletion dd-sdk-android-timber/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,6 @@ junitConfig()
jacocoConfig()
javadocConfig()
dependencyUpdateConfig()
publishingConfig()
publishingConfig(
"A Timber integration to use with the Datadog monitoring library for Android applications."
)
2 changes: 1 addition & 1 deletion dd-sdk-android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -178,4 +178,4 @@ junitConfig()
jacocoConfig()
javadocConfig()
dependencyUpdateConfig()
publishingConfig()
publishingConfig("Datadog monitoring library for Android applications.")

0 comments on commit 405f4f6

Please sign in to comment.