Answer the question
In order to leave comments, you need to log in
How to compile kotlin project to jar or executable?
Good afternoon. Today I ran into a problem compiling my kotlin project. Searching foreign forums, I found gradle. But I still don't understand how to use it to create an executable file. When used, I get only a project in .class files as an output. If possible, I will ask you to describe in detail the assembly procedure (How to specify all dependencies, where to add something). In advance, I ask you not to advise reading about this on any forum, I tried many ways, and since I'm here, it means they were unsuccessful. Thanks
Answer the question
In order to leave comments, you need to log in
I used IntelliJ IDEA . You need to create a regular kotlin project. In it, go to Settings -> Project structure -> Artifacts . We create a new artifact jar. Select your main class and click create. Then select build -> build artifacts -> build jar . Everything.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question