UNPKG

@jnxplus/nx-maven

Version:

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

123 lines (122 loc) 3.27 kB
{ "$schema": "http://json-schema.org/schema", "$id": "NxMavenLib", "title": "Create a library", "type": "object", "properties": { "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" }, "simpleName": { "description": "Don't include the directory in the lib name", "type": "boolean", "default": true }, "simplePackageName": { "description": "Don't include the directory in the package name", "type": "boolean", "default": true }, "language": { "description": "Language of the project", "type": "string", "default": "java", "x-prompt": { "message": "Which language would you like to use?", "type": "list", "items": [ { "value": "java", "label": "Java" }, { "value": "kotlin", "label": "Kotlin" } ] } }, "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?" }, "framework": { "description": "framework", "type": "string", "default": "spring-boot", "enum": ["spring-boot", "quarkus", "micronaut", "none"], "x-prompt": { "message": "Which framework to use? or 'none' to skip.", "type": "list", "items": [ { "value": "spring-boot", "label": "spring-boot" }, { "value": "quarkus", "label": "quarkus" }, { "value": "micronaut", "label": "micronaut" }, { "value": "none", "label": "none" } ] } }, "parentProject": { "type": "string", "default": "", "description": "ArtifactId of the parent project", "x-prompt": "Which artifactId to use for 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" }, "projects": { "type": "string", "description": "Projects where the library should be added (comma delimited)" }, "skipStarterCode": { "description": "Skip starter code", "type": "boolean", "default": false }, "skipFormat": { "description": "Skip formatting files.", "type": "boolean", "default": false } }, "required": ["name", "language", "groupId", "projectVersion", "parentProject"] }