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
Copy file name to clipboardExpand all lines: README.MD
+86-5Lines changed: 86 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -167,21 +167,35 @@ dependencies {
167
167
## Define Module versions in a version catalog
168
168
169
169
Alternatively, versions can be defined in the `[version]` block of a [version catalog](https://docs.gradle.org/current/userguide/platforms.html#sub:version-catalog).
170
-
-*Note:* Since `.` is not supported, you need to use `_` as delimiter in the module names.
170
+
-*Note, if you use the _libs.versions.toml_ notation:* Since `.` is not supported, you need to use `_` as delimiter in the module names.
-_If_ you use a catalog, the plugin will warn if a version it looks for is missing.
183
197
You can turn these warnings off using `warnForMissingVersions.set(false)`.
184
-
-_If_ you use a catalog with a custom name (not `libs`), you can tell the plugin using `getVersionCatalogName.set("customName")`.
198
+
-_If_ you use a catalog with a custom name (not `libs`), you can tell the plugin using `versionCatalogName.set("customName")`.
185
199
186
200
## Find the latest stable version of a Module
187
201
@@ -236,16 +250,83 @@ org_slf4j_simple = "1.7.36"
236
250
237
251
## Check module-info.java files
238
252
239
-
You can use the `checkAllModuleInfo` check task to fail the build if require directives are not defined in alphabetical order in your `module-info.java` files.
253
+
You can use the `checkAllModuleInfo` check task to validate all `module-info.java` files for the following:
254
+
255
+
- Do the _requires_ directives correspond to what is needed in the source code?
256
+
To activate this functionality, you need to apply the [com.autonomousapps.dependency-analysis](https://github.com/autonomousapps/dependency-analysis-android-gradle-plugin) in the root project.
257
+
- Are the _requires_ directives defined in alphabetical order?
240
258
241
259
## Analyze Module Paths
242
260
243
-
You can use the `analyzeModulePath` help task to analyse the Module Paths of a project.
261
+
You can use the `moduleDependencies` and `analyzeModulePath` help task to analyse the Module Paths of a project.
244
262
It will show you which Modules are used and to which GAV coordinates they map.
245
263
It will also print potential issues - like Jars that are not Modules
246
264
(and are therefore put on the classpath)
247
265
or wrong custom mappings from Module Names to GAs where the Jars are not Modules.
0 commit comments