Fix comparison in ensureProjectCoords method in AppModelGradleResolver class
### Describe the bug

In the method ensureProjectCoords, appArtifact.getGroupId() and appArtifact.getVersion() are compared against themselves in an if statement, when they should be compared to project.getGroup() and project.getVersion() respectively.

```
if (project.getName().equals(appArtifact.getArtifactId())
        && appArtifact.getGroupId().equals(appArtifact.getGroupId())
        && appArtifact.getVersion().equals(appArtifact.getVersion())) {
    return;
}
```

### Expected behavior

_No response_

### Actual behavior

_No response_

### 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

_No response_

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

_No response_

### Additional information

_No response_
diff --git a/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/AppModelGradleResolver.java b/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/AppModelGradleResolver.java
index 478c34ea9cc..5aef8898fc8 100644
--- a/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/AppModelGradleResolver.java
+++ b/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/AppModelGradleResolver.java
@@ -167,8 +167,8 @@ public ApplicationModel resolveManagedModel(ArtifactCoords appArtifact,
 
     protected void ensureProjectCoords(ArtifactCoords appArtifact) throws AppModelResolverException {
         if (project.getName().equals(appArtifact.getArtifactId())
-                && appArtifact.getGroupId().equals(appArtifact.getGroupId())
-                && appArtifact.getVersion().equals(appArtifact.getVersion())) {
+                && project.getGroup().toString().equals(appArtifact.getGroupId())
+                && project.getVersion().toString().equals(appArtifact.getVersion())) {
             return;
         }
         throw new AppModelResolverException(
['devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/AppModelGradleResolver.java']