How to consume incrementals?

classic Classic list List threaded Threaded
14 messages Options
Reply | Threaded
Open this post in threaded view
|

How to consume incrementals?

Ulli Hafner
I’m currently enabling incrementals in my plugins. I was quite easy to produce them, e.g. the following PRs successfully deployed a incremental release:

Now I wanted to use the created versions in a downstream plugin:


I did run 

mvn -U incrementals:update -Dbranch=jenkinsci/release
or
mvn -U incrementals:update -Dbranch=release
or 
mvn -U incrementals:update

But nothing happens. I get a lot of info messages in the style of 
[INFO] artifact com.puppycrawl.tools:checkstyle: checking for updates from central
But no message that a new incremental has been found or not. 
Also the pom does not change.

Do I need to mark the dependencies in my pom somehow so that the incrementals plugin knows what to release? I think I am missing something simple and obvious here but I do not find anything in the documentation that points me into the right direction...

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/11D106CE-9AF1-45AB-83F1-AFF3744486E2%40gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: How to consume incrementals?

Gavin Mogan
I believe you have to use an incrementals once before it can be updated

The incrementals docs say:
> Once you have some dependencies on incremental versions in your POM, you can
<do the maven stuff>

I think you need to add io.jenkins.plugins:jquery3-api:3.4.1-1-beta2-rc52.da76aa84ddb7

On Sat, Nov 23, 2019 at 9:09 AM Ullrich Hafner <[hidden email]> wrote:
I’m currently enabling incrementals in my plugins. I was quite easy to produce them, e.g. the following PRs successfully deployed a incremental release:

Now I wanted to use the created versions in a downstream plugin:


I did run 

mvn -U incrementals:update -Dbranch=jenkinsci/release
or
mvn -U incrementals:update -Dbranch=release
or 
mvn -U incrementals:update

But nothing happens. I get a lot of info messages in the style of 
[INFO] artifact com.puppycrawl.tools:checkstyle: checking for updates from central
But no message that a new incremental has been found or not. 
Also the pom does not change.

Do I need to mark the dependencies in my pom somehow so that the incrementals plugin knows what to release? I think I am missing something simple and obvious here but I do not find anything in the documentation that points me into the right direction...

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/11D106CE-9AF1-45AB-83F1-AFF3744486E2%40gmail.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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAG%3D_Dut7zY8XLu3OGc%2BDiVnwjR%3DTjxpMX7MEw3LGbaOE8tZJBg%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: How to consume incrementals?

Ulli Hafner
Thanks, that was exactly the problem! Now it is working as expected.

Am 23.11.2019 um 18:22 schrieb 'Gavin Mogan' via Jenkins Developers <[hidden email]>:

I believe you have to use an incrementals once before it can be updated

The incrementals docs say:
> Once you have some dependencies on incremental versions in your POM, you can
<do the maven stuff>

I think you need to add io.jenkins.plugins:jquery3-api:3.4.1-1-beta2-rc52.da76aa84ddb7

On Sat, Nov 23, 2019 at 9:09 AM Ullrich Hafner <[hidden email]> wrote:
I’m currently enabling incrementals in my plugins. I was quite easy to produce them, e.g. the following PRs successfully deployed a incremental release:

Now I wanted to use the created versions in a downstream plugin:


I did run 

mvn -U incrementals:update -Dbranch=jenkinsci/release
or
mvn -U incrementals:update -Dbranch=release
or 
mvn -U incrementals:update

But nothing happens. I get a lot of info messages in the style of 
[INFO] artifact com.puppycrawl.tools:checkstyle: checking for updates from central
But no message that a new incremental has been found or not. 
Also the pom does not change.

Do I need to mark the dependencies in my pom somehow so that the incrementals plugin knows what to release? I think I am missing something simple and obvious here but I do not find anything in the documentation that points me into the right direction...

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/11D106CE-9AF1-45AB-83F1-AFF3744486E2%40gmail.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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAG%3D_Dut7zY8XLu3OGc%2BDiVnwjR%3DTjxpMX7MEw3LGbaOE8tZJBg%40mail.gmail.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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/978A0506-3261-4EEE-8D9C-6239F946B8C1%40gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: How to consume incrementals?

Ulli Hafner
Well, it works perfectly on the console.

