Code review comment: No, we don't want to do this. We had something similar before. This is an exception for panache.

Code under review:
private void registerConditionalDependencies(Project project) {
        ConditionalDependenciesEnabler conditionalDependenciesEnabler = new ConditionalDependenciesEnabler(project);
        ApplicationDeploymentClasspathBuilder deploymentClasspathBuilder = new ApplicationDeploymentClasspathBuilder(
                project);
        project.getConfigurations().getByName(JavaPlugin.COMPILE_CLASSPATH_CONFIGURATION_NAME).getIncoming()
                .beforeResolve((dependencies) -> {
                    Set<ExtensionDependency> implementationExtensions = conditionalDependenciesEnabler
                            .declareConditionalDependencies(JavaPlugin.IMPLEMENTATION_CONFIGURATION_NAME);
                    deploymentClasspathBuilder.createBuildClasspath(implementationExtensions,
                            JavaPlugin.IMPLEMENTATION_CONFIGURATION_NAME);
                });
        project.getConfigurations().getByName(DEV_MODE_CONFIGURATION_NAME).getIncoming().beforeResolve((devDependencies) -> {
            Set<ExtensionDependency> devModeExtensions = conditionalDependenciesEnabler
                    .declareConditionalDependencies(DEV_MODE_CONFIGURATION_NAME);
            deploymentClasspathBuilder.createBuildClasspath(devModeExtensions, DEV_MODE_CONFIGURATION_NAME);
        });
        project.getConfigurations().getByName(JavaPlugin.TEST_COMPILE_CLASSPATH_CONFIGURATION_NAME).getIncoming()
                .beforeResolve((testDependencies) -> {
                    Set<ExtensionDependency> testExtensions = conditionalDependenciesEnabler
                            .declareConditionalDependencies(JavaPlugin.TEST_IMPLEMENTATION_CONFIGURATION_NAME);
                    deploymentClasspathBuilder.createBuildClasspath(testExtensions,
                            JavaPlugin.TEST_IMPLEMENTATION_CONFIGURATION_NAME);
                });
        project.getConfigurations().getByName(JavaPlugin.ANNOTATION_PROCESSOR_CONFIGURATION_NAME).getIncoming()
                .beforeResolve(annotationProcessors -> {
                    Set<ResolvedArtifact> compileClasspathArtifacts = project.getConfigurations()
                            .getByName(JavaPlugin.COMPILE_CLASSPATH_CONFIGURATION_NAME).getResolvedConfiguration()
                            .getResolvedArtifacts();

                    
                    for (ResolvedArtifact artifact : compileClasspathArtifacts) {
                        if ("quarkus-panache-common".equals(artifact.getName())
                                && "io.quarkus".equals(artifact.getModuleVersion().getId().getGroup())) {
                            project.getDependencies().add(JavaPlugin.ANNOTATION_PROCESSOR_CONFIGURATION_NAME,
                                    "io.quarkus:quarkus-panache-common:" + artifact.getModuleVersion().getId().getVersion());
                        }
                    }
                });
    }

Line commented on: project.getConfigurations().getByName(DEV_MODE_CONFIGURATION_NAME).getIncoming().beforeResolve((devDependencies) -> {

Revised code:
private void registerConditionalDependencies(Project project) {
        ConditionalDependenciesEnabler conditionalDependenciesEnabler = new ConditionalDependenciesEnabler(project);
        ApplicationDeploymentClasspathBuilder deploymentClasspathBuilder = new ApplicationDeploymentClasspathBuilder(
                project);
        project.getConfigurations().getByName(JavaPlugin.COMPILE_CLASSPATH_CONFIGURATION_NAME).getIncoming()
                .beforeResolve((dependencies) -> {
                    Set<ExtensionDependency> implementationExtensions = conditionalDependenciesEnabler
                            .declareConditionalDependencies(JavaPlugin.IMPLEMENTATION_CONFIGURATION_NAME);
                    deploymentClasspathBuilder.createBuildClasspath(implementationExtensions,
                            JavaPlugin.IMPLEMENTATION_CONFIGURATION_NAME);
                });
        project.getConfigurations().getByName(DEV_MODE_CONFIGURATION_NAME).getIncoming().beforeResolve((devDependencies) -> {
            Set<ExtensionDependency> devModeExtensions = conditionalDependenciesEnabler
                    .declareConditionalDependencies(DEV_MODE_CONFIGURATION_NAME);
            deploymentClasspathBuilder.createBuildClasspath(devModeExtensions, DEV_MODE_CONFIGURATION_NAME);
        });
        project.getConfigurations().getByName(JavaPlugin.TEST_COMPILE_CLASSPATH_CONFIGURATION_NAME).getIncoming()
                .beforeResolve((testDependencies) -> {
                    Set<ExtensionDependency> testExtensions = conditionalDependenciesEnabler
                            .declareConditionalDependencies(JavaPlugin.TEST_IMPLEMENTATION_CONFIGURATION_NAME);
                    deploymentClasspathBuilder.createBuildClasspath(testExtensions,
                            JavaPlugin.TEST_IMPLEMENTATION_CONFIGURATION_NAME);
                });
        project.getConfigurations().getByName(JavaPlugin.ANNOTATION_PROCESSOR_CONFIGURATION_NAME).getIncoming()
                .beforeResolve(annotationProcessors -> {
                    Set<ResolvedArtifact> compileClasspathArtifacts = project.getConfigurations()
                            .getByName(JavaPlugin.COMPILE_CLASSPATH_CONFIGURATION_NAME).getResolvedConfiguration()
                            .getResolvedArtifacts();

                    
                    for (ResolvedArtifact artifact : compileClasspathArtifacts) {
                        if ("quarkus-panache-common".equals(artifact.getName())
                                && "io.quarkus".equals(artifact.getModuleVersion().getId().getGroup())) {
                            project.getDependencies().add(JavaPlugin.ANNOTATION_PROCESSOR_CONFIGURATION_NAME,
                                    "io.quarkus:quarkus-panache-common:" + artifact.getModuleVersion().getId().getVersion());
                        }
                    }
                });
    }