How to use a third party library api in script task of workflow
I want to use a third-party open-source library api within the script task in my workflow.
As an instance I want to use apis within apache-commons-lang3 library how should I include this dependency?
The groovy documentation encouraged to use Grape dependency but just by mentioning the Grab annotation with the dependency group/artifact/version as shown below will it really add the dependency to classpath internally?
@Grapes(
@Grab(group='org.apache.commons', module='commons-lang3', version='3.11')
)
import org.apache.commons.lang3.StringUtils
..
..
Could someone please help?
Former User
Posted 5 years ago · Edited 1 year ago·Last reply 5 years ago
1 comment
arthurburkhardt
·5 years ago · EditedOnly way to know: test it.
Run the workflow and log the content of classpath to see if it was properly handled.