Skip to content

Commit

Permalink
add dependabot support
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Mar 23, 2024
1 parent cc8534c commit 9577628
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 14 deletions.
14 changes: 1 addition & 13 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,8 @@

version: 2
updates:
- package-ecosystem: 'maven'
directory: '/generators/server/templates/'
schedule:
interval: 'daily'
# Maven doesn't have many PRs, but it triggers every client workflow. Let 2h of interval.
time: '05:00'
open-pull-requests-limit: 5
labels:
- 'theme: dependencies'
- 'theme: java'
- 'skip-changelog'

- package-ecosystem: 'gradle'
directory: '/generators/server/templates'
directory: '/generators/server/resources'
schedule:
interval: 'daily'
time: '08:00'
Expand Down
8 changes: 7 additions & 1 deletion generators/server/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,14 @@ export default class extends ServerGenerator {
get [ServerGenerator.PREPARING]() {
return this.asPreparingTaskGroup({
...super.preparing,
loadDependencies({ application }) {
application.micronautDependencies = { ...mnConstants.versions };
this.loadJavaDependenciesFromGradleCatalog(application.micronautDependencies);

// Workaound liquibase generator bug
application.springBootDependencies = { liquibase: mnConstants.versions.liquibase, h2: application.micronautDependencies.h2 };
},
configure({ application }) {
application.springBootDependencies = { liquibase: mnConstants.versions.liquibase };
if (application.authenticationTypeOauth2) {
application.syncUserWithIdp = true;
application.generateBuiltInUserEntity = true;
Expand Down
2 changes: 2 additions & 0 deletions generators/server/resources/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[libraries]
h2 = { module = 'com.h2database:h2', version = '2.2.224' }

0 comments on commit 9577628

Please sign in to comment.