VSCode Extension for Spring Initializr
Перейти к файлу
Bruno Vieira 8bf8732b13
Issue 217: Allow Package Name specification (#230)
* added default setting for packageName

* function for validating package names

* added packageName property to handler interfaces

* added step for specifying package name

using groupId + artifactId as default value

* call package name step after artifactId

* handling new step

* removed default config since it's always dynamic

* fix: replace hyphen with underscore when recommending a packageName

---------

Co-authored-by: Jinbo Wang <jinbwan@microsoft.com>
2024-09-19 11:27:17 +08:00
.azure-pipelines Adopt vsix sign in the release pipeline (#245) 2024-07-29 16:31:20 +08:00
.github Update node version to 20 (#247) 2024-09-19 11:02:07 +08:00
.vscode eng: refine docs and tasks.json 2021-11-21 13:44:03 +08:00
images Update GIF and README.md for new features (#76) 2018-09-14 14:22:44 +08:00
resources update extension icon (#48) 2018-02-09 11:36:00 +08:00
scripts prepare for pre-release channel (#200) 2022-03-24 16:06:24 +08:00
src Issue 217: Allow Package Name specification (#230) 2024-09-19 11:27:17 +08:00
.gitignore chore: Initialize CI pipelines (#205) 2022-07-07 11:03:42 +08:00
.vscodeignore Migrate to 1ES pipelines (#234) 2024-01-15 16:00:52 +08:00
CHANGELOG.md up version to 0.11.2 (#227) 2023-01-09 13:13:45 +08:00
LICENSE.txt OSS review (#10) 2018-01-09 15:35:54 +08:00
README.md use badges from shields.io 2022-12-23 12:41:38 +08:00
SECURITY.md Microsoft mandatory file (#203) 2022-05-23 10:04:22 +08:00
TestPlan.md eng: refine docs and tasks.json 2021-11-21 13:44:03 +08:00
ThirdPartyNotices.txt upversion to 0.8.0 (#195) 2021-11-22 14:26:37 +08:00
package-lock.json Bump webpack from 5.93.0 to 5.94.0 (#246) 2024-09-19 11:15:52 +08:00
package.json Issue 236: New command for generating Gradle projects with Kotlin DSL (#237) 2024-09-19 11:21:31 +08:00
tsconfig.json allow to select bootVersion and custom service url (#31) 2018-01-29 11:24:51 +08:00
tslint.json Change "Edit Starters" to "Add Starters" (#149) 2020-08-17 16:39:44 +08:00
webpack.config.js fix webpack warning (#139) 2020-07-06 10:44:21 +08:00

README.md

Spring Initializr Java Support

Marketplace Version Installs Rating Gitter

Overview

Spring Initializr is a lightweight extension to quickly generate a Spring Boot project in Visual Studio Code (VS Code). It helps you to customize your projects with configurations and manage Spring Boot dependencies.

Screenshot

Feature List

  • Generate a Maven/Gradle Spring Boot project
  • Customize configurations for a new project (language, Java version, group id, artifact id, boot version and dependencies)
  • Search for dependencies
  • Quickstart with last settings
  • Edit Spring Boot dependencies of an existing Maven Spring Boot project

Requirements

  • VS Code (version 1.19.0 or later)
  • JDK (version 1.8.0 or later)

Install

Open VS Code and press F1 or Ctrl + Shift + P to open command palette, select Install Extension and type vscode-spring-initializr.

Or launch VS Code Quick Open (Ctrl + P), paste the following command, and press enter.

ext install vscode-spring-initializr

Use

  • Launch VS Code
  • Press Ctrl + Shift + P to open command palette.
  • Type Spring Initializr to start generating a Maven or Gradle project.
  • Follow the wizard.
  • Right click inside the pom.xml file and choose Edit starters for dependency refactoring. (Gradle project is not supported yet, PR is welcome for it.)

Configuration

  // Default language.
  "spring.initializr.defaultLanguage": "Java",

  // Default Java version.
  "spring.initializr.defaultJavaVersion": "11",

  // Default value for Artifact Id.
  "spring.initializr.defaultArtifactId": "demo",

  // Default value for Group Id.
  "spring.initializr.defaultGroupId": "com.example",

  // Spring Initializr Service URL(s). If more than one url is specified, it requires you to select one every time you create a project.
  "spring.initializr.serviceUrl": [ "https://start.spring.io" ],

  // Default value for Packaging. Supported values are "JAR" and "WAR".
  "spring.initializr.defaultPackaging": "JAR",

  // Default value for the method of openining the newly generated project. Supported values are "", "Open" and "Add to Workspace".
  "spring.initializr.defaultOpenProjectMethod": "Add to Workspace",

Feedback and Questions

You can find the full list of issues at Issue Tracker. You can submit a bug or feature suggestion, and participate community driven Gitter

License

This extension is licensed under MIT License.

Data/Telemetry

VS Code collects usage data and sends it to Microsoft to help improve our products and services. Read our privacy statement to learn more. If you dont wish to send usage data to Microsoft, you can set the telemetry.enableTelemetry setting to false. Learn more in our FAQ.

Contributing

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.