In order to get everything resolved in IntelliJ I needed to add to my pom:
<repositories>
<repository>
<id>repo.jenkins-ci.org</id>
<url>https://repo.jenkins-ci.org/public/</url>
</repository>
<repository>
<id>incrementals.jenkins-ci.org</id>
<url>https://repo.jenkins-ci.org/incrementals/</url>
</repository>
</repositories>
Otherwise IntelliJ will not find the dependencies…



Am 23.11.2019 um 20:28 schrieb Ullrich Hafner <[hidden email]>:

Thanks, that was exactly the problem! Now it is working as expected.

Am 23.11.2019 um 18:22 schrieb 'Gavin Mogan' via Jenkins Developers <[hidden email]>:

I believe you have to use an incrementals once before it can be updated

The incrementals docs say:
> Once you have some dependencies on incremental versions in your POM, you can
<do the maven stuff>

I think you need to add io.jenkins.plugins:jquery3-api:3.4.1-1-beta2-rc52.da76aa84ddb7

On Sat, Nov 23, 2019 at 9:09 AM Ullrich Hafner <[hidden email]> wrote:
I’m currently enabling incrementals in my plugins. I was quite easy to produce them, e.g. the following PRs successfully deployed a incremental release:

Now I wanted to use the created versions in a downstream plugin:


I did run 

mvn -U incrementals:update -Dbranch=jenkinsci/release
or
mvn -U incrementals:update -Dbranch=release
or 
mvn -U incrementals:update

But nothing happens. I get a lot of info messages in the style of 
[INFO] artifact com.puppycrawl.tools:checkstyle: checking for updates from central
But no message that a new incremental has been found or not. 
Also the pom does not change.

Do I need to mark the dependencies in my pom somehow so that the incrementals plugin knows what to release? I think I am missing something simple and obvious here but I do not find anything in the documentation that points me into the right direction...

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/11D106CE-9AF1-45AB-83F1-AFF3744486E2%40gmail.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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAG%3D_Dut7zY8XLu3OGc%2BDiVnwjR%3DTjxpMX7MEw3LGbaOE8tZJBg%40mail.gmail.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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/361197E2-BFB5-465E-B8A7-9197C3233455%40gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: How to consume incrementals?

James Nord-3
You should just need to enable the "consume-incrementals" profile, rather than adding extras to the pom


If you are not using a mirror in your settings.xml then yes, I have always had to bootstrap the repositories section for repo.jenkins-ci.org, to work from the command line (so supporsied that you needed to add this just now if it was already working)

On Monday, November 25, 2019 at 10:50:35 AM UTC, Ullrich Hafner wrote:
Well, it works perfectly on the console.

In order to get everything resolved in IntelliJ I needed to add to my pom:
<repositories>
<repository>
<id><a href="http://www.google.com/url?q=http%3A%2F%2Frepo.jenkins-ci.org&amp;sa=D&amp;sntz=1&amp;usg=AFQjCNH-lqjQdpr_N3OJq6LbHFX-8CE0vg" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frepo.jenkins-ci.org\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH-lqjQdpr_N3OJq6LbHFX-8CE0vg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frepo.jenkins-ci.org\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH-lqjQdpr_N3OJq6LbHFX-8CE0vg&#39;;return true;">repo.jenkins-ci.org</id>
<url><a href="https://repo.jenkins-ci.org/public/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Frepo.jenkins-ci.org%2Fpublic%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEyFkEvdnu60noESh3FveqksZw_xw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Frepo.jenkins-ci.org%2Fpublic%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEyFkEvdnu60noESh3FveqksZw_xw&#39;;return true;">https://repo.jenkins-ci.org/public/</url>
</repository>
<repository>
<id><a href="http://incrementals.jenkins-ci.org" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fincrementals.jenkins-ci.org\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFiDPKBBTlooKjDTmtGUaW1UrrFwQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fincrementals.jenkins-ci.org\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFiDPKBBTlooKjDTmtGUaW1UrrFwQ&#39;;return true;">incrementals.jenkins-ci.org</id>
<url><a href="https://repo.jenkins-ci.org/incrementals/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Frepo.jenkins-ci.org%2Fincrementals%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGqqQ5HF8foBd-n7RKE1w63a5tVyg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Frepo.jenkins-ci.org%2Fincrementals%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGqqQ5HF8foBd-n7RKE1w63a5tVyg&#39;;return true;">https://repo.jenkins-ci.org/incrementals/</url>
</repository>
</repositories>
Otherwise IntelliJ will not find the dependencies…



