Create a Gradle Java Project in VS Code


To Create a Gradle Java Project in VS Code you will first need to install the Gradle Extenstion,

✏️    Install Gradle for Java on VS Code

Example: Gradle Java Project in VS Code

  1. Open Palette,
    Mac: ⌘ Command + Shift + P
    Windiws: Control + Shift + P
  2. Now Type: > Gradle Create Java Project
    Create a Gradle Project in VS Code
  3. Select the folder where you want to create the project,
  4. Now you will see DSL options Kotlin/Groovy, select any you prefer, I selected Groovy,
  5. Now input the name of your project eg. demo
  6. You should see an alert, Create Gradle project, this would take a while!
    Create Gradle project VS Code
  7. You should now see the Java Gradle Project Structure ready (with settings.gradle, build.gradle, and gradlew) under the explorer.
Gradle Project Structure VS Code
-

Facing issues? Have Questions? Post them here! I am happy to answer!


Author Info:

Rakesh (He/Him) is a seasoned developer with over 10 years of experience in web and app development, and a deep knowledge of operating systems. Author of insightful How-To articles for Code2care.

Follow him on: X

You can also reach out to him via e-mail: rakesh@code2care.org

Copyright © Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap