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

Hi @jayeshpansare,

The katalonPluginPackage task needs to be run in a KS project. Please follow the instruction: How to develop Custom Keywords Plugins

  1. Create or open a Katalon project using Katalon Studio
  2. Create bulid.gradle file with this template:
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

2 Likes