diff options
| author | mo khan <mo.khan@gmail.com> | 2020-08-06 17:42:37 +0000 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-08-06 17:42:37 +0000 |
| commit | dae67cdc5db97d87b90b76b3283b674edc052e16 (patch) | |
| tree | c6affe3e88e8d06e8e59a70b0297e353766a280b /config/software/asdf_java.rb | |
| parent | 06b158403c3ce87081109dad8dd76581a1b18c2d (diff) | |
| parent | 4b130604be2dcd96bde5f708e0f4dc91f86bd89b (diff) | |
Merge branch '217904-debian-pkgs' into 'master'
Build debian packages for tools
See merge request gitlab-org/security-products/license-management!202
Diffstat (limited to 'config/software/asdf_java.rb')
| -rw-r--r-- | config/software/asdf_java.rb | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/config/software/asdf_java.rb b/config/software/asdf_java.rb new file mode 100644 index 0000000..dc8cb15 --- /dev/null +++ b/config/software/asdf_java.rb @@ -0,0 +1,46 @@ +# frozen_string_literal: true + +name "asdf_java" +default_version "11" + +dependency "asdf_maven" +dependency "asdf_gradle" +dependency "zlib" + +whitelist_file "bin" +whitelist_file "lib" +whitelist_file "jre/bin" +whitelist_file "jre/lib" + +version "8" do + relative_path "jdk8u262-b10" + source( + url: "https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u262-b10/OpenJDK8U-jdk_x64_linux_hotspot_8u262b10.tar.gz", + sha256: "733755fd649fad6ae91fc083f7e5a5a0b56410fb6ac1815cff29f744b128b1b1" + ) +end + +version "11" do + relative_path "jdk-11.0.8+10" + source( + url: "https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.8%2B10/OpenJDK11U-jdk_x64_linux_hotspot_11.0.8_10.tar.gz", + sha256: "6e4cead158037cb7747ca47416474d4f408c9126be5b96f9befd532e0a762b47" + ) +end + +version "14" do + relative_path "jdk-14.0.2+12" + source( + url: "https://github.com/AdoptOpenJDK/openjdk14-binaries/releases/download/jdk-14.0.2%2B12/OpenJDK14U-jdk_x64_linux_hotspot_14.0.2_12.tar.gz", + sha256: "7d5ee7e06909b8a99c0d029f512f67b092597aa5b0e78c109bd59405bbfa74fe" + ) +end + +build do + mkdir install_dir + copy "#{project_dir}/**", "#{install_dir}/" + delete "#{install_dir}/lib/ext" + delete "#{install_dir}/man" + delete "#{install_dir}/sample" + delete "#{install_dir}/src.zip" +end |
