Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

ScriptRunner Third Party Jar

Jackson Farnsworth
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 3, 2019

I'm trying to add the p4java jar into my Jira instance so I can access our perforce server. I've seen in some documentation that I should just drop it into the WEB-INF/lib folder. Doing this however causes some plugins to fail on launch, mostly the basic built in looking plugins.

Am I misunderstanding where I need to drop this Jar?

Thanks in advance

1 answer

1 accepted

2 votes
Answer accepted
PD Sheehan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 3, 2019

Groovy supports importing content dynamically using grapes

So a quick search, I saw that p4java is available here

https://mvnrepository.com/artifact/com.perforce/p4java/2019.1.1822775

So you can just call it like this in your script:

@Grapes(
@Grab(group='com.perforce', module='p4java', version='2019.1.1822775')
)
import com.perforce.p4java.*
Jackson Farnsworth
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 8, 2019

Thanks, this is exactly what I needed

Suggest an answer

Log in or Sign up to answer