From 5ef0b52ac5391f7c1eacf00566358c62f42fc9b5 Mon Sep 17 00:00:00 2001 From: Ilya Chernikov Date: Mon, 24 Apr 2023 17:14:35 +0200 Subject: [PATCH] Add test to the fix of maven script executor related to the fix of #KT-58101 --- .../pom.xml | 45 +++++++++++++++++++ .../verify.bsh | 3 ++ 2 files changed, 48 insertions(+) create mode 100644 libraries/tools/kotlin-maven-plugin-test/src/it/java17/test-executeKotlinScriptInlineJdkDep/pom.xml create mode 100644 libraries/tools/kotlin-maven-plugin-test/src/it/java17/test-executeKotlinScriptInlineJdkDep/verify.bsh diff --git a/libraries/tools/kotlin-maven-plugin-test/src/it/java17/test-executeKotlinScriptInlineJdkDep/pom.xml b/libraries/tools/kotlin-maven-plugin-test/src/it/java17/test-executeKotlinScriptInlineJdkDep/pom.xml new file mode 100644 index 00000000000..e6269ba706a --- /dev/null +++ b/libraries/tools/kotlin-maven-plugin-test/src/it/java17/test-executeKotlinScriptInlineJdkDep/pom.xml @@ -0,0 +1,45 @@ + + + 4.0.0 + + org.jetbrains.kotlin + test-executeKotlinScriptInline + 1.0-SNAPSHOT + + + + org.jetbrains.kotlin + kotlin-stdlib + ${kotlin.version} + + + + + ${project.basedir}/src/main/kotlin + + + kotlin-maven-plugin + org.jetbrains.kotlin + ${kotlin.version} + + + execute-kotlin-script + compile + + script + + + + + + + + + + + \ No newline at end of file diff --git a/libraries/tools/kotlin-maven-plugin-test/src/it/java17/test-executeKotlinScriptInlineJdkDep/verify.bsh b/libraries/tools/kotlin-maven-plugin-test/src/it/java17/test-executeKotlinScriptInlineJdkDep/verify.bsh new file mode 100644 index 00000000000..3ba79556084 --- /dev/null +++ b/libraries/tools/kotlin-maven-plugin-test/src/it/java17/test-executeKotlinScriptInlineJdkDep/verify.bsh @@ -0,0 +1,3 @@ +source(new File(basedir, "../../../../verify-common.bsh").getAbsolutePath()); + +assertBuildLogHasLine("Hello from inline Kotlin script using java!") \ No newline at end of file