Commit Graph

75 Commits

Author SHA1 Message Date
Jochen Schalanda
9bc3376b97 Update bin/functions to use release data 2020-06-24 20:37:09 -04:00
Scott McLeod
8baa3f7961 Fold retrieve-sapmachine into retrieval code, use globbing for cache 2020-04-26 19:39:09 -04:00
Scott McLeod
02ca1c820a Cleanup cache logic 2020-04-26 19:39:09 -04:00
Scott McLeod
1b6aaee2ea
Old MacOS versions do not support base64 -d 2020-04-14 15:20:00 -04:00
Scott McLeod
0ebf8c1cc0 Standardize on AdoptJDK v3 API 2020-04-14 10:47:02 -04:00
Nicklas Moberg
e5391ad10e JDK 14 2020-04-03 15:50:16 -04:00
Jochen Schalanda
e276af2aaa
Set exit trap only after TEMP_DIR has been set
Refs #63
Refs #64
2020-03-17 08:47:09 +01:00
Jochen Schalanda
b0dcb5ae05
Check that temporary directory exists before deleting
Before deleting the temporary directory (`$TEMP_DIR`) at the end of the script,
make sure that it exists so that we don't accidentally delete the user's home directory.

Fixes #63
2020-03-15 01:53:30 +01:00
Jochen Schalanda
573976b13b Migrate to AdoptOpenJDK API v3
The AdoptOpenJDK API v2 is deprecated and will eventually be shut down.
Additionally, it currently has problems providing data for OpenJDK 13.

Unfortunately the API response format changed slightly, so that the static data for Zulu Community and Amazon Corretto had to be updated, too.

https://api.adoptopenjdk.net/swagger-ui/
https://github.com/AdoptOpenJDK/openjdk-api-v3
2020-03-01 14:44:43 +01:00
Jochen Schalanda
2ed7eb06d6 Revert "Merge pull request #55 from halcyon/sm-fix-master"
This reverts commit a5f57e149e, reversing
changes made to f1b85bca66.
2020-03-01 13:45:45 +01:00
Scott Mcleod
35b4def8e8
Fix failing master 2020-02-29 10:21:47 -05:00
Jochen Schalanda
e067262abf
Fix shellcheck warnings 2020-02-27 16:15:07 +01:00
Jochen Schalanda
3d5b9bd28c
Fix content of "os" field in jq expression 2020-02-26 14:59:35 +01:00
Jochen Schalanda
e64c7e203f
Retrieve AdoptOpenJDK and SapMachine command in install function 2020-02-26 14:59:35 +01:00
Jochen Schalanda
12b79730e7
Add support for SapMachine
SapMachine is an OpenJDK release maintained and supported by SAP

https://sap.github.io/SapMachine/
2020-02-26 14:59:35 +01:00
Scott McLeod
a0fd84e721
Resolves #40 - don't change directory to ${PWD} on EXIT 2020-01-14 15:48:14 -05:00
Klaus Hartl
56f73d09e3 Add legacy filename support for jenv 2019-11-22 16:18:54 +01:00
Scott McLeod
00bb71562b
Use full path for MacOS binaries that conflict with coreutils 2019-11-20 14:38:58 -05:00
Flrn Prz
0320426738 Add check-jq function to properly show an error when jq is not installed 2019-09-30 16:21:34 +02:00
Michael McLellan
2e23f4a8f6 Use proper RELEASE variable name 2019-09-18 16:12:14 -04:00
Michael McLellan
4a85daa675 Add JDK 13 URL 2019-09-17 20:32:46 -04:00
Scott McLeod
67552c0e6f
Address #13 2019-09-12 16:40:16 -04:00
Scott McLeod
fb4dc4b2bf
Prefer variables over functions 2019-09-10 13:33:29 -04:00
Scott McLeod
63ca3b9081
Add jq to OSX 2019-09-09 18:59:10 -04:00
Scott McLeod
f3c7ba54cb
Use functions for improved bash compatability 2019-09-09 15:29:26 -04:00
Scott McLeod
2a22a1723e
New architecture 2019-09-09 14:30:31 -04:00
Scott McLeod
a39f3bbb79
Switching to new architecture. Previous architecture archived to skotchpine branch 2019-09-09 14:29:34 -04:00
Stefano De Vuono
ac0ecf3c96 add mac_hotspot case to statement in unpack_java function 2019-08-01 12:25:17 -05:00
Scott McLeod
316a7e3647
Cleanup 2019-07-05 13:10:05 -04:00
Scott McLeod
62b812ae5d
Account for differences in mktemp on MacOS 2019-07-05 12:12:42 -04:00
Scott McLeod
b84e6ea0e2
Use a temp work dir when installing 2019-06-18 18:53:54 -04:00
Scott McLeod
13df2ad8d3
Merge pull request #5 from halcyon/adopt-openjdk-corretto
Add adopt-openjdk and correto
2019-06-18 17:50:46 -04:00
Scott McLeod
ccf002e5f9
Add adopt-openjdk and correto 2019-06-18 17:47:27 -04:00
Scott McLeod
0f7f6c8192
Adding openjdk-12.0.1 2019-06-18 16:22:26 -04:00
Scott McLeod
4ba5dc7274
Remove unreachable JDKs 2019-04-24 15:51:27 -04:00
Scott McLeod
22bae9d489
Add zulu support 2019-04-24 15:44:32 -04:00
Tyler Cinnamon
cbd63091ea Use ASDF_JAVA_PLAIN flag for deprecated wrapper. 2018-12-11 08:11:10 -06:00
tyler
daeec9d683 Make the deprecated thing executable to pass some tests... Ugh. 2018-12-11 08:09:28 -06:00
tyler
24106d01bf Add a zsh asdf-java-wrapper, reference in the readme & deprecate the old script. 2018-12-11 07:58:11 -06:00
Myron Overton
b4da809038 Quick fix for openjdk 2018-12-05 11:46:15 -07:00
Tyler Cinnamon
9c8ac83e05 Wrong url for openjdk 11.0.1 :/ 2018-11-03 18:40:50 -05:00
Tyler Cinnamon
7990072cec Use openjdk 11.0.1 2018-11-03 18:34:34 -05:00
Tyler Cinnamon
b30624f937 Fix #41 2018-11-03 18:26:09 -05:00
Tyler Cinnamon
add75d7169 Catch up on pull requests.
Update versions.
Format versions in list-all script better.
Log with colors.
Add asdf-java-wrapper script a light explanation.
2018-11-03 16:57:11 -05:00
Tyler Cinnamon
e6c4be8404 Merge remote-tracking branch 'mig4/36-replace-oracle-8181-with-8191' into 11 2018-11-03 14:56:13 -05:00
mig4
58cfacdfb2
Replace oracle-1.181 with oracle-8.191
8.181 distribution has been removed from the download site and URL now
returns 404.

Closes #36
2018-10-30 15:48:36 +00:00
Jason Whaley
ee5bd0c16a Add @trustin's diff for linux openjdk 10/11
See https://github.com/skotchpine/asdf-java/pull/32#issuecomment-428780435
2018-10-11 11:09:58 -04:00
Jason Whaley
d51639f215 Support MacOS downloads for OpenJDK
This switches the variant to be a .tar.gz instead of a .dmg for openjdk
installs.
2018-09-26 16:47:09 -04:00
Jason Whaley
4797f22d96 Add oracle-11 as a version 2018-09-26 12:26:49 -04:00
Josh Winters
d997f316dd Fix Oracle license agreement cookie
The Java download was not working without this explicit cookie.
2018-08-18 12:12:20 -05:00