Skip to content
This repository has been archived by the owner on Nov 26, 2020. It is now read-only.

Latest commit

 

History

History
28 lines (22 loc) · 602 Bytes

README.md

File metadata and controls

28 lines (22 loc) · 602 Bytes

Gjnp is a gradle plugin for generate JNI Header files.

How to use.

Add a plugin to the build.gradle

plugins {
    id 'com.ardikars.gjnp' version '1.0.0.Final' apply false
}

apply plugin: 'com.ardikars.gjnp' 

Configure a plugin.

Gnjp {
    destination = "${rootDir}/gjnp/include" // default: "${buildDir}/jni/include". 
    nativeClasses = ['com.ardikars.gnjp.JniApp', 'com.ardikars.gjnp.GjnpApp'] // default: Empty list.
    // classpath = [''] // add more classpath, default: current project classpath + dependencies classpath (jar).
}