Skip to content

Gradle Builder and java library plugin

Raymond Augé edited this page Nov 11, 2019 · 2 revisions

Gradle Builder and java-library plugin

When using the java-library plugin, multi-module project dependencies (e.g. api(project(":foo"))) only require the classes folder for compilation. Thus the output jars are not built and bnd will not be able to observer OSGi metadata for those projects.

The solution is to apply the system property org.gradle.java.compile-classpath-packaging=true which was designed as part of the solution to a memory issue.

See https://docs.gradle.org/current/userguide/java_library_plugin.html#sub:java_library_known_issues_windows_performance

Clone this wiki locally