OpenCV for Java 11 using Brew on Mac

Hi, I’m trying to install opencv for java 11 on my mac. I’m using the following steps:

  1. brew install ant
  2. brew edit opencv - [turn Java flag ON]
  3. brew install opencv

But this is building up opencv with class 65 (Java 21). I want to build it for java 11.

Attaching the logs Output Log in verbose mode