@@ -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.10.2" )
35- testRuntimeOnly(" org.jetbrains.kotlinx:kotlinx-serialization-core:1.8.0" )
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.10.2" )
42- testParserClasspath(" org.jetbrains.kotlinx:kotlinx-serialization-core-jvm:1.8.0" )
4328}
4429
4530java {
@@ -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- }
0 commit comments