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
Otherwise we will get (even when configuration cache is disabled):
'Cannot obtain value from provider of FileTextValueSource at
configuration time.
Use a provider returned by 'forUseAtConfigurationTime()' instead.'
Copy file name to clipboardExpand all lines: README.MD
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Gradle Plugin: Java Module Dependencies
2
2
3
-
A Gradle 7+ plugin to make Gradle use dependencies from _module-info.java_ files automatically.
3
+
A Gradle 7.4+ plugin to make Gradle use dependencies from _module-info.java_ files automatically.
4
4
If you have a project that fully uses Java Modules, you do **not** need to declare dependencies in the `dependencies { }` block anymore
5
5
(except for _runtimeOnly_ dependencies).
6
6
Gradle will use the information from your `module-info.java` directly.
@@ -118,7 +118,7 @@ dependencies {
118
118
}
119
119
```
120
120
121
-
## Define Module versions in a version catalog (Gradle 7.4+)
121
+
## Define Module versions in a version catalog
122
122
123
123
Alternatively, versions can be defined in the `[version]` block of a [version catalog](https://docs.gradle.org/current/userguide/platforms.html#sub:version-catalog).
124
124
-*Note:* Since `.` is not supported, you need to use `_` as delimiter in the module names.
@@ -253,7 +253,7 @@ extraJavaModuleInfo {
253
253
}
254
254
```
255
255
256
-
## Using Gradle's configuration cache (Gradle 7.4+)
256
+
## Using Gradle's configuration cache
257
257
258
258
This plugin reads all your `module-info.java` files during build configuration.
259
259
This is, because they provide the additional dependency information for setting up the build correctly.
0 commit comments