Skip to content

Incorrect generation of dependencies for distributed cache systems #383

@vcupelloni

Description

@vcupelloni
Overview of the issue

After creating a new project with the generator by selecting one of the distributed caching systems (Hazelcast, Redis, Memcache), when starting the project with ./gradlew an error for invalid dependencies is presented.

Reproduce the error

Install JHipster and Micronaut blueprint, configure with one distribuited cache system, start the project after generation is completed.

Related issues

I found two open issues regarding Hazelcast and Memcached and one closed issue regarding Redis but at this point I don't understand why they are in the generator as available options.

[Hazelcast] (#47)
[Memcached] (#118)
[Redis] (#48)

Project configuration
.yo-rc.json file
{
  "generator-jhipster": {
    "applicationType": "microservice",
    "authenticationType": "jwt",
    "backendType": "micronaut",
    "baseName": "exampleMicronaut",
    "blueprints": [
      {
        "name": "generator-jhipster-micronaut",
        "version": "3.4.1"
      }
    ],
    "buildTool": "gradle",
    "cacheProvider": "memcached",
    "clientFramework": "no",
    "clientTestFrameworks": null,
    "clientTheme": null,
    "creationTimestamp": 1723288333786,
    "devDatabaseType": "postgresql",
    "enableGradleEnterprise": false,
    "enableHibernateCache": null,
    "enableSwaggerCodegen": false,
    "enableTranslation": false,
    "entities": [],
    "gradleEnterpriseHost": null,
    "jhipsterVersion": "8.5.0",
    "messageBroker": "no",
    "microfrontend": null,
    "microfrontends": [],
    "nativeLanguage": "it",
    "packageName": "com.mycompany.myapp",
    "prodDatabaseType": "postgresql",
    "searchEngine": "no",
    "serverPort": 8081,
    "serverTestFrameworks": [],
    "serviceDiscoveryType": "consul",
    "skipClient": true,
    "syncUserWithIdp": null,
    "testFrameworks": [
      []
    ],
    "withAdminUi": null
  }
}
Environment and Tools

openjdk version "21.0.4" 2024-07-16
OpenJDK Runtime Environment (build 21.0.4+7)
OpenJDK 64-Bit Server VM (build 21.0.4+7, mixed mode, sharing)

git version 2.46.0

node: v18.19.1
npm: 10.2.4

Docker version 27.1.1, build 63125853e3

Screenshot

HAZELCAST_ERROR
MEMCACHED_ERROR
REDIS_ERROR

  • [ X ] Checking this box is mandatory (this is just to show you read everything)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions