api / org.gradle.api.plugins.osgi / OsgiManifest / setClasspath

setClasspath

abstract fun setClasspath(classpath: FileCollection): Unit

A convenient method for setting a Bundle-Classpath instruction. The information of the classpath elements are only used if they are OSGi bundles. In this case for example the version information provided by the bundle is used in the Import-Package of the generated OSGi bundle.

Parameters

classpath - The classpath elements