patternMinor
Does Oracle have an API that shows the latest stable JDK version?
Viewed 0 times
thelatestversionstablethatshowsdoesoracleapijdk
Problem
There is an ansible role that installs jdk8, but is incompatible with jdk9. The role parses a couple of html pages and the commands are incompatible with java9. It was quite hard to make it work for jdk9, and now the PR is broken for jdk8.
https://github.com/ansiblebit/oracle-java/issues/63
In order to prevent that a lot of work has to be done over and over again, it would be great if there is an API that shows the latest jdk version. Then this version could be used in the ansible role and then this will be more stable.
https://github.com/ansiblebit/oracle-java/issues/63
In order to prevent that a lot of work has to be done over and over again, it would be great if there is an API that shows the latest jdk version. Then this version could be used in the ansible role and then this will be more stable.
Solution
http://api.releasesoftwaremoreoften.com/latestversion?name=oraclejdk8
http://api.releasesoftwaremoreoften.com/latestversion?name=oraclejdk9
Running:
returns:
and
returns:
http://api.releasesoftwaremoreoften.com/latestversion?name=oraclejdk9
Running:
curl -s http://releasesoftwaremoreoften.com/latestversion?name=oraclejdk9 | jq .latestVersionreturns:
9.0.4and
curl -s http://releasesoftwaremoreoften.com/latestversion?name=oraclejdk8 | jq .latestVersionreturns:
8u162Code Snippets
curl -s http://releasesoftwaremoreoften.com/latestversion?name=oraclejdk9 | jq .latestVersioncurl -s http://releasesoftwaremoreoften.com/latestversion?name=oraclejdk8 | jq .latestVersionContext
StackExchange DevOps Q#3443, answer score: 1
Revisions (0)
No revisions yet.