Skip to content

Commit f0dade1

Browse files
committed
Raise minimal Gradle version to 7.4
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.'
1 parent cb7e9a0 commit f0dade1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.MD

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Gradle Plugin: Java Module Dependencies
22

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.
44
If you have a project that fully uses Java Modules, you do **not** need to declare dependencies in the `dependencies { }` block anymore
55
(except for _runtimeOnly_ dependencies).
66
Gradle will use the information from your `module-info.java` directly.
@@ -118,7 +118,7 @@ dependencies {
118118
}
119119
```
120120

121-
## Define Module versions in a version catalog (Gradle 7.4+)
121+
## Define Module versions in a version catalog
122122

123123
Alternatively, versions can be defined in the `[version]` block of a [version catalog](https://docs.gradle.org/current/userguide/platforms.html#sub:version-catalog).
124124
- *Note:* Since `.` is not supported, you need to use `_` as delimiter in the module names.
@@ -253,7 +253,7 @@ extraJavaModuleInfo {
253253
}
254254
```
255255

256-
## Using Gradle's configuration cache (Gradle 7.4+)
256+
## Using Gradle's configuration cache
257257

258258
This plugin reads all your `module-info.java` files during build configuration.
259259
This is, because they provide the additional dependency information for setting up the build correctly.

src/main/java/de/jjohannes/gradle/moduledependencies/JavaModuleDependenciesPlugin.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ public abstract class JavaModuleDependenciesPlugin implements Plugin<Project> {
4444

4545
@Override
4646
public void apply(Project project) {
47-
if (GradleVersion.current().compareTo(GradleVersion.version("7.0")) < 0) {
48-
throw new GradleException("This plugin requires Gradle 7.0+");
47+
if (GradleVersion.current().compareTo(GradleVersion.version("7.4")) < 0) {
48+
throw new GradleException("This plugin requires Gradle 7.4+");
4949
}
5050

5151
VersionCatalogsExtension versionCatalogs = project.getExtensions().findByType(VersionCatalogsExtension.class);

0 commit comments

Comments
 (0)