Sebastian Schuberth
12/21/2021, 8:45 PM.classpath
file to my project's META-INF
directory, but it seems I also need to add my project's JAR now to the compiler's classpath. How do I actually do that from the IDE? My code changes can be seen at https://github.com/oss-review-toolkit/ort/pull/4887/files#diff-b5d75d77219b5108e66671916d8001890961d0063bbff4e606b13d286374908e.Big Chungus
12/21/2021, 10:03 PMSebastian Schuberth
12/22/2021, 12:46 PM.main.kts
directly, but build my own.Sebastian Schuberth
12/22/2021, 12:57 PMscripting-support.md
are a bit unclear about that. It sounds as if it could also be enough to just create a .classname
file at META-INF/kotlin/script/templates/
and add the corresponding JAR to the compiler's classpath.Sebastian Schuberth
12/22/2021, 3:33 PM@KotlinScript
) and the script to run in the same IntelliJ model / project JAR. Splitting out the script configuration into a separate project, and making the project containing the scripts (as resources) depend on that project solved the highlighting / auto-completion issue, which now works in IntelliJ IDEA.