0.11.6. Remove atomicfu from the plugin

This commit is contained in:
Alexander Nozik 2022-06-12 11:15:11 +03:00
parent 0bea2d34a5
commit 0ba70aba5c
No known key found for this signature in database
GPG Key ID: F7FCF2DD25C71357
4 changed files with 3 additions and 20 deletions

View File

@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Deprecated ### Deprecated
### Removed ### Removed
- Atomicfu support inside the plugin
### Fixed ### Fixed

View File

@ -28,7 +28,6 @@ kotlin.explicitApiWarning()
dependencies { dependencies {
api(libs.kotlin.gradle) api(libs.kotlin.gradle)
implementation(libs.atomicfu.gradle)
implementation(libs.binary.compatibility.validator) implementation(libs.binary.compatibility.validator)
implementation(libs.changelog.gradle) implementation(libs.changelog.gradle)
implementation(libs.dokka.gradle) implementation(libs.dokka.gradle)

View File

@ -1,7 +1,7 @@
[versions] [versions]
tools = "0.11.5-kotlin-1.7.0" tools = "0.11.6-kotlin-1.7.0"
kotlin = "1.7.0" kotlin = "1.7.0"
atomicfu = "0.17.2" atomicfu = "0.17.3"
binary-compatibility-validator = "0.9.0" binary-compatibility-validator = "0.9.0"
changelog = "1.3.1" changelog = "1.3.1"
dokka = "1.6.21" dokka = "1.6.21"

View File

@ -1,6 +1,5 @@
package ru.mipt.npm.gradle package ru.mipt.npm.gradle
import kotlinx.atomicfu.plugin.gradle.AtomicFUGradlePlugin
import org.gradle.api.Project import org.gradle.api.Project
import org.gradle.api.plugins.ApplicationPlugin import org.gradle.api.plugins.ApplicationPlugin
import org.gradle.kotlin.dsl.apply import org.gradle.kotlin.dsl.apply
@ -57,22 +56,6 @@ public class KScienceExtension(public val project: Project) {
dependencyConfiguration = configuration dependencyConfiguration = configuration
) )
/**
* Use kotlinx-atomicfu plugin and library
*/
public fun useAtomic(
version: String = KScienceVersions.atomicVersion,
sourceSet: DependencySourceSet = DependencySourceSet.MAIN,
configuration: DependencyConfiguration = DependencyConfiguration.IMPLEMENTATION,
): Unit = project.run {
apply<AtomicFUGradlePlugin>()
useCommonDependency(
"org.jetbrains.kotlinx:atomicfu:$version",
dependencySourceSet = sourceSet,
dependencyConfiguration = configuration
)
}
/** /**
* Use core serialization library and configure targets * Use core serialization library and configure targets
*/ */