how can i make .kts file import my jar like .gradle.kts?
Answered
I made a kotlin-based toolkit to use kts scripts to do some work,but i dont know how to import my jar in workspace's .kts file to prompt for grammar what in my jar like .gradle.kts
I want to achieve the same effect as the picture above,on kts to add my jar'methods

"git" and "linuxScript" is my jar's method but i can't import it
can i get some ideas to get it?
Please sign in to leave a comment.
With Gradle build files you do this by implementing and adding it as a Gradle plugin - then you will be able to use this plugin in your Gradle build scripts. Please refer to Packaging a plugin in a Gradle documentation about the ways you can include your custom plugin in a project.
Andrey Dernov
It may be a problem with my presentation. I don't want to make a custom plug-in in Gradle, but want to make an IDEA plug-in similar to the Gradle IDEA plug-in.
Or how to add a custom Jar package syntax prompt in the root directory of the IDEA project
IDEA's original package import can only be applied to the project, not the root directory.
Use buildSrc project for this (the 2nd option in the link given above), see this thread https://stackoverflow.com/q/28334174/2000323