CircleCI-Public / android-orb

An orb for working with Android on CircleCI
https://circleci.com/developer/orbs/orb/circleci/android
MIT License
41 stars 27 forks source link

Add command to change OpenJDK versions from 11 to 8 #42

Closed ryanbourdais closed 2 years ago

ryanbourdais commented 2 years ago

Added a new job to allow switch OpenJDK versions per this issue

Description Wrote a command with 3 steps, the first to check the current OpenJDK version, the second changes the default OpenJDK version of the current image to OpenJDK v8, and the third step confirms the change by running java -version once more Also, added a parameter that will allow you to change OpenJDK versions, default: '1.8.0'. To check available OpenJDK versions, run update-java-alternatives --list

ryanbourdais commented 2 years ago

Your development orb has been published. It will expire in 30 days. You can preview what this will look like on the CircleCI Orb Registry at the following link: https://circleci.com/developer/orbs/orb/circleci/android?version=dev:7588031559f4e01ba198c69979bd5d6b64a609f2

ryanbourdais commented 2 years ago

Your development orb has been published. It will expire in 30 days. You can preview what this will look like on the CircleCI Orb Registry at the following link: https://circleci.com/developer/orbs/orb/circleci/android?version=dev:dd3024e5ed6c1d4f7c30bb6aff3aefed9de3b7e8

ryanbourdais commented 2 years ago

Your development orb has been published. It will expire in 30 days. You can preview what this will look like on the CircleCI Orb Registry at the following link: https://circleci.com/developer/orbs/orb/circleci/android?version=dev:d1a343d7eecb7d1d14e2e411285703fc595ad143

ryanbourdais commented 2 years ago

Your development orb has been published. It will expire in 30 days. You can preview what this will look like on the CircleCI Orb Registry at the following link: https://circleci.com/developer/orbs/orb/circleci/android?version=dev:b8a007f73bdaf3cfd1fc14c519e76e097c2db469

ryanbourdais commented 2 years ago

Your development orb has been published. It will expire in 30 days. You can preview what this will look like on the CircleCI Orb Registry at the following link: https://circleci.com/developer/orbs/orb/circleci/android?version=dev:c3e90ec8595813a1117fad368c50123a3fe6006c

ryanbourdais commented 2 years ago

Your development orb has been published. It will expire in 30 days. You can preview what this will look like on the CircleCI Orb Registry at the following link: https://circleci.com/developer/orbs/orb/circleci/android?version=dev:6e09439e23f236c0a872b039af53a11a1d18cb86

ryanbourdais commented 2 years ago

Added check to ensure that the requested java version is not the currently set version, as well as added code to set the JAVA_HOME and PATH variables following the installation of a new java version

ryanbourdais commented 2 years ago

Your development orb has been published. It will expire in 30 days. You can preview what this will look like on the CircleCI Orb Registry at the following link: https://circleci.com/developer/orbs/orb/circleci/android?version=dev:2b5552e58c4c4de6d614a9ed9e883263e672004c

ryanbourdais commented 2 years ago

Your development orb has been published. It will expire in 30 days. You can preview what this will look like on the CircleCI Orb Registry at the following link: https://circleci.com/developer/orbs/orb/circleci/android?version=dev:2114a13d668e90a1341e54d9d3a8c30630376196

ryanbourdais commented 2 years ago

Your development orb has been published. It will expire in 30 days. You can preview what this will look like on the CircleCI Orb Registry at the following link: https://circleci.com/developer/orbs/orb/circleci/android?version=dev:caddd94ebd2aecee939e6fc7d51117181642edf1

ryanbourdais commented 2 years ago

Your development orb has been published. It will expire in 30 days. You can preview what this will look like on the CircleCI Orb Registry at the following link: https://circleci.com/developer/orbs/orb/circleci/android?version=dev:219709b83a9078c8ff05e2b5f854e0ea42edfba4

ryanbourdais commented 2 years ago

Your development orb has been published. It will expire in 30 days. You can preview what this will look like on the CircleCI Orb Registry at the following link: https://circleci.com/developer/orbs/orb/circleci/android?version=dev:b9d95c938358a86657060745c521fdf8d6e0a4b9

ryanbourdais commented 2 years ago

Your development orb has been published. It will expire in 30 days. You can preview what this will look like on the CircleCI Orb Registry at the following link: https://circleci.com/developer/orbs/orb/circleci/android?version=dev:7c6e026ed9f0bcf33c3652e689ab618e9f8946fd

ryanbourdais commented 2 years ago

Your development orb has been published. It will expire in 30 days. You can preview what this will look like on the CircleCI Orb Registry at the following link: https://circleci.com/developer/orbs/orb/circleci/android?version=dev:da34a835404de6f7871141ccac225bf72a9450fe

ryanbourdais commented 2 years ago

Your development orb has been published. It will expire in 30 days. You can preview what this will look like on the CircleCI Orb Registry at the following link: https://circleci.com/developer/orbs/orb/circleci/android?version=dev:8c47c72d0506c3ec4c95a4dd5a0f1ad8f5710bd5

ryanbourdais commented 2 years ago

