[ 
https://issues.apache.org/jira/browse/MINVOKER-263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17277657#comment-17277657
 ] 

Dariusz Kuc commented on MINVOKER-263:
--------------------------------------

While it would be great to support kts scripts I don't think it is feasible at 
this moment. It looks like kts support is still fairly limited - basically it 
can only be run from command line through _kotlinc_ compiler (as per 
[https://kotlinlang.org/docs/tutorials/command-line.html#using-the-command-line-to-run-scripts]).

There is also undocumented [_script_ goal provided by 
_kotlin-maven-plugin_|[https://github.com/JetBrains/kotlin/blob/master/libraries/tools/kotlin-maven-plugin/src/main/java/org/jetbrains/kotlin/maven/ExecuteKotlinScriptMojo.java|https://github.com/JetBrains/kotlin/blob/master/libraries/tools/kotlin-maven-plugin/src/main/java/org/jetbrains/kotlin/maven/ExecuteKotlinScriptMojo.java)]]
 that can be used to run arbitrary Kotlin scripts but it does so by invoking 
the compiler as well.

> integration test support for .kts pre/post hook scripts 
> --------------------------------------------------------
>
>                 Key: MINVOKER-263
>                 URL: https://issues.apache.org/jira/browse/MINVOKER-263
>             Project: Maven Invoker Plugin
>          Issue Type: New Feature
>    Affects Versions: 3.2.1
>            Reporter: Dariusz Kuc
>            Priority: Minor
>
> It would be great if {{maven-invoker-plugin}} could support Kotlin script 
> files (.kts). This would allow to write maven-plugin completely in Kotlin 
> without the need to fallback to Groovy/Java for integration tests.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to