Contents

API Documentation: JvmJarBinary

Configuration for a JVM JAR binary. A JVM JAR refers to a JAR binary containing only the compiled classes. It is always present and the instance is shared across all variants. If the JNI library has only a single variant, the produced JAR will also contain theshared library binary.

The binary is accessible via the library’s BinaryView containing all the binary instance of a library:

plugins {
    id 'dev.nokee.jni-library'
    id 'dev.nokee.cpp-language'
    id 'java'
}

import dev.nokee.platform.jni.JvmJarBinary

library {
    binaries.withType(JvmJarBinary).configureEach {
        // ...
    }
}

The binary is also accessible via the variant’s BinaryView containing only the binaries instance for a specific variant:

plugins {
    id 'dev.nokee.jni-library'
    id 'dev.nokee.cpp-language'
    id 'java'
}

import dev.nokee.platform.jni.JvmJarBinary

library {
    variants.configureEach {
        binaries.withType(JvmJarBinary).configureEach {
            // ...
        }
    }
}

Properties

Property Description

jarTask

The Jar task for this binary.

Methods

No methods.