Thanks Andrew, I'm using dockerized NiFi 1.6.0. I'm new for groovy and Java,
could you please guide how should this annotation looks like? I believe
something like:
@Grab(group='commons-io', module='commons-io', version='2.7-SNAPSHOT')
import org.apache.commons.io.IOUtils
Max
--
Sent from: htt
Max, which NiFi version are you using. Can you try adding the @Grab
annotation in your script declaring the commons-io dependency? IIRC, it was
added recently.
Andrew
On Sun, Apr 22, 2018, 7:38 AM Max Viazovskyi wrote:
> Recently I needed to write custom script to override flow file content,
>
Recently I needed to write custom script to override flow file content, when
script was prepared I fount that it can be executed with ExecuteScript
processor, but ExecuteGroovyScript fails to compile the same script, it
shows the error: unable to resolve class import
org.apache.commons.io.IOUtils.