Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -1191,7 +1191,6 @@ public abstract interface class org/jetbrains/kotlin/gradle/plugin/KotlinSourceS
public abstract fun getCustomSourceFilesExtensions ()Ljava/lang/Iterable;
public abstract fun getDependsOn ()Ljava/util/Set;
public abstract fun getGeneratedKotlin ()Lorg/gradle/api/file/SourceDirectorySet;
public abstract synthetic fun getImplementationMetadataConfigurationName ()Ljava/lang/String;
public abstract fun getKotlin ()Lorg/gradle/api/file/SourceDirectorySet;
public abstract fun getLanguageSettings ()Lorg/jetbrains/kotlin/gradle/plugin/LanguageSettingsBuilder;
public abstract fun getResources ()Lorg/gradle/api/file/SourceDirectorySet;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,6 @@ interface KotlinSourceSet : Named, HasProject, HasMutableExtras, HasKotlinDepend
*/
fun addCustomSourceFilesExtensions(extensions: List<String>) {}

/**
* @suppress
*/
@Deprecated(message = "KT-80897. Keep ABI compatibility with kotlinx-benchmarks", level = DeprecationLevel.HIDDEN)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kotlinx-benchmark does not reference this API anymore (commit that removed the callsite) since 0.4.15 (latest version is 0.4.17).

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you might still not be able to remove it because coroutines seems to still use 0.4.13

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If that's the case, you will need to bump the version in coroutines and then whether we can remove this depend on where exactly the benchmarks were used

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, yeah, we had a similar issue with kotlinx.collections.immutable: https://jetbrains.slack.com/archives/C06QB5UHN9Y/p1787063796944369?thread_ts=1787058758.326779&cid=C06QB5UHN9Y. Let me try to bump the version in coroutines and see if it builds with the latest benchmarks.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stopped safe-merge job for now while I investigate.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

val implementationMetadataConfigurationName: String

/**
* Represents a set of generated Kotlin source files that are included in this [KotlinSourceSet].
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1971,7 +1971,6 @@ public abstract class org/jetbrains/kotlin/gradle/plugin/sources/DefaultKotlinSo
public fun getExtras ()Lorg/jetbrains/kotlin/tooling/core/MutableExtras;
public fun getGeneratedKotlin ()Lorg/gradle/api/file/SourceDirectorySet;
public fun getImplementationConfigurationName ()Ljava/lang/String;
public fun getImplementationMetadataConfigurationName ()Ljava/lang/String;
public fun getKotlin ()Lorg/gradle/api/file/SourceDirectorySet;
public fun getLanguageSettings ()Lorg/jetbrains/kotlin/gradle/plugin/LanguageSettingsBuilder;
public fun getName ()Ljava/lang/String;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,6 @@ abstract class DefaultKotlinSourceSet @Inject constructor(

fun getAdditionalVisibleSourceSets(): List<KotlinSourceSet> = getVisibleSourceSetsFromAssociateCompilations(this)

@Deprecated("KT-80897. Keep ABI compatibility with kotlinx-benchmarks", level = DeprecationLevel.ERROR)
override val implementationMetadataConfigurationName: String
get() = lowerCamelCaseName(implementationConfigurationName, METADATA_CONFIGURATION_NAME_SUFFIX)

@ExperimentalKotlinGradlePluginApi
override val generatedKotlin: SourceDirectorySet = project.objects
.kotlinSourceDirectorySet(name, "generatedKotlin", "generated sources")
Expand Down Expand Up @@ -160,4 +156,4 @@ fun KotlinMultiplatformExtension.findSourceSetsDependingOn(sourceSet: KotlinSour
internal val KotlinSourceSet.defaultImpl: DefaultKotlinSourceSet
get() = (this as? DefaultKotlinSourceSet) ?: throw IllegalArgumentException(
"KotlinSourceSet $name (${this::class}) does not implement ${DefaultKotlinSourceSet::class.simpleName}"
)
)
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,6 @@ internal class DefaultKotlinSourceSetFactory(
override fun setUpSourceSetDefaults(sourceSet: DefaultKotlinSourceSet) {
super.setUpSourceSetDefaults(sourceSet)
sourceSet.resources.srcDir(defaultSourceFolder(project, sourceSet.name, SOURCE_SET_TYPE_RESOURCES))
// Drop in KT-80897
@Suppress("DEPRECATION_ERROR")
project.configurations.maybeCreateResolvable(sourceSet.implementationMetadataConfigurationName) {
attributes.attribute(Usage.USAGE_ATTRIBUTE, project.usageByName(Usage.JAVA_API))
}
}

override fun doCreateSourceSet(name: String): DefaultKotlinSourceSet =
Expand Down