Am 23.11.2019 um 20:28 schrieb Ullrich Hafner <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="WSWHXzKnBQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">ullric...@...>:

Thanks, that was exactly the problem! Now it is working as expected.

Am 23.11.2019 um 18:22 schrieb 'Gavin Mogan' via Jenkins Developers <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="WSWHXzKnBQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkin...@googlegroups.com>:

I believe you have to use an incrementals once before it can be updated

The incrementals docs say:
> Once you have some dependencies on incremental versions in your POM, you can
<do the maven stuff>

So based on <a href="https://repo.jenkins-ci.org/incrementals/io/jenkins/plugins/jquery3-api/3.4.1-1-beta2-rc52.da76aa84ddb7/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Frepo.jenkins-ci.org%2Fincrementals%2Fio%2Fjenkins%2Fplugins%2Fjquery3-api%2F3.4.1-1-beta2-rc52.da76aa84ddb7%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEbULqVbI2KRVwOHJxDYCi34h8qng&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Frepo.jenkins-ci.org%2Fincrementals%2Fio%2Fjenkins%2Fplugins%2Fjquery3-api%2F3.4.1-1-beta2-rc52.da76aa84ddb7%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEbULqVbI2KRVwOHJxDYCi34h8qng&#39;;return true;">https://repo.jenkins-ci.org/incrementals/io/jenkins/plugins/jquery3-api/3.4.1-1-beta2-rc52.da76aa84ddb7/
I think you need to add io.jenkins.plugins:jquery3-api:3.4.1-1-beta2-rc52.da76aa84ddb7

On Sat, Nov 23, 2019 at 9:09 AM Ullrich Hafner <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="WSWHXzKnBQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">ullric...@...> wrote:
I’m currently enabling incrementals in my plugins. I was quite easy to produce them, e.g. the following PRs successfully deployed a incremental release:

<a href="https://github.com/jenkinsci/jquery3-api-plugin/pull/12" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fjquery3-api-plugin%2Fpull%2F12\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF7PhJU9zIDugMyTlyIj8nQQkticQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fjquery3-api-plugin%2Fpull%2F12\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF7PhJU9zIDugMyTlyIj8nQQkticQ&#39;;return true;">https://github.com/jenkinsci/jquery3-api-plugin/pull/12 (in branch release)
<a href="https://github.com/jenkinsci/popper-api-plugin/pull/12" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fpopper-api-plugin%2Fpull%2F12\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFLq6qTQV0kJq1Yd7Ud0xsKQlhaDA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fpopper-api-plugin%2Fpull%2F12\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFLq6qTQV0kJq1Yd7Ud0xsKQlhaDA&#39;;return true;">https://github.com/jenkinsci/popper-api-plugin/pull/12 (in branch release)

Now I wanted to use the created versions in a downstream plugin:

<a href="https://github.com/jenkinsci/bootstrap4-api-plugin" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fbootstrap4-api-plugin\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGIG1mWz6dwLmOA2SvwgA9B39m1Cw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fbootstrap4-api-plugin\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGIG1mWz6dwLmOA2SvwgA9B39m1Cw&#39;;return true;">https://github.com/jenkinsci/bootstrap4-api-plugin

I did run 

mvn -U incrementals:update -Dbranch=jenkinsci/release
or
mvn -U incrementals:update -Dbranch=release
or 
mvn -U incrementals:update

But nothing happens. I get a lot of info messages in the style of 
[INFO] artifact com.puppycrawl.tools:checkstyle: checking for updates from central
But no message that a new incremental has been found or not. 
Also the pom does not change.

Do I need to mark the dependencies in my pom somehow so that the incrementals plugin knows what to release? I think I am missing something simple and obvious here but I do not find anything in the documentation that points me into the right direction...

