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

               
                     
                               
                                                                                     
                                                                                       


                       
                    





                 
                          
                                                                
      










                                                         
                      



                                                                                                      
                     


                                                                


                                  









                                                                                   

                                      

                                                                                                                                                                                        
   
 
{
  "id": "java",
  "version": "1.0.9",
  "name": "Java (via SDKMAN!)",
  "documentationURL": "https://github.com/devcontainers/features/tree/main/src/java",
  "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"
    },
    "jdkDistro": {
      "type": "string",
      "proposals": [
        "ms",
        "open",
        "oracle",
        "tem"
      ],
      "default": "ms",
      "description": "Select or enter a JDK distribution"
    },
    "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",
  "customizations": {
    "vscode": {
      "extensions": [
        "vscjava.vscode-java-pack"
      ],
      "settings": {
        "java.import.gradle.java.home": "/usr/local/sdkman/candidates/java/current"
      }
    }
  },
  "containerEnv": {
    "SDKMAN_DIR": "/usr/local/sdkman",
    "JAVA_HOME": "/usr/local/sdkman/candidates/java/current",
    "PATH": "/usr/local/sdkman/bin:/usr/local/sdkman/candidates/java/current/bin:/usr/local/sdkman/candidates/gradle/current/bin:/usr/local/sdkman/candidates/maven/current/bin:${PATH}"
  }
}