api / org.gradle.api.tasks.bundling / War / getClasspath

getClasspath

@Optional @Classpath open fun getClasspath(): FileCollection

Returns the classpath to include in the WAR archive. Any JAR or ZIP files in this classpath are included in the WEB-INF/lib directory. Any directories in this classpath are included in the WEB-INF/classes directory.

Return
The classpath. Returns an empty collection when there is no classpath to include in the WAR.