Configuring the Engine Library
Configure the Gradle property CPLEX_STUDIO to your local CPLEX Studio home. For more details, please refer to Section Using Gradle Configuration Files.
In the file processing/engine/build.gradle, uncomment the line that mentions the file local-cplex.gradle.
These code changes will make your Java code use the libraries from your CPLEX Studio home when running on your machine.
You can now write code and run tests that uses CPLEX.