Kotlin JVM Easy JNI using SWIG and Gradle CPP
This article demonstrates easy way of generating C++ stub code including Java Generation for the corresponding C++ Classes using SWIG
The Gradle KTS project contains a sub module which contains the main source code, the header file and the SWIG file
The Gradle KTS is written in such way it will call the "swig" command line and generates the wrappers and copies the files to corresponding locations
The C++ compiler is auto chosen by Gradle cpp-library plugin, there is no need to write CMake or MakeFile or batch files for that