CircleCI-Public / cimg-android

The CircleCI Android Docker Convenience Image.
MIT License
75 stars 37 forks source link

Set the JAVA_HOME in the build image. #31

Closed tevjef closed 2 years ago

tevjef commented 2 years ago

The old image has the JAVA_HOME environment variable set by default. Having set it manually in my build seems unnecessary. Certain tools like gradle-doctor will fail if it is not set.

  environment:
    JAVA_HOME: "/usr/lib/jvm/java-11-openjdk-amd64"

This is my current workaround in my config.yml