Skip to content

Commit

Permalink
adjusts
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Aug 2, 2024
1 parent f98f1a6 commit 1450b3d
Show file tree
Hide file tree
Showing 9 changed files with 388 additions and 2,055 deletions.
5 changes: 5 additions & 0 deletions generators/kotlin/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ tasks.withType(org.jetbrains.kotlin.gradle.internal.KaptGenerateStubsTask.class)
}
`,
);
this.editFile('gradle/swagger.gradle', content => content.replace(', useSpringBoot3: "true"', ''));
}
}
},
Expand Down Expand Up @@ -328,6 +329,10 @@ tasks.withType(org.jetbrains.kotlin.gradle.internal.KaptGenerateStubsTask.class)
},
],
});

if (application.enableSwaggerCodegen) {
this.editFile('pom.xml', content => content.replace('<useSpringBoot3>true</useSpringBoot3>', ''));
}
}
},
});
Expand Down
5 changes: 4 additions & 1 deletion generators/migration/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ export default class extends BaseApplicationGenerator {
.replaceAll('jackson-datatype-hibernate6', 'jackson-datatype-hibernate5')
.replaceAll('org.apache.cassandra', 'com.datastax.oss')
// Gradle only
.replace(
'importMappings = [Problem:"org.zalando.problem.Problem"]',
'importMappings = [Problem:"org.springframework.http.ProblemDetail"]',
)
.replace('hibernate-jcache"', 'hibernate-jcache:${hibernateVersion}"')
.replace(
"excludes = ['time']",
Expand All @@ -45,7 +49,6 @@ export default class extends BaseApplicationGenerator {
)
// Maven only
.replaceAll('<classifier>jakarta</classifier>', '')
.replace('<useSpringBoot3>true</useSpringBoot3>', '')
.replace(
'<skipValidateSpec>false</skipValidateSpec>',
'<importMappings>Problem=org.zalando.problem.Problem</importMappings><skipValidateSpec>false</skipValidateSpec>',
Expand Down
Loading

0 comments on commit 1450b3d

Please sign in to comment.