@@ -52,19 +52,17 @@ repositories {
52
52
}
53
53
}
54
54
55
- pluginBundle {
55
+ gradlePlugin {
56
56
website = " https://github.com/Kotlin/kotlinx-benchmark"
57
57
vcsUrl = " https://github.com/Kotlin/kotlinx-benchmark.git"
58
- tags = listOf (" benchmarking" , " multiplatform" , " kotlin" )
59
- }
60
58
61
- gradlePlugin {
62
59
plugins {
63
60
register(" benchmarkPlugin" ) {
64
- id = " org.jetbrains.kotlinx.benchmark"
61
+ id = " io.github.fzhinkin.benchmark " // " org.jetbrains.kotlinx.benchmark"
65
62
implementationClass = " kotlinx.benchmark.gradle.BenchmarksPlugin"
66
63
displayName = " Gradle plugin for benchmarking"
67
64
description = " Toolkit for running benchmarks for multiplatform Kotlin code."
65
+ tags.set(listOf (" benchmarking" , " multiplatform" , " kotlin" ))
68
66
}
69
67
}
70
68
}
@@ -178,6 +176,19 @@ if (project.findProperty("publication_repository") == "space") {
178
176
}
179
177
}
180
178
179
+ // Both kotlinx.team.infra and Gradle publish plugins register their own javadocJar artifacts.
180
+ // We remove one of them here to avoid the collision leading to a build failure.
181
+ tasks.withType<AbstractPublishToMaven >().configureEach {
182
+ doFirst {
183
+ this as AbstractPublishToMaven
184
+ val artifactsSet = publication.artifacts
185
+ val javadocJars = artifactsSet.filter { it.classifier == " javadoc" }.toList()
186
+ javadocJars.drop(1 ).forEach {
187
+ artifactsSet.remove(it)
188
+ }
189
+ }
190
+ }
191
+
181
192
apiValidation {
182
193
nonPublicMarkers + = listOf (" kotlinx.benchmark.gradle.internal.KotlinxBenchmarkPluginInternalApi" )
183
194
}
0 commit comments