From ed2c9112563d1894dce527b587186573d8dff6a0 Mon Sep 17 00:00:00 2001 From: Vincent Huang iMac Date: Fri, 12 Sep 2025 21:34:58 +0800 Subject: [PATCH] Fix project name placeholders and update descriptions in Spring Boot project prompts --- prompts/create-spring-boot-java-project.prompt.md | 15 +++++++++++---- .../create-spring-boot-kotlin-project.prompt.md | 15 +++++++++++---- 2 files changed, 22 insertions(+), 8 deletions(-) diff --git a/prompts/create-spring-boot-java-project.prompt.md b/prompts/create-spring-boot-java-project.prompt.md index 9847a85..52fd24a 100644 --- a/prompts/create-spring-boot-java-project.prompt.md +++ b/prompts/create-spring-boot-java-project.prompt.md @@ -1,7 +1,6 @@ --- mode: 'agent' -tools: ['changes', 'codebase', 'editFiles', 'findTestFiles', 'problems', 'runCommands', 'runTests', 'search', 'searchResults', 'terminalLastCommand', 'testFailure', 'usages'] -description: 'Create Spring Boot Java project skeleton' +description: 'Create Spring Boot Java Project Skeleton' --- # Create Spring Boot Java project prompt @@ -30,7 +29,7 @@ java -version ```shell curl https://start.spring.io/starter.zip \ - -d artifactId=demo \ + -d artifactId=${input:projectName:demo-java} \ -d bootVersion=3.4.5 \ -d dependencies=lombok,configuration-processor,web,data-jpa,postgresql,data-redis,data-mongodb,validation,cache,testcontainers \ -d javaVersion=21 \ @@ -45,7 +44,7 @@ curl https://start.spring.io/starter.zip \ - Run following command in terminal to unzip the downloaded file ```shell -unzip starter.zip -d . +unzip starter.zip -d ./${input:projectName:demo-java} ``` ## Remove the downloaded zip file @@ -56,6 +55,14 @@ unzip starter.zip -d . rm -f starter.zip ``` +## Change directory to the project root + +- Run following command in terminal to change directory to the project root + +```shell +cd ${input:projectName:demo-java} +``` + ## Add additional dependencies - Insert `springdoc-openapi-starter-webmvc-ui` and `archunit-junit5` dependency into `pom.xml` file diff --git a/prompts/create-spring-boot-kotlin-project.prompt.md b/prompts/create-spring-boot-kotlin-project.prompt.md index e8f3084..a89080c 100644 --- a/prompts/create-spring-boot-kotlin-project.prompt.md +++ b/prompts/create-spring-boot-kotlin-project.prompt.md @@ -1,7 +1,6 @@ --- mode: 'agent' -tools: ['changes', 'codebase', 'editFiles', 'findTestFiles', 'problems', 'runCommands', 'runTests', 'search', 'searchResults', 'terminalLastCommand', 'testFailure', 'usages'] -description: 'Create Spring Boot Kotlin project skeleton' +description: 'Create Spring Boot Kotlin Project Skeleton' --- # Create Spring Boot Kotlin project prompt @@ -30,7 +29,7 @@ java -version ```shell curl https://start.spring.io/starter.zip \ - -d artifactId=demo \ + -d artifactId=${input:projectName:demo-kotlin} \ -d bootVersion=3.4.5 \ -d dependencies=configuration-processor,webflux,data-r2dbc,postgresql,data-redis-reactive,data-mongodb-reactive,validation,cache,testcontainers \ -d javaVersion=21 \ @@ -46,7 +45,7 @@ curl https://start.spring.io/starter.zip \ - Run following command in terminal to unzip the downloaded file ```shell -unzip starter.zip -d . +unzip starter.zip -d ./${input:projectName:demo-kotlin} ``` ## Remove the downloaded zip file @@ -57,6 +56,14 @@ unzip starter.zip -d . rm -f starter.zip ``` +## Unzip the downloaded file + +- Run following command in terminal to unzip the downloaded file + +```shell +unzip starter.zip -d ./${input:projectName:demo-kotlin} +``` + ## Add additional dependencies - Insert `springdoc-openapi-starter-webmvc-ui` and `archunit-junit5` dependency into `build.gradle.kts` file