[
https://issues.apache.org/jira/browse/DATAFU-65?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14080490#comment-14080490
]
Matthew Hayes commented on DATAFU-65:
-------------------------------------
Looks cool, the following should work:
Add this to datafu-pig/build.gradle:
{code}
autojarred "org.ahocorasick: ahocorasick:$ahocorasickVersion"
{code}
Add this to gradle/dependency-versions.gradle:
{code}
ahocorasickVersion="0.2.2"
{code}
> Aho-Corasick Pig UDF
> --------------------
>
> Key: DATAFU-65
> URL: https://issues.apache.org/jira/browse/DATAFU-65
> Project: DataFu
> Issue Type: Bug
> Affects Versions: 1.3.0
> Environment: Drought
> Reporter: Russell Jurney
> Fix For: 1.3.0
>
> Original Estimate: 8h
> Remaining Estimate: 8h
>
> I need to use the Aho-Corasick algorithm for efficient sub-string matching. A
> java implementation is available at
> https://github.com/robert-bor/aho-corasick and is available on maven central:
> http://maven-repository.com/artifact/org.arabidopsis.ahocorasick/ahocorasick/2.x
> A Pig UDF will be very helpful to me.
> How do I add a maven dependency with gradle?
--
This message was sent by Atlassian JIRA
(v6.2#6252)