From 910da01d97e32bd8b604530f37edb1e0c283f66f Mon Sep 17 00:00:00 2001 From: Linh To <82356282+linhtnlK@users.noreply.github.com> Date: Tue, 27 Feb 2024 10:32:26 +0700 Subject: [PATCH] [STUDIO-4580] Upgrade groovy v3.0.17 (#18) * upgrade groovy 2.4.7 -> 3.0.17 --------- Co-authored-by: linhtnl --- README.md | 19 +++++++++++++++++++ build.gradle | 2 +- .../gradle/plugin/KatalonGradlePlugin.java | 2 +- 3 files changed, 21 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 476dbf3..d2c4fe2 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,25 @@ This Gradle plugin helps simplify/automate some tasks in Katalon Studio. It is published at https://plugins.gradle.org/plugin/com.katalon.gradle-plugin. +## How to build and test +* **Build** +Run `gradle build` +* **Test** +
Suggestion plugin: [katalon-studio-zip-keywords-plugin](https://github.com/katalon-studio/katalon-studio-zip-keywords-plugin) +
Remove line `'com.katalon.gradle-plugin' version ''` +
Adding this script to the build.gradle file in the tested plugin. +``` +buildscript{ + dependencies{ + classpath files('/katalon-gradle-plugin-.jar') + } +} +..... +apply plugin: com.katalon.gradle.plugin.KatalonGradlePlugin +``` + + + ## Gradle Tasks * `katalonCopyDependencies` diff --git a/build.gradle b/build.gradle index 7081d86..f10b97a 100644 --- a/build.gradle +++ b/build.gradle @@ -6,7 +6,7 @@ plugins { } group = 'com.katalon.gradle.plugin' -version = '0.1.1' +version = '0.1.2' publishing { repositories { diff --git a/src/main/java/com/katalon/gradle/plugin/KatalonGradlePlugin.java b/src/main/java/com/katalon/gradle/plugin/KatalonGradlePlugin.java index e7fed30..bbb670f 100644 --- a/src/main/java/com/katalon/gradle/plugin/KatalonGradlePlugin.java +++ b/src/main/java/com/katalon/gradle/plugin/KatalonGradlePlugin.java @@ -13,7 +13,7 @@ public class KatalonGradlePlugin implements Plugin { static final String RESOURCE_DIR = "Keywords"; static final String METADATA_FILE = "katalon-plugin.json"; static final String GROOVY_DEPENDENCY = "org.codehaus.groovy:groovy-all"; - static final String GROOVY_VERSION = "2.4.7"; + static final String GROOVY_VERSION = "3.0.17"; private void applyPlugins(Project project) { project.getPlugins().apply(JavaPlugin.class);