Your development orb has been published. It will expire in 30 days. You can preview what this will look like on the CircleCI Orb Registry at the following link: https://circleci.com/developer/orbs/orb/circleci/android?version=dev:ea53781abcf38d87b0b895ca52d2ab2d9bfdda37

ryanbourdais commented 2 years ago

Your development orb has been published. It will expire in 30 days. You can preview what this will look like on the CircleCI Orb Registry at the following link: https://circleci.com/developer/orbs/orb/circleci/android?version=dev:35d88ad6f7cd0344718eb3088e9fb1bf356cc4f7

ryanbourdais commented 2 years ago

Your development orb has been published. It will expire in 30 days. You can preview what this will look like on the CircleCI Orb Registry at the following link: https://circleci.com/developer/orbs/orb/circleci/android?version=dev:08ecdfd446b1986a2e415fdc9a61b9630dcc1247

ryanbourdais commented 2 years ago

Your development orb has been published. It will expire in 30 days. You can preview what this will look like on the CircleCI Orb Registry at the following link: https://circleci.com/developer/orbs/orb/circleci/android?version=dev:227bc2a6bb78161a69f4e2416ef9121bdafb8cf6

ryanbourdais commented 2 years ago

Your development orb has been published. It will expire in 30 days. You can preview what this will look like on the CircleCI Orb Registry at the following link: https://circleci.com/developer/orbs/orb/circleci/android?version=dev:03ed086c46de15bb693b2c1a29566f3b86597fb5

ryanbourdais commented 2 years ago

Your development orb has been published. It will expire in 30 days. You can preview what this will look like on the CircleCI Orb Registry at the following link: https://circleci.com/developer/orbs/orb/circleci/android?version=dev:9bc6df0eac6229f1121dd3b978694c98eb7896e8

ryanbourdais commented 2 years ago

Your development orb has been published. It will expire in 30 days. You can preview what this will look like on the CircleCI Orb Registry at the following link: https://circleci.com/developer/orbs/orb/circleci/android?version=dev:cbf42082c5663b155646352dd4db9629f469d950

ryanbourdais commented 2 years ago

Your development orb has been published. It will expire in 30 days. You can preview what this will look like on the CircleCI Orb Registry at the following link: https://circleci.com/developer/orbs/orb/circleci/android?version=dev:b3e8896c1def890268274e2889bffdd1dfcfd8fb

ryanbourdais commented 2 years ago

Here is a link to a green build of the current PR: https://app.circleci.com/pipelines/github/ryanbourdais/android-orb/33/workflows/453ec5c6-2976-4b8a-941a-934ab223b2f2

The current PR has coverage for switch to OpenJDK versions 8 and 11, as well as for installing other versions of OpenJDK such as version 13

JalexChen commented 2 years ago

i think it looks fine, but i would want to get a second review as well

ryanbourdais commented 2 years ago

Your development orb has been published. It will expire in 30 days. You can preview what this will look like on the CircleCI Orb Registry at the following link: https://circleci.com/developer/orbs/orb/circleci/android?version=dev:a2d8deb0fb542bb1d3a8985a6cb3d5667a5ea1b9

ryanbourdais commented 2 years ago

Your development orb has been published. It will expire in 30 days. You can preview what this will look like on the CircleCI Orb Registry at the following link: https://circleci.com/developer/orbs/orb/circleci/android?version=dev:db74193d9e076ba3d976f2482122ca86571a5e9c

ryanbourdais commented 2 years ago

Your development orb has been published. It will expire in 30 days. You can preview what this will look like on the CircleCI Orb Registry at the following link: https://circleci.com/developer/orbs/orb/circleci/android?version=dev:eb34324247739284c0394a77a946291afdd86a6a

ryanbourdais commented 2 years ago

Your development orb has been published. It will expire in 30 days. You can preview what this will look like on the CircleCI Orb Registry at the following link: https://circleci.com/developer/orbs/orb/circleci/android?version=dev:bea5606318682feb77e2451509b8ebda74f0c074

ryanbourdais commented 2 years ago

Your development orb has been published. It will expire in 30 days. You can preview what this will look like on the CircleCI Orb Registry at the following link: https://circleci.com/developer/orbs/orb/circleci/android?version=dev:645bb0c29fac2d4c26fc05fa97f472bd3107f272

ryanbourdais commented 2 years ago

Your development orb has been published. It will expire in 30 days. You can preview what this will look like on the CircleCI Orb Registry at the following link: https://circleci.com/developer/orbs/orb/circleci/android?version=dev:dc28f8678e80959ef741ec34e2a7ce933a9a708e

ryanbourdais commented 2 years ago

Your development orb has been published. It will expire in 30 days. You can preview what this will look like on the CircleCI Orb Registry at the following link: https://circleci.com/developer/orbs/orb/circleci/android?version=dev:3c07eca5e6808d4ba426a47aefeeee4093f88ad4

ryanbourdais commented 2 years ago

Your development orb has been published. It will expire in 30 days. You can preview what this will look like on the CircleCI Orb Registry at the following link: https://circleci.com/developer/orbs/orb/circleci/android?version=dev:f08a0efe1ad7d72174cf9577e8f83467cfef0dab

