stepped through the various config items on my Windows machine:
Docker desktop (v19.03.13) with WSL2 engine
Gateway 10 policy manager
Java (openjdk 1.8.0_265)
Gradle (6.7)
Git (2.26.2.windows.1)
They can deploy the demo gateway on docker, and connect to it with the policy manager. Gradle seems to work too – it does not report any startup errors. Cloning git repositories works fine too.
However when they try to do a clean export (gradle export clean), I get an error: Failed to apply plugin ‘com.ca.apim.gateway.gateway-
Looking through the trace, it looks like gradle has managed to cache gateway-export-plugin-1.0.2.
I have checked the local .gradle cache and it does have a gateway-export-plugin-1.0.2.
The customer's original attempt was based around Intellij Community – that gives exactly the same error.
Release : 10.0
Component : API GATEWAY
Advised the customer to follow the instructions below which resolved the above problem.
run this command and verify what you get.
>> gradle clean export --stacktrace --debug
If your export fails showing any build failure exception as shown below, it would mostly be gradle version incompatibility:
Check your gradle version using the gradle --version command and ensure the version is 4.10.
You can also use a gradle wrapper to fix this issue:
Add the following section in your build.gradle file:
wrapper {
gradleVersion = '4.10.2'
}
Run the following command:
>> gradle wrapper
Run your gradle tasks using the gradle wrapper:
./gradlew clean export