diff --git a/build-logic/preprocess-workflows/preprocess-workflows.gradle b/build-logic/preprocess-workflows/preprocess-workflows.gradle index 23aff703d6..f8c79aa04d 100644 --- a/build-logic/preprocess-workflows/preprocess-workflows.gradle +++ b/build-logic/preprocess-workflows/preprocess-workflows.gradle @@ -4,7 +4,7 @@ plugins { } dependencies { - implementation('org.jetbrains.kotlin:kotlin-compiler-embeddable:1.8.20') + implementation('org.jetbrains.kotlin:kotlin-compiler-embeddable:2.1.0') } gradlePlugin { diff --git a/build-logic/preprocess-workflows/src/main/groovy/org/spockframework/gradle/PreprocessWorkflowsPlugin.groovy b/build-logic/preprocess-workflows/src/main/groovy/org/spockframework/gradle/PreprocessWorkflowsPlugin.groovy index d9136c9074..4f4429e147 100644 --- a/build-logic/preprocess-workflows/src/main/groovy/org/spockframework/gradle/PreprocessWorkflowsPlugin.groovy +++ b/build-logic/preprocess-workflows/src/main/groovy/org/spockframework/gradle/PreprocessWorkflowsPlugin.groovy @@ -41,11 +41,11 @@ import static org.jetbrains.kotlin.cli.jvm.compiler.EnvironmentConfigFiles.JVM_C class PreprocessWorkflowsPlugin implements Plugin { void apply(Project project) { def kotlinCompilerClasspath = project.configurations.detachedConfiguration( - project.dependencies.create('org.jetbrains.kotlin:kotlin-compiler:1.8.20'), - project.dependencies.create('org.jetbrains.kotlin:kotlin-scripting-compiler:1.8.20') + project.dependencies.create('org.jetbrains.kotlin:kotlin-compiler:2.1.0'), + project.dependencies.create('org.jetbrains.kotlin:kotlin-scripting-compiler:2.1.0') ) def kotlinScriptClasspath = project.configurations.detachedConfiguration( - project.dependencies.create('org.jetbrains.kotlin:kotlin-main-kts:1.8.20') { ModuleDependency it -> + project.dependencies.create('org.jetbrains.kotlin:kotlin-main-kts:2.1.0') { ModuleDependency it -> it.transitive = false } ) @@ -109,7 +109,7 @@ class PreprocessWorkflowsPlugin implements Plugin { .findFile( new CoreLocalVirtualFile( new CoreLocalFileSystem(), - workflowScript + workflowScript.toPath() ) ) .with { it as KtFile }