--
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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="WSWHXzKnBQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkin...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-dev/11D106CE-9AF1-45AB-83F1-AFF3744486E2%40gmail.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/11D106CE-9AF1-45AB-83F1-AFF3744486E2%40gmail.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/11D106CE-9AF1-45AB-83F1-AFF3744486E2%40gmail.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/11D106CE-9AF1-45AB-83F1-AFF3744486E2%40gmail.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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="WSWHXzKnBQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkin...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-dev/CAG%3D_Dut7zY8XLu3OGc%2BDiVnwjR%3DTjxpMX7MEw3LGbaOE8tZJBg%40mail.gmail.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/CAG%3D_Dut7zY8XLu3OGc%2BDiVnwjR%3DTjxpMX7MEw3LGbaOE8tZJBg%40mail.gmail.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/CAG%3D_Dut7zY8XLu3OGc%2BDiVnwjR%3DTjxpMX7MEw3LGbaOE8tZJBg%40mail.gmail.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/CAG%3D_Dut7zY8XLu3OGc%2BDiVnwjR%3DTjxpMX7MEw3LGbaOE8tZJBg%40mail.gmail.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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/73d6c8dd-8829-417d-84f3-99e46007a1ef%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: How to consume incrementals?

Ulli Hafner
I see. It would be helpful if the 

mvn incrementals:incrementalify 

would do this automatically as well.


Am 25.11.2019 um 12:20 schrieb James Nord <[hidden email]>:

You should just need to enable the "consume-incrementals" profile, rather than adding extras to the pom


If you are not using a mirror in your settings.xml then yes, I have always had to bootstrap the repositories section for repo.jenkins-ci.org, to work from the command line (so supporsied that you needed to add this just now if it was already working)

On Monday, November 25, 2019 at 10:50:35 AM UTC, Ullrich Hafner wrote:
Well, it works perfectly on the console.

In order to get everything resolved in IntelliJ I needed to add to my pom:
<repositories>
<repository>
<id>repo.jenkins-ci.org</id>
<url>https://repo.jenkins-ci.org/public/</url>
</repository>
<repository>
<id>incrementals.jenkins-ci.org</id>
<url>https://repo.jenkins-ci.org/incrementals/</url>
</repository>
</repositories>
Otherwise IntelliJ will not find the dependencies…



Am 23.11.2019 um 20:28 schrieb Ullrich Hafner <[hidden email]>:

Thanks, that was exactly the problem! Now it is working as expected.

Am 23.11.2019 um 18:22 schrieb 'Gavin Mogan' via Jenkins Developers <jenkin...@googlegroups.com>:

I believe you have to use an incrementals once before it can be updated

The incrementals docs say:
> Once you have some dependencies on incremental versions in your POM, you can
<do the maven stuff>

I think you need to add io.jenkins.plugins:jquery3-api:3.4.1-1-beta2-rc52.da76aa84ddb7

On Sat, Nov 23, 2019 at 9:09 AM Ullrich Hafner <[hidden email]> wrote:
I’m currently enabling incrementals in my plugins. I was quite easy to produce them, e.g. the following PRs successfully deployed a incremental release:

Now I wanted to use the created versions in a downstream plugin:


I did run 

mvn -U incrementals:update -Dbranch=jenkinsci/release
or
mvn -U incrementals:update -Dbranch=release
or 
mvn -U incrementals:update

But nothing happens. I get a lot of info messages in the style of 
[INFO] artifact com.puppycrawl.tools:checkstyle: checking for updates from central
But no message that a new incremental has been found or not. 
Also the pom does not change.

Do I need to mark the dependencies in my pom somehow so that the incrementals plugin knows what to release? I think I am missing something simple and obvious here but I do not find anything in the documentation that points me into the right direction...

--
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 jenkin...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/11D106CE-9AF1-45AB-83F1-AFF3744486E2%40gmail.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 jenkin...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAG%3D_Dut7zY8XLu3OGc%2BDiVnwjR%3DTjxpMX7MEw3LGbaOE8tZJBg%40mail.gmail.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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/73d6c8dd-8829-417d-84f3-99e46007a1ef%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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/1347F49A-E043-4B06-8B77-79FEE82A9B43%40gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: How to consume incrementals?

Jesse Glick-4
On Mon, Nov 25, 2019 at 1:59 PM Ullrich Hafner <[hidden email]> wrote:
> I see. It would be helpful if the
>
> mvn incrementals:incrementalify
>
> would do this automatically as well.

It does:

https://github.com/jenkinsci/incrementals-tools/blob/f6fb2fd644fa0aa7be5c5173506d9368b542dd2d/maven-plugin/src/main/java/io/jenkins/tools/incrementals/maven/IncrementalifyMojo.java#L99

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr1zLF1s5J4HmQsp52Qv3P6-cqNcmjV7OLNRrmLD_O8i%2Bw%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: How to consume incrementals?

