UNPKG

@jnxplus/nx-maven

Version:

[![npm version](https://badge.fury.io/js/@jnxplus%2Fnx-maven.svg)](https://badge.fury.io/js/@jnxplus%2Fnx-maven)

172 lines (171 loc) 4.2 kB
{ "$schema": "http://json-schema.org/schema", "$id": "NxMavenParentProject", "title": "Create a parent project", "type": "object", "properties": { "javaVersion": { "description": "Java version", "oneOf": [ { "type": "string" }, { "type": "number" } ], "default": "none", "x-prompt": { "message": "Which version of Java would you like to use?", "type": "list", "items": [ { "value": "none", "label": "None - I already set Java version" }, { "value": "17", "label": "17" }, { "value": "21", "label": "21" }, { "value": "25", "label": "25" } ] } }, "name": { "type": "string", "description": "", "$default": { "$source": "argv", "index": 0 }, "x-prompt": "What name would you like to use?", "pattern": "^[a-zA-Z].*$" }, "tags": { "type": "string", "description": "Add tags to the project (used for linting)", "alias": "t" }, "directory": { "type": "string", "description": "A directory where the project is placed", "alias": "dir", "default": "libs" }, "simpleName": { "description": "Don't include the directory in the project name", "type": "boolean", "default": true }, "projectType": { "description": "Type of the parent project", "type": "string", "default": "library" }, "groupId": { "type": "string", "default": "com.example", "x-prompt": "What groupId would you like to use?" }, "projectVersion": { "type": "string", "default": "0.0.1-SNAPSHOT", "description": "Version of the project to generate", "alias": "v", "x-prompt": "What project version would you like to use?" }, "dependencyManagement": { "description": "Dependency Management", "type": "string", "default": "none", "enum": [ "spring-boot-parent-pom", "spring-boot-bom", "quarkus-bom", "micronaut-parent-pom", "micronaut-bom", "none" ], "x-prompt": { "message": "How to manage framework dependencies? or 'none' to skip.", "type": "list", "items": [ { "value": "spring-boot-parent-pom", "label": "Spring Boot parent POM" }, { "value": "spring-boot-bom", "label": "Spring Boot BOM" }, { "value": "quarkus-bom", "label": "Quarkus BOM" }, { "value": "micronaut-parent-pom", "label": "Micronaut parent POM" }, { "value": "micronaut-bom", "label": "Micronaut BOM" }, { "value": "none", "label": "None" } ] } }, "language": { "description": "Language for sub-projects", "type": "string", "default": "java", "x-prompt": { "message": "Which language for sub-projects would you like to use?", "type": "list", "items": [ { "value": "java", "label": "Java" }, { "value": "kotlin", "label": "Kotlin" }, { "value": "java-kotlin", "label": "Java and Kotlin" } ] } }, "parentProject": { "type": "string", "description": "ArtifactId of the parent project" }, "aggregatorProject": { "type": "string", "description": "ArtifactId of the aggregator project (that manages a group of submodules) or leave it blank for the root project" }, "skipFormat": { "description": "Skip formatting files.", "type": "boolean", "default": false } }, "required": [ "javaVersion", "name", "projectType", "groupId", "projectVersion" ] }