Skip to content

Commit

Permalink
feat(generators): use version catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
khalilou88 committed Nov 30, 2023
1 parent b614866 commit 268cc6d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/nx-gradle/src/generators/init/schema.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ export interface NxGradleInitGeneratorSchema {
| 'kotlin-multiplatform'
| 'none';
skipWrapper?: boolean;
versionManagement: 'properties' | 'version-catalog';
}
22 changes: 21 additions & 1 deletion packages/nx-gradle/src/generators/init/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,33 @@
"description": "Don't generate Gradle Wrapper",
"type": "boolean",
"default": false
},
"versionManagement": {
"description": "Version management",
"type": "string",
"default": "properties",
"x-prompt": {
"message": "Which version management would you like to use?",
"type": "list",
"items": [
{
"value": "properties",
"label": "use gradle properties"
},
{
"value": "version-catalog",
"label": "use version catalog"
}
]
}
}
},
"required": [
"javaVersion",
"dsl",
"rootProjectName",
"gradleRootDirectory",
"preset"
"preset",
"versionManagement"
]
}

0 comments on commit 268cc6d

Please sign in to comment.