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


Have Questions? Post them here!
Advertisements
Try Out Code2care Dev Tools:

Advertisements

Advertisements
Code2care is an initiative to publish and share varied knowledge in programming and technical areas gathered during day-to-day learnings and development activities.

Students and software developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts. Technical posts might include learnings, tutorials, trouble-shooting steps, video tutorials, code snippets, how-to, blogs, articles, etc.

🎉 We are celebrating the 10th years of Code2care! Thank you for all your support!

We strongly support Gender Equality & Diversity.