Skip to content

Commit

Permalink
try to drop workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Sep 28, 2024
1 parent 1995ea4 commit a2c2c27
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
10 changes: 5 additions & 5 deletions generators/quarkus/command.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,12 @@ export default asCommand({
type: 'list',
default: null,
message: `Which ${chalk.yellow('*development*')} database would you like to use?`,
choices: [
{ value: 'h2Disk', name: 'H2 with disk-based persistence' },
{ value: 'h2Memory', name: 'H2 with in-memory persistence' },
{ value: null, name: 'Same as production' },
],
}),
choices: [
{ value: 'h2Disk', name: 'H2 with disk-based persistence' },
{ value: 'h2Memory', name: 'H2 with in-memory persistence' },
{ value: null, name: 'Same as production' },
],
scope: 'storage',
},
cacheProvider: {
Expand Down
8 changes: 0 additions & 8 deletions generators/quarkus/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,6 @@ export default class extends BaseApplicationGenerator {

get [BaseApplicationGenerator.PREPARING]() {
return this.asPreparingTaskGroup({
async workaround({ application }) {
// Workaround jhipster but with null choice.
application.devDatabaseType = this.jhipsterConfigWithDefaults.devDatabaseType;
application.devDatabaseTypeH2Any = ['h2Disk', 'h2Memory'].includes(application.devDatabaseType);
application.liquibaseAddH2Properties = application.devDatabaseTypeH2Any;
application.devDatabaseTypeH2Disk = application.devDatabaseType === 'h2Disk';
application.devDatabaseTypeH2Memory = application.devDatabaseType === 'h2Memory';
},
async preparingTemplateTask({ source, application }) {
source.addEntryToCache = ({ entry }) => {
this.editFile(
Expand Down

0 comments on commit a2c2c27

Please sign in to comment.