Re: System Groovy Script: hudson.*, jenkins.* and org.jenkinsci.* imports are not found in IntelliJ IDEA

2021-02-16 Thread Amedee Van Gasse
Oh? I didn't know that Maven also did Groovy. You learn something new every day, don't ya? For now I did something with Gradle. Don't know if it actually works because I have never used Gradle before, and I already had the jars in my lib folder. But anyway, as long as it #worksforme, it's good

Re: System Groovy Script: hudson.*, jenkins.* and org.jenkinsci.* imports are not found in IntelliJ IDEA

2021-02-16 Thread Yannick Lacaute
Hello, maybe you could you use maven to declare the dependencies instead of downloading them manually. The IDE will download jars and resolve imports automatically, this is what I do when I develop shared library for example. On Tue, Feb 16, 2021 at 1:47 PM Amedee Van Gasse wrote: > I am happy

Re: System Groovy Script: hudson.*, jenkins.* and org.jenkinsci.* imports are not found in IntelliJ IDEA

2021-02-16 Thread Amedee Van Gasse
I am happy to report that after adding the following jars to my lib folder, I no longer have errors: jenkins-core-2.263.3.jar workflow-api-2.41.jar workflow-cps-2.87.jar workflow-job-2.40.jar workflow-step-api-2.23.jar jenkins-core-2.263.3-javadoc.jar

Re: System Groovy Script: hudson.*, jenkins.* and org.jenkinsci.* imports are not found in IntelliJ IDEA

2021-02-16 Thread Amedee Van Gasse
Answering my own question for at least the hudson.* and jenkins.* imports: * download jenkins-core for my Jenkins version from https://repo.jenkins-ci.org/ (in my case: version 2.263.3, so I need

System Groovy Script: hudson.*, jenkins.* and org.jenkinsci.* imports are not found in IntelliJ IDEA

2021-02-16 Thread Amedee Van Gasse
Following up on my previous question about a System Groovy Script. I have a .groovy file in a git repo. I have cloned the git repo to my pc. I have opened the directory in IntelliJ IDEA. Now I get a lot of red text. None of the imports are found. It looks like this: import hudson.model.*;