Skip to content

Commit adf0613

Browse files
authored
Move all kotlinx recipes to rewrite-migrate-kotlin (#6791)
* Update kotlinx-coroutines to 1.10.2 and kotlinx-serialization to 1.8.0 - Upgrade kotlinx-coroutines from 1.8.1 to 1.10.2 (49 recipes, up from 37) - Upgrade kotlinx-serialization from 1.6.3 to 1.8.0 - Fix DeprecatedMethodScanner to include extension function receiver types in method patterns - Regenerate type table with updated library versions * Move all kotlinx recipes to rewrite-migrate-kotlin
1 parent b3cd1bc commit adf0613

14 files changed

Lines changed: 0 additions & 2240 deletions

rewrite-kotlin/build.gradle.kts

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ dependencies {
1616
implementation(kotlin("compiler-embeddable", kotlinVersion))
1717
implementation(kotlin("stdlib", kotlinVersion))
1818

19-
testImplementation("org.jetbrains.kotlin:kotlin-metadata-jvm:2.1.0") {
20-
exclude(group = "org.jetbrains.kotlin", module = "kotlin-stdlib")
21-
}
22-
2319
testImplementation("org.junit-pioneer:junit-pioneer:latest.release")
2420
testImplementation(project(":rewrite-test"))
2521
testRuntimeOnly(project(":rewrite-java-21"))
@@ -29,17 +25,6 @@ dependencies {
2925
testImplementation("com.github.ajalt.clikt:clikt:3.5.0")
3026
testImplementation("com.squareup:javapoet:1.13.0")
3127
testImplementation("com.google.testing.compile:compile-testing:0.+")
32-
33-
// Kotlin libraries for KotlinDeprecationRecipeGenerator
34-
testRuntimeOnly("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.1")
35-
testRuntimeOnly("org.jetbrains.kotlinx:kotlinx-serialization-core:1.6.3")
36-
}
37-
38-
recipeDependencies {
39-
// Kotlin libraries with @Deprecated(replaceWith=ReplaceWith(...)) annotations
40-
// Use the JVM variant artifact names since Kotlin multiplatform resolves to these
41-
testParserClasspath("org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.8.1")
42-
testParserClasspath("org.jetbrains.kotlinx:kotlinx-serialization-core-jvm:1.6.3")
4328
}
4429

4530
java {
@@ -59,25 +44,3 @@ tasks.named<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>("compileTestKotlin"
5944
jvmTarget.set(JvmTarget.JVM_21)
6045
}
6146
}
62-
63-
tasks.withType<Test> {
64-
maxHeapSize = "6g"
65-
javaLauncher = javaToolchains.launcherFor {
66-
languageVersion = JavaLanguageVersion.of(21)
67-
}
68-
}
69-
70-
71-
tasks {
72-
val generateKotlinDeprecatedReplaceWithRecipes by registering(JavaExec::class) {
73-
group = "generate"
74-
description = "Generate recipes from Kotlin `@Deprecated` annotations using `ReplaceWith`."
75-
mainClass = "org.openrewrite.kotlin.replace.KotlinDeprecatedRecipeGenerator"
76-
classpath = sourceSets.getByName("test").runtimeClasspath
77-
args(
78-
"org.jetbrains.kotlinx:kotlinx-coroutines-core",
79-
"org.jetbrains.kotlinx:kotlinx-serialization-core"
80-
)
81-
finalizedBy("licenseFormat")
82-
}
83-
}

rewrite-kotlin/src/main/java/org/openrewrite/kotlin/replace/ReplaceKotlinMethod.java

Lines changed: 0 additions & 246 deletions
This file was deleted.

0 commit comments

Comments
 (0)