Install Gradle on Katalon Studio

Hi community,

I follow this tutorial : Dependencies Management with Native Gradle Support (Poc) in Katalon Studio | Katalon Docs

And i didn’t find How to implement Gradle in Katalon ?

I find that the Katalon documentation regarding Gradle is not up to date with the latest version of Katalon :

Install Gradle on Katalon Studio

This does not make sense.

This does not make sense either.


Gradle is an independent product on top of Java.

To install Gradle into your PC, just follow the doc

1 Like

can someone update the doc regarding Gradle? there is no gradle in the preferences of katalon 8.6.

I need to use gradle for BigQuery and I absolutely need it for testing.

it would be a shame not to have a maven or gradle for Katalon.

this is one of the major drawbacks.

The documentation link :

Just for your interest.

Here is a sample Katalon Studio project in which I used Gradle together.

I personally do not expect Katalo Studio to get closer to Gradle in future. I see KS and Gradle are 2 different beasts.

You are confused.
The only thing you need with Katalon is, to bring propper jars to solve the deps for your custom codes.
How you do that is up to you.
There may be some examples here and there how to achive that with Graddle or other tools, but here the magic ends.
Katalon cannot integrate currently with any tool like maven or graddle or whatever else simply because is out of scope.

You can locate any external libraries in the <projectDir>/Drivers folder. Katalon Studio recognizes these jars and bring them accessible for the user codes. See the following doc. This is the principal way for users to import the external dependencies into a Katalon project.

https://docs.katalon.com/docs/create-tests/manage-projects/project-settings/library-management-in-katalon-studio

This approach could be problematic when you imported multiple jar versions of a single OSS project, as the following post discusses:

I wanted to use the latest version 2.13.0 of commons-io, while the older version 2.6.0 of commons-io was bundled in the distributable Katalon Studio. Katalon Studio primarily refers to the bundled older version.

Katalon provides a way to exclude the budled jar to prefer another jar in the Drivers folder, but this fails when you run your project on a remote server with KRE as CI/CD pipeline. This post reported it.

@moustik

In my humble opinion, Katalon’s approach for external dependencies is a stopgap measure. It can not solve the problems of complex external dependencies that continues bening upgraded. If you are an experienced Java/Groovy programmer and seriously require the Maven/Gradle’s feature of dependency management, you should consider graduating KS/KRE. You are able to build your project on top of Gradle + WebDriver natively without Katalon, aren’t you?

But, at the same time, I would ask you if you really want it?

Therefore, Groovy + Spock + Geb will help you to build your own testing stack, so you no longer need Katalon.

see:
https://spockframework.org/
a quick example here:

and:
https://www.gebish.org/