A
A
AlexF2018-03-21 14:29:33
gradle
AlexF, 2018-03-21 14:29:33

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

2 answer(s)
A
AleexF, 2018-06-14
@AleexF

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.

S
sim31r, 2019-12-15
@sim31r

Video instruction, maybe someone will come in handy
https://www.youtube.com/watch?v=BFFtlNHXJqg

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question