Skip to content

Commit

Permalink
Fix Gradle tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
TadeasKriz committed Nov 25, 2024
1 parent 288113f commit 93bc432
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import org.jetbrains.kotlin.backend.konan.objcexport.getClassIfCategory
import org.jetbrains.kotlin.backend.konan.objcexport.isObjCProperty
import org.jetbrains.kotlin.backend.konan.objcexport.isTopLevel

actual object ObjCExportMapperShim {
internal actual object ObjCExportMapperShim {
actual fun isSpecialMapped(
mapper: ObjCExportMapper,
descriptor: ClassDescriptor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import org.jetbrains.kotlin.backend.konan.objcexport.getClassIfCategory
import org.jetbrains.kotlin.backend.konan.objcexport.isObjCProperty
import org.jetbrains.kotlin.backend.konan.objcexport.isTopLevel

actual object ObjCExportMapperShim {
internal actual object ObjCExportMapperShim {
actual fun isSpecialMapped(
mapper: ObjCExportMapper,
descriptor: ClassDescriptor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import org.jetbrains.kotlin.descriptors.CallableMemberDescriptor
import org.jetbrains.kotlin.descriptors.ClassDescriptor
import org.jetbrains.kotlin.descriptors.PropertyDescriptor

expect object ObjCExportMapperShim {
internal expect object ObjCExportMapperShim {
fun isSpecialMapped(mapper: ObjCExportMapper, descriptor: ClassDescriptor): Boolean

fun isTopLevel(mapper: ObjCExportMapper, descriptor: CallableMemberDescriptor): Boolean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,17 +148,17 @@ class SkieMultiCompileRuntime: Plugin<Project> {
smokeTestTmpRepositoryPath: String?,
): TaskProvider<Copy> {
return tasks.register<Copy>("copyProject__$name") {
from(extension.sourceDir) {
include(extension.sourceIncludes.get())
filter(
ReplaceTokens::class,
"tokens" to mapOf(
"targetKotlinVersion" to kotlinVersion.toString(),
"artifactIdSuffix" to artifactIdSuffix,
"targets" to extension.supportedTargetsWithDeclarations(kotlinVersion).joinToString("\n") { (_, declaration) -> declaration },
"dependencies" to extension.dependencies.get().invoke(kotlinVersion),
"smokeTestTmpRepositoryConfiguration" to smokeTestTmpRepositoryPath?.let {
"""
group = "other"
description = "Copy project files for Kotlin $name"

val tokens = provider {
mapOf(
"targetKotlinVersion" to kotlinVersion.toString(),
"artifactIdSuffix" to artifactIdSuffix,
"targets" to extension.supportedTargetsWithDeclarations(kotlinVersion).joinToString("\n") { (_, declaration) -> declaration },
"dependencies" to extension.dependencies.get().invoke(kotlinVersion),
"smokeTestTmpRepositoryConfiguration" to smokeTestTmpRepositoryPath?.let {
"""
publishing {
repositories {
maven {
Expand All @@ -168,8 +168,16 @@ class SkieMultiCompileRuntime: Plugin<Project> {
}
}
""".trimIndent()
}.orEmpty(),
)
}.orEmpty(),
)
}

inputs.property("tokens", tokens)
from(extension.sourceDir) {
include(extension.sourceIncludes.get())
filter(
ReplaceTokens::class,
"tokens" to tokens.get()
)
}
into(layout.buildDirectory.dir("${this@registerCopyTask.name}_$name"))
Expand Down

0 comments on commit 93bc432

Please sign in to comment.