Ulli Hafner
Ok, then IntelliJ simply does not read ‚maven.config‘.

(I found a way to activate the profiles manually in the IntelliJ UI though…)
 

> Am 25.11.2019 um 21:38 schrieb Jesse Glick <[hidden email]>:
>
> On Mon, Nov 25, 2019 at 1:59 PM Ullrich Hafner <[hidden email]> wrote:
>> I see. It would be helpful if the
>>
>> mvn incrementals:incrementalify
>>
>> would do this automatically as well.
>
> It does:
>
> https://github.com/jenkinsci/incrementals-tools/blob/f6fb2fd644fa0aa7be5c5173506d9368b542dd2d/maven-plugin/src/main/java/io/jenkins/tools/incrementals/maven/IncrementalifyMojo.java#L99
>
> --
> 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 [hidden email].
> To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr1zLF1s5J4HmQsp52Qv3P6-cqNcmjV7OLNRrmLD_O8i%2Bw%40mail.gmail.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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/C3FBE360-9437-4E74-8675-DFAAAF6E3B70%40gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: How to consume incrementals?

James Nord-3
> Ok, then IntelliJ simply does not read ‚maven.config‘. 

That's a shame.  I was planning on using that to activate the jenkins-bom profile but I have also found issues in large agregator projects where some modules want it enabled and some do not.

I'm wondering if we should generically switch to using file based activation rather than property :-/


On Monday, November 25, 2019 at 9:20:04 PM UTC, Ullrich Hafner wrote:
Ok, then IntelliJ simply does not read ‚maven.config‘.

(I found a way to activate the profiles manually in the IntelliJ UI though…)
 

> Am 25.11.2019 um 21:38 schrieb Jesse Glick <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="g8ERSYzJBQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jgl...@...>:
>
> On Mon, Nov 25, 2019 at 1:59 PM Ullrich Hafner <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="g8ERSYzJBQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">ullric...@...> wrote:
>> I see. It would be helpful if the
>>
>> mvn incrementals:incrementalify
>>
>> would do this automatically as well.
>
> It does:
>
> <a href="https://github.com/jenkinsci/incrementals-tools/blob/f6fb2fd644fa0aa7be5c5173506d9368b542dd2d/maven-plugin/src/main/java/io/jenkins/tools/incrementals/maven/IncrementalifyMojo.java#L99" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fincrementals-tools%2Fblob%2Ff6fb2fd644fa0aa7be5c5173506d9368b542dd2d%2Fmaven-plugin%2Fsrc%2Fmain%2Fjava%2Fio%2Fjenkins%2Ftools%2Fincrementals%2Fmaven%2FIncrementalifyMojo.java%23L99\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHV4HbLco0PknckdGKchrWKKGbbxw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fincrementals-tools%2Fblob%2Ff6fb2fd644fa0aa7be5c5173506d9368b542dd2d%2Fmaven-plugin%2Fsrc%2Fmain%2Fjava%2Fio%2Fjenkins%2Ftools%2Fincrementals%2Fmaven%2FIncrementalifyMojo.java%23L99\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHV4HbLco0PknckdGKchrWKKGbbxw&#39;;return true;">https://github.com/jenkinsci/incrementals-tools/blob/f6fb2fd644fa0aa7be5c5173506d9368b542dd2d/maven-plugin/src/main/java/io/jenkins/tools/incrementals/maven/IncrementalifyMojo.java#L99
>
> --
> 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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="g8ERSYzJBQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkin...@googlegroups.com.
> To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr1zLF1s5J4HmQsp52Qv3P6-cqNcmjV7OLNRrmLD_O8i%2Bw%40mail.gmail.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr1zLF1s5J4HmQsp52Qv3P6-cqNcmjV7OLNRrmLD_O8i%2Bw%40mail.gmail.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr1zLF1s5J4HmQsp52Qv3P6-cqNcmjV7OLNRrmLD_O8i%2Bw%40mail.gmail.com&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr1zLF1s5J4HmQsp52Qv3P6-cqNcmjV7OLNRrmLD_O8i%2Bw%40mail.gmail.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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/71f0fd14-37c6-4dbd-abc0-9786be16f76a%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: How to consume incrementals?

Jesse Glick-4
On Mon, Nov 25, 2019 at 8:45 PM James Nord <[hidden email]> wrote:
>> IntelliJ simply does not read maven.config
>
> That's a shame.

