Skip to content

Remove usage of internal Gradle API #548

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion atomicfu-gradle-plugin/api/atomicfu-gradle-plugin.api
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public final class kotlinx/atomicfu/plugin/gradle/AtomicFUPluginExtension {
public final fun setVerbose (Z)V
}

public abstract class kotlinx/atomicfu/plugin/gradle/AtomicFUTransformTask : org/gradle/api/internal/ConventionTask {
public abstract class kotlinx/atomicfu/plugin/gradle/AtomicFUTransformTask : org/gradle/api/DefaultTask {
public field classPath Lorg/gradle/api/file/FileCollection;
public field inputFiles Lorg/gradle/api/file/FileCollection;
public fun <init> ()V
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ package kotlinx.atomicfu.plugin.gradle
import kotlinx.atomicfu.transformer.*
import org.gradle.api.*
import org.gradle.api.file.*
import org.gradle.api.internal.*
import org.gradle.api.provider.Provider
import org.gradle.api.provider.ProviderFactory
import org.gradle.api.tasks.*
Expand Down Expand Up @@ -74,8 +73,8 @@ private fun Project.checkCompatibility(afuPluginVersion: String) {
)
}
if (!kotlinVersion.atLeast(1, 9, 0)) {
// Since Kotlin 1.9.0 the logic of the Gradle plugin from the Kotlin repo (AtomicfuKotlinGradleSubplugin)
// may be moved to the Gradle plugin in the library. The sources of the compiler plugin
// Since Kotlin 1.9.0 the logic of the Gradle plugin from the Kotlin repo (AtomicfuKotlinGradleSubplugin)
// may be moved to the Gradle plugin in the library. The sources of the compiler plugin
// are published as `kotlin-atomicfu-compiler-plugin-embeddable` since Kotlin 1.9.0 and may be accessed out of the Kotlin repo.
error(
"You are applying `kotlinx-atomicfu` plugin of version $afuPluginVersion. " +
Expand Down Expand Up @@ -451,7 +450,7 @@ class AtomicFUPluginExtension(pluginVersion: String?) {
}

@CacheableTask
abstract class AtomicFUTransformTask : ConventionTask() {
abstract class AtomicFUTransformTask : DefaultTask() {
@get:Inject
internal abstract val providerFactory: ProviderFactory

Expand Down