Reputation: 11
I am new to Kotlin and I am struggle with the designing of one Kotlin project that its classes and functions can be called from other Kotlin project. The language I use is pure Kotlin. What is the procedure to build such Kotlin project? (that its classes and functions call be called by other Kotlin project) And what procedure for project B to call classes and functions from project A? Thank you very much.
Upvotes: 1
Views: 236
Reputation: 3390
Just the same as Java (where there will be a lot more online documentation). In short the brief process is
groupName
artefactName
version
groupName
artefactName
version
. Secondly, inside the Project B code you import
the package where the entry point is for your codeIf you use an IDE like Eclipse or IntelliJ it will guide you through a lot of it. There are many tutorials... but I suggest you go looking first for java because of the very large number of tutorials/videos to choose from and then when you get that working start afresh with Kotlin
Upvotes: 3