File tree Expand file tree Collapse file tree 9 files changed +45
-21
lines changed
src/main/kotlin/kotlinx/atomicfu/plugin/gradle
integration-testing/examples
mpp-version-catalog/shared
multi-module-test/producer Expand file tree Collapse file tree 9 files changed +45
-21
lines changed Original file line number Diff line number Diff line change @@ -112,28 +112,53 @@ operations. They can be also atomically modified via `+=` and `-=` operators.
112
112
### Apply plugin
113
113
#### Gradle configuration
114
114
115
- In top-level build file:
115
+ > ** New plugin id:** Please pay attention, that starting from version ` 0.25.0 ` the plugin id is ` org.jetbrains.kotlinx.atomicfu `
116
+
117
+ Add the following to your top-level build file:
118
+
119
+ <details open >
120
+ <summary >Kotlin</summary >
121
+
122
+ ``` kotlin
123
+ plugins {
124
+ id(" org.jetbrains.kotlinx.atomicfu" ) version " 0.25.0"
125
+ }
126
+ ```
127
+ </details >
128
+
129
+ <details open >
130
+ <summary >Groovy</summary >
131
+
132
+ ``` groovy
133
+ plugins {
134
+ id 'org.jetbrains.kotlinx.atomicfu' version '0.25.0'
135
+ }
136
+ ```
137
+ </details >
138
+
139
+
140
+ #### Legacy plugin application
116
141
117
142
<details open >
118
- <summary >Kotlin DSL </summary >
143
+ <summary >Kotlin</summary >
119
144
120
145
``` kotlin
121
146
buildscript {
122
- repositories {
123
- mavenCentral()
124
- }
147
+ repositories {
148
+ mavenCentral()
149
+ }
125
150
126
- dependencies {
127
- classpath(" org.jetbrains.kotlinx:atomicfu-gradle-plugin:0.24.0" )
128
- }
151
+ dependencies {
152
+ classpath(" org.jetbrains.kotlinx:atomicfu-gradle-plugin:0.24.0" )
153
+ }
129
154
}
130
155
131
- apply (plugin = " kotlinx- atomicfu" )
156
+ apply (plugin = " org.jetbrains. kotlinx. atomicfu" )
132
157
```
133
158
</details >
134
159
135
160
<details >
136
- <summary >Groovy DSL </summary >
161
+ <summary >Groovy</summary >
137
162
138
163
``` groovy
139
164
buildscript {
@@ -145,7 +170,7 @@ buildscript {
145
170
}
146
171
}
147
172
148
- apply plugin: 'kotlinx- atomicfu'
173
+ apply plugin: 'org.jetbrains. kotlinx. atomicfu'
149
174
```
150
175
</details >
151
176
Original file line number Diff line number Diff line change @@ -53,10 +53,11 @@ gradlePlugin {
53
53
54
54
plugins {
55
55
create(" Atomicfu" ) {
56
- id = " kotlinx- atomicfu"
56
+ id = " org.jetbrains. kotlinx. atomicfu"
57
57
implementationClass = " kotlinx.atomicfu.plugin.gradle.AtomicFUGradlePlugin"
58
58
displayName = " Gradle plugin for kotlinx-atomicfu library"
59
59
description = " Enables efficient use of atomic operations in Kotlin multiplatform projects."
60
+ tags = setOf (" kotlinx-atomicfu" , " atomics" , " kotlin" )
60
61
}
61
62
}
62
63
}
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ internal class AtomicfuKotlinCompilerPluginInternal : KotlinCompilerPluginSuppor
33
33
kotlinCompilation : KotlinCompilation <* >
34
34
): Provider <List <SubpluginOption >> = kotlinCompilation.target.project.provider { emptyList() }
35
35
36
- override fun getCompilerPluginId () = " org.jetbrains.kotlinx .atomicfu"
36
+ override fun getCompilerPluginId () = " org.jetbrains.kotlin .atomicfu"
37
37
38
38
// Gets "org.jetbrains.kotlin:kotlin-atomicfu-compiler-plugin-embeddable:{KGP version}"
39
39
override fun getPluginArtifact (): SubpluginArtifact {
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ version = "DUMMY_VERSION"
5
5
6
6
plugins {
7
7
kotlin(" jvm" ) version libs.versions.kotlinVersion.get()
8
- id(" kotlinx- atomicfu" ) version libs.versions.atomicfuVersion.get()
8
+ id(" org.jetbrains. kotlinx. atomicfu" ) version libs.versions.atomicfuVersion.get()
9
9
`maven- publish`
10
10
}
11
11
Original file line number Diff line number Diff line change @@ -4,12 +4,10 @@ version = "DUMMY_VERSION"
4
4
plugins {
5
5
application
6
6
kotlin(" jvm" ) version libs.versions.kotlinVersion.get()
7
- id(" kotlinx- atomicfu" ) version libs.versions.atomicfuVersion.get()
7
+ id(" org.jetbrains. kotlinx. atomicfu" ) version libs.versions.atomicfuVersion.get()
8
8
`maven- publish`
9
9
}
10
10
11
- apply (plugin = " kotlinx-atomicfu" )
12
-
13
11
repositories {
14
12
mavenCentral()
15
13
maven(" https://maven.pkg.jetbrains.space/kotlin/p/kotlin/dev" )
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ version = "DUMMY_VERSION"
10
10
plugins {
11
11
kotlin(" multiplatform" ) version libs.versions.kotlinVersion.get()
12
12
`maven- publish`
13
- id(" kotlinx- atomicfu" ) version libs.versions.atomicfuVersion.get()
13
+ id(" org.jetbrains. kotlinx. atomicfu" ) version libs.versions.atomicfuVersion.get()
14
14
}
15
15
16
16
repositories {
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ repositories {
12
12
13
13
plugins {
14
14
alias(libs.plugins.kotlinMultiplatform)
15
- id(" kotlinx- atomicfu" ) version libs.versions.atomicfu.get()
15
+ id(" org.jetbrains. kotlinx. atomicfu" ) version libs.versions.atomicfu.get()
16
16
}
17
17
18
18
kotlin {
Original file line number Diff line number Diff line change 1
1
plugins {
2
2
kotlin(" multiplatform" ) version libs.versions.kotlinVersion.get()
3
- id(" kotlinx- atomicfu" ) version libs.versions.atomicfuVersion.get()
3
+ id(" org.jetbrains. kotlinx. atomicfu" ) version libs.versions.atomicfuVersion.get()
4
4
}
5
5
6
6
repositories {
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ buildscript {
17
17
}
18
18
// Apply KGP via buildscript to check this issue: #384
19
19
apply plugin : ' org.jetbrains.kotlin.multiplatform'
20
- apply plugin : ' kotlinx- atomicfu'
20
+ apply plugin : ' org.jetbrains. kotlinx. atomicfu'
21
21
22
22
repositories {
23
23
mavenCentral()
You can’t perform that action at this time.
0 commit comments