File tree Expand file tree Collapse file tree 3 files changed +29
-0
lines changed
Expand file tree Collapse file tree 3 files changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -714,6 +714,18 @@ publish:release-rum:
714714 - !reference [.snippets, set-publishing-credentials]
715715 - ./gradlew :features:dd-sdk-android-rum:publishToSonatype --stacktrace --no-daemon
716716
717+ publish:release-benchmark :
718+ tags : [ "arch:amd64" ]
719+ only :
720+ - tags
721+ - develop
722+ image : $CI_IMAGE_DOCKER
723+ stage : publish
724+ timeout : 30m
725+ script :
726+ - !reference [.snippets, set-publishing-credentials]
727+ - ./gradlew :tools:benchmark:publishToSonatype --stacktrace --no-daemon
728+
717729# SLACK NOTIFICATIONS
718730
719731notify:publish-develop-success :
Original file line number Diff line number Diff line change @@ -10,11 +10,15 @@ import com.datadog.gradle.config.dependencyUpdateConfig
1010import com.datadog.gradle.config.java17
1111import com.datadog.gradle.config.junitConfig
1212import com.datadog.gradle.config.kotlinConfig
13+ import com.datadog.gradle.config.publishingConfig
1314
1415plugins {
1516 id(" com.android.library" )
1617 kotlin(" android" )
1718 id(" com.github.ben-manes.versions" )
19+
20+ `maven- publish`
21+ signing
1822}
1923
2024android {
@@ -55,3 +59,4 @@ kotlinConfig()
5559junitConfig()
5660dependencyUpdateConfig()
5761androidLibraryConfig()
62+ publishingConfig(" An internal benchmarking tool to measure the overhead of Datadog SDK" )
Original file line number Diff line number Diff line change 44 * Copyright 2016-Present Datadog, Inc.
55 */
66
7+ import com.android.build.gradle.tasks.SourceJarTask
78import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
89
910val generateTraceModelsTaskName = " generateTraceModelsFromJson"
@@ -20,4 +21,15 @@ afterEvaluate {
2021 tasks.withType(KotlinCompile ::class .java).configureEach {
2122 dependsOn(generateTraceModelsTaskName)
2223 }
24+
25+ // need to add an explicit dependency, otherwise there is an error during publishing
26+ // Task ':tools:benchmark:sourceReleaseJar' uses this output of task
27+ // ':tools:benchmark:generateTraceModelsFromJson' without
28+ // declaring an explicit or implicit dependency
29+ //
30+ // it is not needed for other modules with similar model generation, because they use KSP,
31+ // and KSP plugin see to establish link between sourcesJar and "generated" folder in general
32+ tasks.withType(SourceJarTask ::class .java) {
33+ dependsOn(generateTraceModelsTaskName)
34+ }
2335}
You can’t perform that action at this time.
0 commit comments