{"kind":"Skill","metadata":{"namespace":"community","name":"create-spring-boot-java-project","version":"0.1.0"},"spec":{"description":"Create Spring Boot Java Project Skeleton","files":{"SKILL.md":"---\nname: create-spring-boot-java-project\ndescription: 'Create Spring Boot Java Project Skeleton'\n---\n\n# Create Spring Boot Java project prompt\n\n- Please make sure you have the following software installed on your system:\n\n  - Java 21\n  - Docker\n  - Docker Compose\n\n- If you need to custom the project name, please change the `artifactId` and the `packageName` in [download-spring-boot-project-template](#download-spring-boot-project-template)\n\n- If you need to update the Spring Boot version, please change the `bootVersion` in [download-spring-boot-project-template](#download-spring-boot-project-template)\n\n## Check Java version\n\n- Run following command in terminal and check the version of Java\n\n```shell\njava -version\n```\n\n## Download Spring Boot project template\n\n- Run following command in terminal to download a Spring Boot project template\n\n```shell\ncurl https://start.spring.io/starter.zip \\\n  -d artifactId=${input:projectName:demo-java} \\\n  -d bootVersion=3.4.5 \\\n  -d dependencies=lombok,configuration-processor,web,data-jpa,postgresql,data-redis,data-mongodb,validation,cache,testcontainers \\\n  -d javaVersion=21 \\\n  -d packageName=com.example \\\n  -d packaging=jar \\\n  -d type=maven-project \\\n  -o starter.zip\n```\n\n## Unzip the downloaded file\n\n- Run following command in terminal to unzip the downloaded file\n\n```shell\nunzip starter.zip -d ./${input:projectName:demo-java}\n```\n\n## Remove the downloaded zip file\n\n- Run following command in terminal to delete the downloaded zip file\n\n```shell\nrm -f starter.zip\n```\n\n## Change directory to the project root\n\n- Run following command in terminal to change directory to the project root\n\n```shell\ncd ${input:projectName:demo-java}\n```\n\n## Add additional dependencies\n\n- Insert `springdoc-openapi-starter-webmvc-ui` and `archunit-junit5` dependency into `pom.xml` file\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003eorg.springdoc\u003c/groupId\u003e\n  \u003cartifactId\u003espringdoc-openapi-starter-webmvc-ui\u003c/artifactId\u003e\n  \u003cversion\u003e2.8.6\u003c/version\u003e\n\u003c/dependency\u003e\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.tngtech.archunit\u003c/groupId\u003e\n  \u003cartifactId\u003earchunit-junit5\u003c/artifactId\u003e\n  \u003cversion\u003e1.2.1\u003c/version\u003e\n  \u003cscope\u003etest\u003c/scope\u003e\n\u003c/dependency\u003e\n```\n\n## Add SpringDoc, Redis, JPA and MongoDB configurations\n\n- Insert SpringDoc configurations into `application.properties` file\n\n```properties\n# SpringDoc configurations\nspringdoc.swagger-ui.doc-expansion=none\nspringdoc.swagger-ui.operations-sorter=alpha\nspringdoc.swagger-ui.tags-sorter=alpha\n```\n\n- Insert Redis configurations into `application.properties` file\n\n```properties\n# Redis configurations\nspring.data.redis.host=localhost\nspring.data.redis.port=6379\nspring.data.redis.password=rootroot\n```\n\n- Insert JPA configurations into `application.properties` file\n\n```properties\n# JPA configurations\nspring.datasource.driver-class-name=org.postgresql.Driver\nspring.datasource.url=jdbc:postgresql://localhost:5432/postgres\nspring.datasource.username=postgres\nspring.datasource.password=rootroot\nspring.jpa.hibernate.ddl-auto=update\nspring.jpa.show-sql=true\nspring.jpa.properties.hibernate.format_sql=true\n```\n\n- Insert MongoDB configurations into `application.properties` file\n\n```properties\n# MongoDB configurations\nspring.data.mongodb.host=localhost\nspring.data.mongodb.port=27017\nspring.data.mongodb.authentication-database=admin\nspring.data.mongodb.username=root\nspring.data.mongodb.password=rootroot\nspring.data.mongodb.database=test\n```\n\n## Add `docker-compose.yaml` with Redis, PostgreSQL and MongoDB services\n\n- Create `docker-compose.yaml` at project root and add following services: `redis:6`, `postgresql:17` and `mongo:8`.\n\n  - redis service should have\n    - password `rootroot`\n    - mapping port 6379 to 6379\n    - mounting volume `./redis_data` to `/data`\n  - postgresql service should have\n    - password `rootroot`\n    - mapping port 5432 to 5432\n    - mounting volume `./postgres_data` to `/var/lib/postgresql/data`\n  - mongo service should have\n    - initdb root username `root`\n    - initdb root password `rootroot`\n    - mapping port 27017 to 27017\n    - mounting volume `./mongo_data` to `/data/db`\n\n## Add `.gitignore` file\n\n- Insert `redis_data`, `postgres_data` and `mongo_data` directories in `.gitignore` file\n\n## Run Maven test command\n\n- Run maven clean test command to check if the project is working\n\n```shell\n./mvnw clean test\n```\n\n## Run Maven run command (Optional)\n\n- (Optional) `docker-compose up -d` to start the services, `./mvnw spring-boot:run` to run the Spring Boot project, `docker-compose rm -sf` to stop the services.\n\n## Let's do this step by step\n"},"import":{"commit_sha":"541b7819d8c3545c6df122491af4fa1eae415779","imported_at":"2026-05-18T20:05:35Z","license_text":"MIT License\n\nCopyright GitHub, Inc.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","owner":"github","repo":"github/awesome-copilot","source_url":"https://github.com/github/awesome-copilot/tree/541b7819d8c3545c6df122491af4fa1eae415779/plugins/java-development/skills/create-spring-boot-java-project"}},"content_hash":[38,11,184,136,244,251,241,122,28,51,82,187,44,220,235,38,232,150,103,121,64,197,106,93,156,248,216,130,89,252,81,99],"trust_level":"unsigned","yanked":false}
