Repository: quarkusio/quarkus
Issue: Gradle plugin incorrectly requires Gradle 6.1

### Describe the bug

The Gradle plugin checks Gradle version when starting, checking for minimum 6.1 but 7.4 is required since 2.10.0.Final

### Expected behavior

Update the test so that 7.4 is required

### Actual behavior

Test is wrong

### How to Reproduce?

_No response_

### Output of `uname -a` or `ver`

_No response_

### Output of `java -version`

_No response_

### GraalVM version (if different from Java)

_No response_

### Quarkus version or git rev

2.10.0.Final

### Build tool (ie. output of `mvnw --version` or `gradlew --version`)

_No response_

### Additional information

_No response_

Changed files:
devtools/gradle/gradle-model/src/main/java/io/quarkus/gradle/dependency/ApplicationDeploymentClasspathBuilder.java

diff --git a/devtools/gradle/gradle-model/src/main/java/io/quarkus/gradle/dependency/ApplicationDeploymentClasspathBuilder.java b/devtools/gradle/gradle-model/src/main/java/io/quarkus/gradle/dependency/ApplicationDeploymentClasspathBuilder.java
index c456a82b2aa..b463445777c 100644
--- a/devtools/gradle/gradle-model/src/main/java/io/quarkus/gradle/dependency/ApplicationDeploymentClasspathBuilder.java
+++ b/devtools/gradle/gradle-model/src/main/java/io/quarkus/gradle/dependency/ApplicationDeploymentClasspathBuilder.java
@@ -22,6 +22,7 @@
 import org.gradle.api.internal.artifacts.dependencies.DefaultDependencyArtifact;
 import org.gradle.api.internal.artifacts.dependencies.DefaultExternalModuleDependency;
 import org.gradle.api.plugins.JavaPlugin;
+import org.gradle.api.provider.ListProperty;
 
 import io.quarkus.bootstrap.BootstrapConstants;
 import io.quarkus.bootstrap.model.PlatformImports;
@@ -135,13 +136,15 @@ private void setUpPlatformConfiguration() {
 
             project.getConfigurations().create(this.platformConfigurationName, configuration -> {
                 // Platform configuration is just implementation, filtered to platform dependencies
-                configuration.getDependencies().addAllLater(project.provider(() -> project.getConfigurations()
-                        .getByName(JavaPlugin.IMPLEMENTATION_CONFIGURATION_NAME)
-                        .getAllDependencies()
-                        .stream()
-                        .filter(dependency -> dependency instanceof ModuleDependency &&
-                                ToolingUtils.isEnforcedPlatform((ModuleDependency) dependency))
-                        .collect(Collectors.toList())));
+                ListProperty<Dependency> dependencyListProperty = project.getObjects().listProperty(Dependency.class);
+                configuration.getDependencies()
+                        .addAllLater(dependencyListProperty.value(project.provider(() -> project.getConfigurations()
+                                .getByName(JavaPlugin.IMPLEMENTATION_CONFIGURATION_NAME)
+                                .getAllDependencies()
+                                .stream()
+                                .filter(dependency -> dependency instanceof ModuleDependency &&
+                                        ToolingUtils.isEnforcedPlatform((ModuleDependency) dependency))
+                                .collect(Collectors.toList()))));
                 // Configures PlatformImportsImpl once the platform configuration is resolved
                 configuration.getResolutionStrategy().eachDependency(d -> {
                     ModuleIdentifier identifier = d.getTarget().getModule();
@@ -192,7 +195,8 @@ private void setUpDeploymentConfiguration() {
             project.getConfigurations().create(this.deploymentConfigurationName, configuration -> {
                 Configuration enforcedPlatforms = this.getPlatformConfiguration();
                 configuration.extendsFrom(enforcedPlatforms);
-                configuration.getDependencies().addAllLater(project.provider(() -> {
+                ListProperty<Dependency> dependencyListProperty = project.getObjects().listProperty(Dependency.class);
+                configuration.getDependencies().addAllLater(dependencyListProperty.value(project.provider(() -> {
                     ConditionalDependenciesEnabler cdEnabler = new ConditionalDependenciesEnabler(project, mode,
                             enforcedPlatforms);
                     final Collection<ExtensionDependency> allExtensions = cdEnabler.getAllExtensions();
@@ -225,7 +229,7 @@ private void setUpDeploymentConfiguration() {
                         }
                     }
                     return deploymentDependencies;
-                }));
+                })));
             });
         }
     }