aboutsummaryrefslogblamecommitdiff
path: root/src/java/devcontainer-feature.json
blob: e95fe723967f19718e638ff93a814c567f381ddd (plain) (tree)
1
2
3
4
5
6
7
8
9

               
                     
                               
                                                                                       


                       
                    





                 
                          
                                                                
      
                      



                                                                                                      
                     


                                                                


                                  


                              

                                      


                                                                                                                                                                        

               
                                                                               
   
 
{
  "id": "java",
  "version": "1.0.2",
  "name": "Java (via SDKMAN!)",
  "description": "Installs Java, SDKMAN! (if not installed), and needed dependencies.",
  "options": {
    "version": {
      "type": "string",
      "proposals": [
        "latest",
        "none",
        "17",
        "11",
        "8"
      ],
      "default": "latest",
      "description": "Select or enter a Java version to install"
    },
    "installGradle": {
      "type": "boolean",
      "default": false,
      "description": "Install Gradle, a build automation tool for multi-language software development"
    },
    "installMaven": {
      "type": "boolean",
      "default": false,
      "description": "Install Maven, a management tool for Java"
    }
  },
  "buildArg": "_VSC_INSTALL_JAVA",
  "extensions": [
    "vscjava.vscode-java-pack"
  ],
  "containerEnv": {
    "SDKMAN_DIR": "/usr/local/sdkman",
    "GRADLE_USER_HOME": "${HOME}/.gradle",
    "M2": "${HOME}/.m2",
    "PATH": "${SDKMAN_DIR}/bin:${SDKMAN_DIR}/candidates/java/current/bin:${SDKMAN_DIR}/candidates/gradle/current/bin:${SDKMAN_DIR}/candidates/maven/current/bin:${PATH}"
  },
  "settings": {
    "java.import.gradle.java.home": "/usr/local/sdkman/candidates/java/current"
  }
}