You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// or granuarly allowing access to a package by specific modules
@@ -164,6 +166,13 @@ sourceSets.all {
164
166
}
165
167
```
166
168
169
+
## How do I deactivate the plugin functionality for my own Jars?
170
+
171
+
A major use case of the plugin is to transform Jars from 3rd party repositories that you do not control.
172
+
By default, however, the plugin looks at all Jars on the module paths – including the Jars Gradle builds from you own modules.
173
+
This is working well in most cases. The jars are analyzed and the plugin detects that they are infact modules and does not modify them.
174
+
You can still optimize the plugin execution to completely skip analysis of locally built Jars by setting `skipLocalJars = true`.
175
+
167
176
## How do I add `provides ... with ...` declarations to the `module-info.class` descriptor?
168
177
169
178
The plugin will automatically retrofit all the available `META-INF/services/*` descriptors into `module-info.class` for you. The `META-INF/services/*` descriptors will be preserved so that a transformed JAR will continue to work if it is placed on the classpath.
@@ -263,15 +272,15 @@ The plugin provides a set of `<sourceSet>moduleDescriptorRecommendations` tasks
263
272
264
273
This task generates module info spec for the JARs that do not contain the proper `module-info.class` descriptors.
265
274
266
-
NOTE: This functionality requires Gradle to be run with Java 11+ and failing on missing module information should be disabled via `failOnMissingModuleInfo.set(false)`.
275
+
NOTE: This functionality requires Gradle to be run with Java 11+ and failing on missing module information should be disabled via `failOnMissingModuleInfo = false`.
267
276
268
277
## How can I ensure there are no automatic modules in my dependency graph?
269
278
270
279
If your goal is to fully modularize your application, you should enable the following configuration setting, which is disabled by default.
0 commit comments