0

I want to download jar for following modules.

import jenkins.model.Jenkins

I am trying to download jenkins-core but I am facing issues. It says jar not found.

@Grapes([
    @Grab(group='org.jenkins-ci.main', module='jenkins-core', version='2.9')
])

Could anybody please help me out in getting the right jar

Thanks,

M. Justin
  • 14,487
  • 7
  • 91
  • 130
LifeIsButifool
  • 129
  • 2
  • 12

1 Answers1

1

The Jenkins artifacts are not available in Maven Central. You need to add a @GrabResolver to point to the Jenkins repository.

@GrabResolver(name='jenkins', root='https://repo.jenkins-ci.org/public/')
@Grab(group='org.jenkins-ci.main', module='jenkins-core', version='2.9')
daspilker
  • 8,154
  • 1
  • 35
  • 49