Skip to content

Commit 13b8e0a

Browse files
author
Abduqodiri Qurbonzoda
committed
Change plugin groupId and artifactId
1 parent 0abbc7f commit 13b8e0a

File tree

8 files changed

+20
-8
lines changed

8 files changed

+20
-8
lines changed

examples/java/build.gradle

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
1+
buildscript {
2+
repositories {
3+
mavenLocal()
4+
}
5+
dependencies {
6+
classpath "org.jetbrains.kotlinx:benchmark:0.2.0"
7+
}
8+
}
9+
110
plugins {
211
id 'java'
3-
id 'kotlinx.benchmark' version '0.2.0'
412
}
513

14+
apply plugin: 'org.jetbrains.kotlinx.benchmark'
15+
616
dependencies {
717
implementation(project(":kotlinx.benchmark.runtime"))
818
}

examples/kotlin-kts/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ plugins {
88
java
99
kotlin("jvm")
1010
kotlin("plugin.allopen") version "1.4.0"
11-
id("kotlinx.benchmark") version "0.2.0"
11+
id("org.jetbrains.kotlinx.benchmark") version "0.2.0"
1212
}
1313

1414
sourceSets.all {

examples/kotlin-multiplatform/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
plugins {
22
id 'org.jetbrains.kotlin.multiplatform'
33
id 'org.jetbrains.kotlin.plugin.allopen' version "1.4.0"
4-
id 'kotlinx.benchmark' version "0.2.0"
4+
id 'org.jetbrains.kotlinx.benchmark' version "0.2.0"
55
}
66

77
// how to apply plugin to a specific source set?

examples/kotlin/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ plugins {
22
id 'java'
33
id 'org.jetbrains.kotlin.jvm'
44
id 'org.jetbrains.kotlin.plugin.allopen' version "1.4.0"
5-
id 'kotlinx.benchmark' version '0.2.0'
5+
id 'org.jetbrains.kotlinx.benchmark' version '0.2.0'
66
}
77

88

plugin/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,10 @@ repositories {
4141
gradlePlugin {
4242
plugins {
4343
benchmarkPlugin {
44-
id = "kotlinx.benchmark"
44+
id = "org.jetbrains.kotlinx.benchmark"
4545
implementationClass = "kotlinx.benchmark.gradle.BenchmarksPlugin"
46+
displayName = "Gradle plugin for benchmarking"
47+
description = "Toolkit for running benchmarks for multiplatform Kotlin code."
4648
}
4749
}
4850
}

plugin/main/src/kotlinx/benchmark/gradle/BenchmarksPlugin.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import org.jetbrains.kotlin.gradle.plugin.*
77
@Suppress("unused")
88
class BenchmarksPlugin : Plugin<Project> {
99
companion object {
10-
const val PLUGIN_ID = "kotlinx.benchmark"
10+
const val PLUGIN_ID = "org.jetbrains.kotlinx.benchmark"
1111
const val PLUGIN_VERSION = "0.2.0"
1212

1313
const val BENCHMARKS_TASK_GROUP = "benchmark"

plugin/settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ pluginManagement {
55
maven { url 'https://plugins.gradle.org/m2/' }
66
}
77
}
8-
rootProject.name = 'kotlinx.benchmark.gradle'
8+
rootProject.name = 'benchmark'

settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ rootProject.name = 'kotlinx.benchmark'
1414

1515
includeBuild("plugin") {
1616
dependencySubstitution {
17-
substitute module('kotlinx.benchmark:kotlinx.benchmark.gradle.plugin') with project(':')
17+
substitute module('org.jetbrains.kotlinx:benchmark') with project(':')
1818
}
1919
}
2020

0 commit comments

Comments
 (0)