I followed the instruction presented by How to develop Custom Keywords Plugins and successfully created a jar as a Cutom Keyword as plugin:
My junit4ks-all.jar
contained the following:
M Filemode Length Date Time File
- ---------- -------- ----------- -------- -----------------------------------------------------------------------------
drwxr-xr-x 0 11-Mar-2019 09:45:32 META-INF/
-rw-r--r-- 59 11-Mar-2019 09:45:32 META-INF/MANIFEST.MF
drwxr-xr-x 0 11-Mar-2019 09:45:30 com/
drwxr-xr-x 0 11-Mar-2019 09:45:30 com/example/
-rw-r--r-- 5655 11-Mar-2019 09:45:30 com/example/MiniScreenshotDriver.class
-rw-r--r-- 5754 11-Mar-2019 09:45:30 com/example/MiniScreenshotDriverTest.class
drwxr-xr-x 0 11-Mar-2019 09:45:30 com/kazurayam/
drwxr-xr-x 0 11-Mar-2019 09:45:30 com/kazurayam/junit4ks/
-rw-r--r-- 398 11-Mar-2019 09:45:30 com/kazurayam/junit4ks/IgnoreRest.class
-rw-r--r-- 4148 11-Mar-2019 09:45:30 com/kazurayam/junit4ks/IgnoreRestHelper.class
-rw-r--r-- 3746 11-Mar-2019 09:45:30 com/kazurayam/junit4ks/IgnoreRestRule$1.class
-rw-r--r-- 4780 11-Mar-2019 09:45:30 com/kazurayam/junit4ks/IgnoreRestRule.class
-rw-r--r-- 4397 11-Mar-2019 09:45:30 com/kazurayam/junit4ks/IgnoreRestSupportRunner.class
-rw-r--r-- 393 11-Mar-2019 09:45:30 com/kazurayam/junit4ks/JUnitCustomKeywords$JUnitRunnerResult.class
-rw-r--r-- 5463 11-Mar-2019 09:45:30 com/kazurayam/junit4ks/JUnitCustomKeywords$JUnitRunnerResultImpl.class
-rw-r--r-- 6275 11-Mar-2019 09:45:30 com/kazurayam/junit4ks/JUnitCustomKeywords$RunListener4KS.class
-rw-r--r-- 5909 11-Mar-2019 09:45:30 com/kazurayam/junit4ks/JUnitCustomKeywords$_runWithJUnitRunner_closure1.class
-rw-r--r-- 7323 11-Mar-2019 09:45:30 com/kazurayam/junit4ks/JUnitCustomKeywords.class
-rw-r--r-- 3466 11-Mar-2019 09:45:30 com/kazurayam/junit4ks/JUnitCustomKeywordsTest.class
drwxr-xr-x 0 11-Mar-2019 09:45:30 junittutorial/
-rw-r--r-- 5144 11-Mar-2019 09:45:30 junittutorial/Calculator.class
-rw-r--r-- 4330 11-Mar-2019 09:45:30 junittutorial/CalculatorTest.class
-rw-r--r-- 4436 11-Mar-2019 09:45:30 junittutorial/CalculatorWithIgnoreRestTest.class
-rw-r--r-- 2996 11-Mar-2019 09:45:30 junittutorial/Greeter.class
-rw-r--r-- 3615 11-Mar-2019 09:45:30 junittutorial/GreeterTest.class
-rw-r--r-- 284 11-Mar-2019 09:45:30 katalon-plugin.json
- ---------- -------- ----------- -------- -----------------------------------------------------------------------------
78571 26 files
I noticed that
- I want to exclude
com/example/**/.class
- I want to exclude
junittutorial/**/*.class
- I want to exclude
**/*Test.class
How can I expression my intention in the build.gradle file.