Re: I'm working on a new plugin and when I try to run it I get the following error

2020-02-24 Thread Mark Waite
Adopt OpenJDK is widely used in the Jenkins project.  You're also welcome
to use other OpenJDK implementations.  Licensing restrictions on recent
Oracle JDK 8 versions have made it very rarely used in the Jenkins project.

On Mon, Feb 24, 2020 at 11:38 AM Daniel Anechitoaie 
wrote:

> Will do. Is OpenJDK ok? Or i need Oracle JDK?
>
> On Monday, February 24, 2020 at 8:35:39 PM UTC+2, Jesse Glick wrote:
>>
>> On Mon, Feb 24, 2020 at 12:05 PM Daniel Anechitoaie
>>  wrote:
>> > I'm compiling on OpenJDK 11.
>>
>> Best to use JDK 8 for all purposes related to Jenkins.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-dev+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-dev/b925de42-af7a-4047-92bb-01b39b69d6a6%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CAO49JtHt-ooDrX5E0HaETr-_9pj%3Dqha%2BEbWzA%2Ba2AiMC9saD_g%40mail.gmail.com.


Re: I'm working on a new plugin and when I try to run it I get the following error

2020-02-24 Thread Daniel Anechitoaie
Will do. Is OpenJDK ok? Or i need Oracle JDK?

On Monday, February 24, 2020 at 8:35:39 PM UTC+2, Jesse Glick wrote:
>
> On Mon, Feb 24, 2020 at 12:05 PM Daniel Anechitoaie 
> > wrote: 
> > I'm compiling on OpenJDK 11. 
>
> Best to use JDK 8 for all purposes related to Jenkins. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/b925de42-af7a-4047-92bb-01b39b69d6a6%40googlegroups.com.


Re: I'm working on a new plugin and when I try to run it I get the following error

2020-02-24 Thread Jesse Glick
On Mon, Feb 24, 2020 at 12:05 PM Daniel Anechitoaie
 wrote:
> I'm compiling on OpenJDK 11.

Best to use JDK 8 for all purposes related to Jenkins.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr2LUp1V42HZEXzjhz2o3fULmFHU%3D0A95R9PGq29%3D4u5CA%40mail.gmail.com.


Re: I'm working on a new plugin and when I try to run it I get the following error

2020-02-24 Thread Daniel Anechitoaie
Yes, that was it. I'm compiling on OpenJDK 11.
Using 2.164.1 works now even with parent 
POM 3.56

Thank you.


On Monday, February 24, 2020 at 6:30:39 PM UTC+2, Mark Waite wrote:
>
>
>
> On Mon, Feb 24, 2020 at 9:19 AM Daniel Anechitoaie  > wrote:
>
>> Hmm, yeah, I had a small brainfart. For some reason I was thinking in 
>> decimal and was seeing 3.6 as 3.60 which in my mind was more recent than 
>> 3.56 (which is the latest 3.x version)/
>>
>> So now with 
>>
>> 
>> org.jenkins-ci.plugins
>> plugin
>> 3.56
>> 
>> 
>>
>>
>>
>> And 
>>
>> 
>> 1.8
>> 8
>> 2.121.1
>> 
>>
>>
>>
>> I get
>>
>> [ERROR] Failed to execute goal 
>> org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile 
>> (default-compile) on project my-plugin: Compilation failure
>> [ERROR] java.nio.file.NoSuchFileException: 
>> /Users/daniels/Work/my-plugin/target/classes/META-INF/annotations/hudson.Extension
>>
>> Should I just go to latest Jenkins and the 4.0 beta parent pom?
>>
>>
> I receive that message when I'm compiling with Java 11 but using a Jenkins 
> version before 2.164.  The first Jenkins LTS to support Java 11 compilation 
> is Jenkins 2.164 (as far as I know)  I've learned to type:
>
> $ mvn clean -Djenkins.version=2.164.3 verify
>
> Eventually, I will update the plugins where I use that technique so that 
> they require Jenkins 2.164 or newer as their minimum version.  Jenkins 
> 2.164 is over a year old.  
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/723e6cd0-0774-4903-8f3f-f33d1e00567f%40googlegroups.com.


Re: I'm working on a new plugin and when I try to run it I get the following error

2020-02-24 Thread Mark Waite
On Mon, Feb 24, 2020 at 9:19 AM Daniel Anechitoaie 
wrote:

> Hmm, yeah, I had a small brainfart. For some reason I was thinking in
> decimal and was seeing 3.6 as 3.60 which in my mind was more recent than
> 3.56 (which is the latest 3.x version)/
>
> So now with
>
> 
> org.jenkins-ci.plugins
> plugin
> 3.56
> 
> 
>
>
>
> And
>
> 
> 1.8
> 8
> 2.121.1
> 
>
>
>
> I get
>
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile
> (default-compile) on project my-plugin: Compilation failure
> [ERROR] java.nio.file.NoSuchFileException:
> /Users/daniels/Work/my-plugin/target/classes/META-INF/annotations/hudson.Extension
>
> Should I just go to latest Jenkins and the 4.0 beta parent pom?
>
>
I receive that message when I'm compiling with Java 11 but using a Jenkins
version before 2.164.  The first Jenkins LTS to support Java 11 compilation
is Jenkins 2.164 (as far as I know)  I've learned to type:

$ mvn clean -Djenkins.version=2.164.3 verify

Eventually, I will update the plugins where I use that technique so that
they require Jenkins 2.164 or newer as their minimum version.  Jenkins
2.164 is over a year old.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CAO49JtFcGD4ByCPZKQ0Zb6pWGirs5utgsHyoUZ5W8zWQOPtzWw%40mail.gmail.com.


Re: I'm working on a new plugin and when I try to run it I get the following error

2020-02-24 Thread Daniel Anechitoaie
Hmm, yeah, I had a small brainfart. For some reason I was thinking in 
decimal and was seeing 3.6 as 3.60 which in my mind was more recent than 
3.56 (which is the latest 3.x version)/

So now with 


org.jenkins-ci.plugins
plugin
3.56





And 


1.8
8
2.121.1




I get

[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile 
(default-compile) on project my-plugin: Compilation failure
[ERROR] java.nio.file.NoSuchFileException: 
/Users/daniels/Work/my-plugin/target/classes/META-INF/annotations/hudson.Extension

Should I just go to latest Jenkins and the 4.0 beta parent pom?

On Monday, February 24, 2020 at 5:58:39 PM UTC+2, Jesse Glick wrote:
>
> On Mon, Feb 24, 2020 at 10:29 AM Daniel Anechitoaie 
> > wrote: 
> >  
> > org.jenkins-ci.plugins 
> > plugin 
> > 3.6 
>
> This is very old. Try using the latest 3.x, and for the newer LTS line 
> you may need to use a 4.0 beta. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/89819385-f68d-485b-9c11-30acad69c7ca%40googlegroups.com.


Re: I'm working on a new plugin and when I try to run it I get the following error

2020-02-24 Thread Jesse Glick
On Mon, Feb 24, 2020 at 10:29 AM Daniel Anechitoaie
 wrote:
> 
> org.jenkins-ci.plugins
> plugin
> 3.6

This is very old. Try using the latest 3.x, and for the newer LTS line
you may need to use a 4.0 beta.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr0VF6ebag2%2BVJKAmaYXcGvsjg%3DmLRQ4yFEExXkCkhU5Rw%40mail.gmail.com.