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
TAGS
atlassian, team '25 europe, atlassian event, barcelona 2025, jira, confluence, atlassian intelligence, rovo, ai-powered collaboration, developer tools, agile teams, digital transformation, teamwork solutions, atlassian conference, product announcements

🌆 Team '25 Europe registration is now open!

Join the largest European gathering of the Atlassian Community and reimagine what’s possible when great teams and transformative technology come together. Plus, grab your Super Fan ticket now and save over €1,000 on your pass before prices rise on 3 June.

Register now
AUG Leaders

Atlassian Community Events