Skip to content

Table driven versioning #1481

Discussion options

You must be logged in to vote

⚠️ I'm not familiar with Java and OpenJDK.

You can install java with the following Registry.

packages:
  - type: http
    repo_owner: openjdk
    repo_name: jdk
    description: JDK main-line development https://openjdk.org/projects/jdk
    replacements:
      amd64: x64
      arm64: aarch64
      darwin: macos
    files:
      - name: java
        src: jdk-{{.Version}}.jdk/Contents/Home/bin/java
    version_constraint: "false"
    version_overrides:
      - version_constraint: Version == "18.0.2.1" 
        url: https://download.java.net/java/GA/jdk{{.Version}}/db379da656dc47308e138f21b33976fa/1/GPL/openjdk-{{.Version}}_{{.OS}}-{{.Arch}}_bin.tar.gz

Then you have to add a version_constraint

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by suzuki-shunsuke
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants