jhipster / jhipster-kotlin

Kotlin based JHipster
https://khipster.dev
Apache License 2.0
449 stars 95 forks source link

Unresolved CACHE_REGION_FACTORY on default project #267

Closed kedare closed 3 years ago

kedare commented 3 years ago

Overview of the issue

The project fail to run the gradle tasks with the default settings

Motivation for or Use Case

Reproduce the error

Create a project with the following settings:

Welcome to KHipster v1.11.0                                                                    
Application files will be generated in folder: /home/mpoussin/Documents/Lab/kh1                
 _______________________________________________________________________________________________________________                                                                              

  Documentation for creating an application is at https://www.jhipster.tech/creating-an-app/   
  If you find KHipster useful, consider sponsoring the our parent project at https://opencollective.com/generator-jhipster                                                                    
 _______________________________________________________________________________________________________________                                                                              

? Which *type* of application would you like to create? Monolithic application (recommended for simple projects)
? [Beta] Do you want to make it reactive with Spring WebFlux? No                               
? What is the base name of your application? kh1                                               
     info Using blueprint generator-jhipster-kotlin for server subgenerator                                                                                                                   
? What is your default Java package name? tech.lab                                                                                                                                       
? Do you want to use the JHipster Registry to configure, monitor and scale your application? No
? Which *type* of authentication would you like to use? OAuth 2.0 / OIDC Authentication (stateful, works with Keycloak and Okta)
? Which *type* of database would you like to use? SQL (H2, MySQL, MariaDB, PostgreSQL, Oracle, MSSQL)                                                                                         
? Which *production* database would you like to use? PostgreSQL         
? Which *development* database would you like to use? H2 with disk-based persistence           
? Do you want to use the Spring cache abstraction? Yes, with the Redis implementation
? Do you want to use Hibernate 2nd level cache? Yes                                            
? Would you like to use Maven or Gradle for building the backend? Gradle                                                                                                                      
? Which other technologies would you like to use? WebSockets using Spring Websocket, API first development using OpenAPI-generator
? Which *Framework* would you like to use for the client? Angular             
? Would you like to use a Bootswatch theme (https://bootswatch.com/)? Flatly            
? Choose a Bootswatch variant navbar theme (https://bootswatch.com/)? Primary
? Would you like to enable internationalization support? Yes
? Please choose the native language of the application English
? Please choose additional languages to install  
? Besides JUnit and Jest, which testing frameworks would you like to use? Cucumber, Protractor
? Would you like to install other generators from the JHipster Marketplace? No

Run ./gradlew

The following error is returned

> Task :compileKotlin FAILED
e: /home/mpoussin/Documents/Lab/kh1/src/main/kotlin/tech/lab/config/CacheConfiguration.kt: (64, 30): Unresolved reference: CACHE_REGION_FACTORY

Related issues

Link to PR (if any)

KHipster Version(s)

v1.11.0

sendilkumarn commented 3 years ago

@kedare thanks for reporting this. Redis is still in beta, the current nextv7 has the necessary fix for this.