Uh, is it not open source (at least the core part)? I fixed this bug
for NetBeans. Granted, I had a head start in that case.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr3GG7-qMhZb0c68t3H6zasahu6zdPhaCCm%2Bq%2B-j9Tb%3D0Q%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: How to consume incrementals?

Joseph P
https://github.com/JetBrains/intellij-community/blob/fecfdd52f426cf1b2770edee7dc9d9ecab692441/plugins/maven/maven3-server-common/src/org/jetbrains/idea/maven/server/Maven3ServerEmbedder.java#L80

So close but no cigar 😅

On Tuesday, November 26, 2019 at 4:26:32 PM UTC+1, Jesse Glick wrote:
On Mon, Nov 25, 2019 at 8:45 PM James Nord <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="jonH1dUEBgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jn...@...> wrote:
>> IntelliJ simply does not read maven.config
>
> That's a shame.

Uh, is it not open source (at least the core part)? I fixed this bug
for NetBeans. Granted, I had a head start in that case.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/66ee9eef-f892-4adf-859d-c2ef2c0ed576%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: How to consume incrementals?

Matt Sicker
If you change your IntelliJ config to delegate to Maven rather than
using its own build code, most of these Maven-specific extensions work
fine (I've had to do that with Maven projects that rely heavily on
Maven toolchain support for example).

On Thu, Nov 28, 2019 at 5:04 PM Joseph P <[hidden email]> wrote:

>
> https://github.com/JetBrains/intellij-community/blob/fecfdd52f426cf1b2770edee7dc9d9ecab692441/plugins/maven/maven3-server-common/src/org/jetbrains/idea/maven/server/Maven3ServerEmbedder.java#L80
>
> So close but no cigar
>
> On Tuesday, November 26, 2019 at 4:26:32 PM UTC+1, Jesse Glick wrote:
>>
>> On Mon, Nov 25, 2019 at 8:45 PM James Nord <[hidden email]> wrote:
>> >> IntelliJ simply does not read maven.config
>> >
>> > That's a shame.
>>
>> Uh, is it not open source (at least the core part)? I fixed this bug
>> for NetBeans. Granted, I had a head start in that case.
>
> --
> 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 [hidden email].
> To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/66ee9eef-f892-4adf-859d-c2ef2c0ed576%40googlegroups.com.



--
Matt Sicker
Senior Software Engineer, CloudBees

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAEot4owULgWyDkdS9U_N%3DYT0M93AxQK%2BH__Q-DmurQbOoPd-2Q%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: How to consume incrementals?

Jesse Glick-4
On Mon, Dec 2, 2019 at 12:17 PM Matt Sicker <[hidden email]> wrote:
> change your IntelliJ config to delegate to Maven rather than
> using its own build code

Probably not sufficient. The issue is that the IDE needs to understand
the Maven classpath for use from its editor. In the case of NetBeans,
which always runs Maven builds using a forked `mvn`, builds were never
an issue, but the IDE’s internal model had to be patched to grok
`-Pconsume-incrementals` in `.mvn/maven.config`. Otherwise it did not
know about the alternate repository location, and failed to locate
some transitive dependencies.

Possibly we could switch to activating this profile (and
`might-produce-incrementals`, though that is likely irrelevant to an
IDE) using a property set in `pom.xml` rather than relying on
`maven.config`. I cannot recall whether I tried that option during
JEP-305 research. It would be compatible, I think, and might be
supported better by IDEs.

(We also have some file-activated profiles using e.g.
`.mvn_exec_node`. I do not think that has any benefit over using a
property in this case; there is different inheritance behavior when
you have an intermediate parent POM derived from `plugin-pom`.)

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr0WshpeQuf3QP3NBS0gf%3DX%3Drp5TdKhv0JnAEGSQxq%2BMcQ%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: How to consume incrementals?

Jesse Glick-4
On Tue, Dec 3, 2019 at 10:09 AM Jesse Glick <[hidden email]> wrote:
> Possibly we could switch to activating this profile […]
> using a property set in `pom.xml` rather than relying on
> `maven.config`. I cannot recall whether I tried that option during
> JEP-305 research.

Unfortunately this does not work: https://stackoverflow.com/a/1505674/12916

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr1SoXVbALg5bt9oZMU1Ba6TDRcgy6Q4ps5gyvShZUhiuQ%40mail.gmail.com.