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

               
                     
                               
                                                                                     
                                                                                       


                       
                    





                 
                          
                                                                
      










                                                         
                      



                                                                                                      










                                                       
                     


                                                                










                                                      














                                                                                           

     









                                                                                   

                                      
                                                             
                                                                                                                                                                                                                                     



                                                   
 
{
  "id": "java",
  "version": "1.2.2",
  "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"
    },
    "gradleVersion": {
      "type": "string",
      "proposals": [
        "latest",
        "7.5.1",
        "6.9.3",
        "5.6.4"
      ],
      "default": "latest",
      "description": "Select or enter a Gradle version"
    },
    "installMaven": {
      "type": "boolean",
      "default": false,
      "description": "Install Maven, a management tool for Java"
    },
    "mavenVersion": {
      "type": "string",
      "proposals": [
        "latest",
        "3.8.6",
        "3.6.3",
        "3.5.4"
      ],
      "default": "latest",
      "description": "Select or enter a Maven version"
    },
    "installAnt": {
      "type": "boolean",
      "default": false,
      "description": "Install Ant, a software tool for automating software build processes"
    },
    "antVersion": {
      "type": "string",
      "proposals": [
        "latest",
        "1.10.12",
        "1.9.15"
      ],
      "default": "latest",
      "description": "Select or enter an Ant version"
    }
  },
  "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:/usr/local/sdkman/candidates/ant/current/bin:${PATH}"
  },
  "installsAfter": [
      "ghcr.io/devcontainers/features/common-utils"
  ]
}