# How do I compile the project via gradle/maven?

**URL:** <https://forum.katalon.com/t/how-do-i-compile-the-project-via-gradle-maven/16301>\
**Category:** Web Testing\
**Tags:** katalon-studio\
**Created:** [January 3, 2019, 6:52pm UTC](https://forum.katalon.com/t/how-do-i-compile-the-project-via-gradle-maven/16301 "2019-01-03T18:52:15Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![kofoed.kyle](https://avatars.discourse-cdn.com/v4/letter/k/f4b2a3/32.png) [@kofoed.kyle](https://forum.katalon.com/u/kofoed.kyle)\
**Post date:** [January 3, 2019, 6:52pm UTC](https://forum.katalon.com/t/how-do-i-compile-the-project-via-gradle-maven/16301/1 "2019-01-03T18:52:15Z")

</div>

I’d like to share the results of this build to other machines. how do i do a straight compile of the groovy files?

---

<div class="post-metadata">

**Author:** ![Ibus](https://avatars.discourse-cdn.com/v4/letter/i/e9a140/32.png) [@Ibus](https://forum.katalon.com/u/Ibus)\
**Post date:** [January 3, 2019, 6:55pm UTC](https://forum.katalon.com/t/how-do-i-compile-the-project-via-gradle-maven/16301/2 "2019-01-03T18:55:14Z")

</div>

you cannot.

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [January 3, 2019, 9:57pm UTC](https://forum.katalon.com/t/how-do-i-compile-the-project-via-gradle-maven/16301/3 "2019-01-03T21:57:24Z")

</div>

> [@kofoed.kyle](#):
>
> I’d like to share the results of this build to other machines.

You should store the project into a remote GitHub repository. Then you want clone the project into other machine. Have a look at the following comment of mine:

- [How do i export a project and re-import in another machine - #5 by kazurayam](http://forum.katalon.com/t/how-do-i-export-a-project-and-re-import-in-another-machine/13327/5)

See the following document for Katalon Studio - Git integration:

- [https://docs.katalon.com/katalon-studio/tutorials/git\_integration\_introduction.html#4-clone-project](https://docs.katalon.com/katalon-studio/tutorials/git_integration_introduction.html#4-clone-project)

---

<div class="post-metadata">

**Author:** ![kofoed.kyle](https://avatars.discourse-cdn.com/v4/letter/k/f4b2a3/32.png) [@kofoed.kyle](https://forum.katalon.com/u/kofoed.kyle)\
**Post date:** [January 3, 2019, 11:44pm UTC](https://forum.katalon.com/t/how-do-i-compile-the-project-via-gradle-maven/16301/4 "2019-01-03T23:44:38Z")

</div>

is there documentation stating this?

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [January 4, 2019, 6:16am UTC](https://forum.katalon.com/t/how-do-i-compile-the-project-via-gradle-maven/16301/6 "2019-01-04T06:16:50Z")

</div>

> [@kofoed.kyle](#):
>
> is there documentation stating this?

I think there is no documentation which states “you can not compile the Katalon project via gradle/maven”. Will you ask why? Simply because Katalon does not use gradle/maven at all. So your question is pointless.

Katalon Studio is built upon Eclipse. Katalon compiles Groovy codes into \*.class binary files using Eclipse’s Groovy support.

---

<div class="post-metadata">

**Author:** ![kofoed.kyle](https://avatars.discourse-cdn.com/v4/letter/k/f4b2a3/32.png) [@kofoed.kyle](https://forum.katalon.com/u/kofoed.kyle)\
**Post date:** [January 4, 2019, 4:17pm UTC](https://forum.katalon.com/t/how-do-i-compile-the-project-via-gradle-maven/16301/7 "2019-01-04T16:17:54Z")

</div>

so i should be able to compile via groovy gradle task. thats what im trying to do. compile without katalon.

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [January 4, 2019, 9:42pm UTC](https://forum.katalon.com/t/how-do-i-compile-the-project-via-gradle-maven/16301/8 "2019-01-04T21:42:51Z")

</div>

You can open a Katalon Studio project on your disk drive with Eclipse or Intellij-IDEA and compile groovy codes without Katalon. Have a look at the following discussion:

- [How to write Katalon Studio tests with IntelliJ IDEA and other IDEs](http://forum.katalon.com/t/how-to-write-katalon-studio-tests-with-intellij-idea-and-other-ides/15940)

All I wanted to achieve through that discussion was running JUnit tests for my custom keywords. We did not discuss how to build a jar.

I would foresee it is possible but a tough task to utilize the Gradle groovy task for a Katalon Studio project. Why? — the first difficulty I see is, because the directory structure of a standard Katalon Studio project is completely different from [the Gradle standard](https://docs.gradle.org/current/userguide/organizing_gradle_projects.html). There could be more of difficulties.

---

<div class="post-metadata">

**Author:** ![rajeshri.zade](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/rajeshri.zade/32/16103_2.png) [@rajeshri.zade](https://forum.katalon.com/u/rajeshri.zade)\
**Post date:** [August 9, 2019, 5:35am UTC](https://forum.katalon.com/t/how-do-i-compile-the-project-via-gradle-maven/16301/9 "2019-08-09T05:35:25Z")

</div>

@kazurayam so which tool do you suggest to do build automation of katalon project?

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [August 11, 2019, 7:58pm UTC](https://forum.katalon.com/t/how-do-i-compile-the-project-via-gradle-maven/16301/10 "2019-08-11T19:58:08Z")

</div>

> [@rajeshri.zade](#):
>
> which tool do you suggest to do build automation of katalon project?

I do not see what you want to do.

You want to build a katalon project? — then I think Katalon Studio is the only one tool that is capable of it. You don’t like it? Why? Please describe.

What do you mean by saying “build automation”?

---

<div class="post-metadata">

**Author:** ![rajeshri.zade](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/rajeshri.zade/32/16103_2.png) [@rajeshri.zade](https://forum.katalon.com/u/rajeshri.zade)\
**Post date:** [August 12, 2019, 6:02am UTC](https://forum.katalon.com/t/how-do-i-compile-the-project-via-gradle-maven/16301/11 "2019-08-12T06:02:13Z")

</div>

I loved Katalon; I have introduced this tool for doing E2E testing in my organization and possibly going to buy support as well in near future.

DevOps team is trying to bring node version management to katalon project and hence looking for options ? ( gradle seems to be an option too)

P.S. Honestly, i dont see much significance in doing so or rather don’t see the need OR May I ask why do people use gradle with katalon ??\_

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [August 12, 2019, 8:48pm UTC](https://forum.katalon.com/t/how-do-i-compile-the-project-via-gradle-maven/16301/12 "2019-08-12T20:48:14Z")

</div>

> [@rajeshri.zade](#):
>
> DevOps team is trying to bring node version management to katalon project

What do you mean by this?

Do you mean just that DevOps team requires your katalon project to be version-controlled using Git backed by some remote repository? What else do they require?

---

<div class="post-metadata">

**Author:** ![rajeshri.zade](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/rajeshri.zade/32/16103_2.png) [@rajeshri.zade](https://forum.katalon.com/u/rajeshri.zade)\
**Post date:** [August 22, 2019, 6:18am UTC](https://forum.katalon.com/t/how-do-i-compile-the-project-via-gradle-maven/16301/13 "2019-08-22T06:18:03Z")

</div>

I meant DevOps team requires Katalon project ( meaning the test cases and suites) to be automatically versioned so that it gets tagged as per the release. ( and hence it will give flexibility to run any (back-dated) release specific TCs/TSs too)

---

<div class="post-metadata">

**Author:** ![Ibus](https://avatars.discourse-cdn.com/v4/letter/i/e9a140/32.png) [@Ibus](https://forum.katalon.com/u/Ibus)\
**Post date:** [August 22, 2019, 6:28am UTC](https://forum.katalon.com/t/how-do-i-compile-the-project-via-gradle-maven/16301/14 "2019-08-22T06:28:47Z")

</div>

if you keep the project in git, when a milestone is reached you can tag it and do a release. that will create an archive of your current code. so, when running it from CI you can just grab the release and unpack it instead of git pull

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [August 22, 2019, 6:31am UTC](https://forum.katalon.com/t/how-do-i-compile-the-project-via-gradle-maven/16301/15 "2019-08-22T06:31:05Z")

</div>

> [@rajeshri.zade](#):
>
> DevOps team is trying to bring node version management to katalon project and hence looking for options ? ( gradle seems to be an option too)

You can do version-control over any Katalon Project using Git.Many people does it. So Git is your option.

Gradle lets you perform a sequence of tasks like this: [https://docs.gradle.org/current/userguide/img/task-dag-examples.png](https://docs.gradle.org/current/userguide/img/task-dag-examples.png)

Gradle is not a version-control system.

---

<div class="post-metadata">

**Author:** ![Ibus](https://avatars.discourse-cdn.com/v4/letter/i/e9a140/32.png) [@Ibus](https://forum.katalon.com/u/Ibus)\
**Post date:** [August 22, 2019, 6:34am UTC](https://forum.katalon.com/t/how-do-i-compile-the-project-via-gradle-maven/16301/16 "2019-08-22T06:34:49Z")

</div>

see also some tips and tricks here on how to checkout by tag:

> <https://stackoverflow.com/questions/791959/download-a-specific-tag-with-git>

---

<div class="post-metadata">

**Author:** ![rajeshri.zade](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/rajeshri.zade/32/16103_2.png) [@rajeshri.zade](https://forum.katalon.com/u/rajeshri.zade)\
**Post date:** [August 22, 2019, 6:35am UTC](https://forum.katalon.com/t/how-do-i-compile-the-project-via-gradle-maven/16301/17 "2019-08-22T06:35:08Z")

</div>

We are using Git ! But version gets assigned only during check-in and we are talking about the automatic versioning. Here are the actual words 😉

“we need to version your (testing team’s) source code and increase the version for each of build. That’s where we are talking about, as the JIRA says, “version management”. Therefore, we need some thing that can increase and manage versions automatically, not by modifying a text file manually, the version management tool will be triggered by jenkins. So that’s why you can use any tool that can manage versions. If you (testing team) prefer node, it’s fine, or if you(testing team) prefer java based (mvn/gradle), you(testing team) don’t need to have a node environment, then you(testing team) can simiply use Katalon native runtime environment.”

---

<div class="post-metadata">

**Author:** ![rajeshri.zade](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/rajeshri.zade/32/16103_2.png) [@rajeshri.zade](https://forum.katalon.com/u/rajeshri.zade)\
**Post date:** [August 22, 2019, 6:35am UTC](https://forum.katalon.com/t/how-do-i-compile-the-project-via-gradle-maven/16301/18 "2019-08-22T06:35:39Z")

</div>

Thanks. Already using this approach 🙂

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [August 22, 2019, 6:38am UTC](https://forum.katalon.com/t/how-do-i-compile-the-project-via-gradle-maven/16301/19 "2019-08-22T06:38:14Z")

</div>

> [@rajeshri.zade](#):
>
> “we need to version your (testing team’s) source code and increase the version for each of build. …

Who wrote this? Your DevOps team?

---

<div class="post-metadata">

**Author:** ![Ibus](https://avatars.discourse-cdn.com/v4/letter/i/e9a140/32.png) [@Ibus](https://forum.katalon.com/u/Ibus)\
**Post date:** [August 22, 2019, 6:39am UTC](https://forum.katalon.com/t/how-do-i-compile-the-project-via-gradle-maven/16301/20 "2019-08-22T06:39:19Z")

</div>

> [@rajeshri.zade](#):
>
> the version management tool will be triggered by jenkins

you can do tagging straight from jenkins

---

<div class="post-metadata">

**Author:** ![rajeshri.zade](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/rajeshri.zade/32/16103_2.png) [@rajeshri.zade](https://forum.katalon.com/u/rajeshri.zade)\
**Post date:** [August 22, 2019, 6:40am UTC](https://forum.katalon.com/t/how-do-i-compile-the-project-via-gradle-maven/16301/21 "2019-08-22T06:40:11Z")

</div>

Yeah. You are right!

[Next page](https://forum.katalon.com/t/how-do-i-compile-the-project-via-gradle-maven/16301.md?page=2)
