File tree Expand file tree Collapse file tree 8 files changed +20
-8
lines changed
main/src/kotlinx/benchmark/gradle Expand file tree Collapse file tree 8 files changed +20
-8
lines changed Original file line number Diff line number Diff line change
1
+ buildscript {
2
+ repositories {
3
+ mavenLocal()
4
+ }
5
+ dependencies {
6
+ classpath " org.jetbrains.kotlinx:benchmark:0.2.0"
7
+ }
8
+ }
9
+
1
10
plugins {
2
11
id ' java'
3
- id ' kotlinx.benchmark' version ' 0.2.0'
4
12
}
5
13
14
+ apply plugin : ' org.jetbrains.kotlinx.benchmark'
15
+
6
16
dependencies {
7
17
implementation(project(" :kotlinx.benchmark.runtime" ))
8
18
}
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ plugins {
8
8
java
9
9
kotlin(" jvm" )
10
10
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"
12
12
}
13
13
14
14
sourceSets.all {
Original file line number Diff line number Diff line change 1
1
plugins {
2
2
id ' org.jetbrains.kotlin.multiplatform'
3
3
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"
5
5
}
6
6
7
7
// how to apply plugin to a specific source set?
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ plugins {
2
2
id ' java'
3
3
id ' org.jetbrains.kotlin.jvm'
4
4
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'
6
6
}
7
7
8
8
Original file line number Diff line number Diff line change @@ -41,8 +41,10 @@ repositories {
41
41
gradlePlugin {
42
42
plugins {
43
43
benchmarkPlugin {
44
- id = " kotlinx.benchmark"
44
+ id = " org.jetbrains. kotlinx.benchmark"
45
45
implementationClass = " kotlinx.benchmark.gradle.BenchmarksPlugin"
46
+ displayName = " Gradle plugin for benchmarking"
47
+ description = " Toolkit for running benchmarks for multiplatform Kotlin code."
46
48
}
47
49
}
48
50
}
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import org.jetbrains.kotlin.gradle.plugin.*
7
7
@Suppress(" unused" )
8
8
class BenchmarksPlugin : Plugin <Project > {
9
9
companion object {
10
- const val PLUGIN_ID = " kotlinx.benchmark"
10
+ const val PLUGIN_ID = " org.jetbrains. kotlinx.benchmark"
11
11
const val PLUGIN_VERSION = " 0.2.0"
12
12
13
13
const val BENCHMARKS_TASK_GROUP = " benchmark"
Original file line number Diff line number Diff line change @@ -5,4 +5,4 @@ pluginManagement {
5
5
maven { url ' https://plugins.gradle.org/m2/' }
6
6
}
7
7
}
8
- rootProject. name = ' kotlinx. benchmark.gradle '
8
+ rootProject. name = ' benchmark'
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ rootProject.name = 'kotlinx.benchmark'
14
14
15
15
includeBuild(" plugin" ) {
16
16
dependencySubstitution {
17
- substitute module(' kotlinx.benchmark:kotlinx. benchmark.gradle.plugin ' ) with project(' :' )
17
+ substitute module(' org.jetbrains.kotlinx: benchmark' ) with project(' :' )
18
18
}
19
19
}
20
20
You can’t perform that action at this time.
0 commit comments