# When i run gradle katalonPluginPackage, then got an error as Task 'katalonPluginPackage' not found in root project '\<Username\>'

**URL:** <https://forum.katalon.com/t/when-i-run-gradle-katalonpluginpackage-then-got-an-error-as-task-katalonpluginpackage-not-found-in-root-project-username/22081>\
**Category:** Integrations\
**Tags:** plugins, katalon-studio\
**Created:** [March 28, 2019, 2:34pm UTC](https://forum.katalon.com/t/when-i-run-gradle-katalonpluginpackage-then-got-an-error-as-task-katalonpluginpackage-not-found-in-root-project-username/22081 "2019-03-28T14:34:02Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![duyluong](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/duyluong/32/1116_2.png) [@duyluong](https://forum.katalon.com/u/duyluong)\
**Post date:** [March 29, 2019, 4:20am UTC](https://forum.katalon.com/t/when-i-run-gradle-katalonpluginpackage-then-got-an-error-as-task-katalonpluginpackage-not-found-in-root-project-username/22081/2 "2019-03-29T04:20:01Z")

</div>

Hi @jayeshpansare,

The `katalonPluginPackage` task needs to be run in a KS project. Please follow the instruction: [How to develop Custom Keywords Plugins](http://forum.katalon.com/t/how-to-develop-custom-keywords-plugins/20321)

1. Create or open a Katalon project using Katalon Studio
2. Create bulid.gradle file with this template:

```auto
plugins {
  id 'java'
  id 'groovy'
  id 'com.github.johnrengelman.shadow' version '4.0.4'
  id "com.katalon.gradle-plugin" version "0.0.6"
}

repositories {
  jcenter()
  mavenCentral()
}

sourceSets {
  main {
    groovy {
      srcDirs = ['Keywords', 'Include/scripts/groovy']
      srcDir 'Libs'
    }
  }
}

```

1. Run `gradle katalonPluginPackage` command under the created project

Thanks

---

_[View the full topic](https://forum.katalon.com/t/when-i-run-gradle-katalonpluginpackage-then-got-an-error-as-task-katalonpluginpackage-not-found-in-root-project-username/22081)._