ryanbourdais commented 2 years ago

Your development orb has been published. It will expire in 30 days. You can preview what this will look like on the CircleCI Orb Registry at the following link: https://circleci.com/developer/orbs/orb/circleci/android?version=dev:03ed9584eb45d30c829e024d614b97a22ebc16ab

ryanbourdais commented 2 years ago

Your development orb has been published. It will expire in 30 days. You can preview what this will look like on the CircleCI Orb Registry at the following link: https://circleci.com/developer/orbs/orb/circleci/android?version=dev:a45a377ab60f846ba6b6c5f6a6c2d0ec589388b6

ryanbourdais commented 2 years ago

Your development orb has been published. It will expire in 30 days. You can preview what this will look like on the CircleCI Orb Registry at the following link: https://circleci.com/developer/orbs/orb/circleci/android?version=dev:c3ff99a9ebfe99e7f2b39f17ffacd06d6b155bbd

ryanbourdais commented 2 years ago

Your development orb has been published. It will expire in 30 days. You can preview what this will look like on the CircleCI Orb Registry at the following link: https://circleci.com/developer/orbs/orb/circleci/android?version=dev:a65afbfbfbb25e4522957d8842315e0057f891c5

ryanbourdais commented 2 years ago

Your development orb has been published. It will expire in 30 days. You can preview what this will look like on the CircleCI Orb Registry at the following link: https://circleci.com/developer/orbs/orb/circleci/android?version=dev:edcf97483f0a972b1ca3f8610cd11e174a6669fb

ryanbourdais commented 2 years ago

Your development orb has been published. It will expire in 30 days. You can preview what this will look like on the CircleCI Orb Registry at the following link: https://circleci.com/developer/orbs/orb/circleci/android?version=dev:93d1123dac6d25f3425b8ffe44e2653459024b20

ryanbourdais commented 2 years ago

Your development orb has been published. It will expire in 30 days. You can preview what this will look like on the CircleCI Orb Registry at the following link: https://circleci.com/developer/orbs/orb/circleci/android?version=dev:dc6d568e9b4ab0b840da94d20c81fb5289b2bc1f

ryanbourdais commented 2 years ago

Your development orb has been published. It will expire in 30 days. You can preview what this will look like on the CircleCI Orb Registry at the following link: https://circleci.com/developer/orbs/orb/circleci/android?version=dev:5a0a49fc79a5f92685d92a8241a2799f49edcadd

ryanbourdais commented 2 years ago

Your development orb has been published. It will expire in 30 days. You can preview what this will look like on the CircleCI Orb Registry at the following link: https://circleci.com/developer/orbs/orb/circleci/android?version=dev:5cdbcc53e8a0585631ab58c0ceac2b632d551662

ryanbourdais commented 2 years ago

Your development orb has been published. It will expire in 30 days. You can preview what this will look like on the CircleCI Orb Registry at the following link: https://circleci.com/developer/orbs/orb/circleci/android?version=dev:4fbf1cc17ddebfb5edc4e0681478561a4684529d

ryanbourdais commented 2 years ago

Your development orb has been published. It will expire in 30 days. You can preview what this will look like on the CircleCI Orb Registry at the following link: https://circleci.com/developer/orbs/orb/circleci/android?version=dev:2abd4ac794a1bfdfac2212f6bd908aa745df6c10

ryanbourdais commented 2 years ago

Your development orb has been published. It will expire in 30 days. You can preview what this will look like on the CircleCI Orb Registry at the following link: https://circleci.com/developer/orbs/orb/circleci/android?version=dev:037b23ae2805fd14c031fd44c6aef3ebefb0dfe1

ryanbourdais commented 2 years ago

Your development orb has been published. It will expire in 30 days. You can preview what this will look like on the CircleCI Orb Registry at the following link: https://circleci.com/developer/orbs/orb/circleci/android?version=dev:a99868e14557f0877bc3fc282cc6a89bbfdd04dc

ryanbourdais commented 2 years ago

Your development orb has been published. It will expire in 30 days. You can preview what this will look like on the CircleCI Orb Registry at the following link: https://circleci.com/developer/orbs/orb/circleci/android?version=dev:ffd5851e0dbe9e34e5d61d349039d0868bc44449

ryanbourdais commented 2 years ago

Your development orb has been published. It will expire in 30 days. You can preview what this will look like on the CircleCI Orb Registry at the following link: https://circleci.com/developer/orbs/orb/circleci/android?version=dev:d4f1d6f5440ca5ab81418981cbee45939feb1e6c

ryanbourdais commented 2 years ago

Your development orb has been published. It will expire in 30 days. You can preview what this will look like on the CircleCI Orb Registry at the following link: https://circleci.com/developer/orbs/orb/circleci/android?version=dev:bda7e170d489d6d31fd7a706fee23f3d33761b5c

ryanbourdais commented 2 years ago

Your development orb has been published. It will expire in 30 days. You can preview what this will look like on the CircleCI Orb Registry at the following link: https://circleci.com/developer/orbs/orb/circleci/android?version=dev:eb9cb6a1140c18d1cd57923274b504ff42cc474e