The problem is with the id("org.graalvm.plugin.compiler") plugin, looks like they are fetching the version in the configuration phase. Not sure if they have an issue recommending to avoid that as I haven't used graalvm.
The fix is using semver.project.tagPrefix=v in the fireplace-app/gradle.properties or in the root one as you are going to use v in all projects, so if in the future another module has this problem you will be safe.
OK, note in my project the app is not published so at this time I don't quite care about versioning, but just wanted to report the discrepancy. I'm not sure why only this module was affected.
Regardless I changed the logic to avoid applying the plugin via allprojects.
On a side note I understand I should upgrade to convention plugins, but I'm not there yet. Currently I'm using the approach that was taken by spring-framework guys.
Can you try to put the plugin directly in the plugins block in the fireplace-app project?
Adding the plugin and semver block in fireplace-app didn't change anything (the parent pom still uses allprojects)
You can try to add again that property to fix ordering issues with other plugins and so on:
The problem is with the id("org.graalvm.plugin.compiler") plugin, looks like they are fetching the version in the configuration phase.
Ah interesting ! I remember indeed the version failures when I was trying a dev stage while the last version is an RC. And the failure happened during configuration phase of the graalvm plugin 🤔. Thanks for the insight.
Eventually I can remove this plugin, as the goal was to replace provide the JVM C2 compiler by graal. And while before I was configuring manually the dependencies and the command line, this plugin did everything automatically, that said if the plugin is an issue...
I have tried to find the Graal repo to report that issue with org.graalvm.plugin.compiler but looks like they are not updating that plugin since 2020. Maybe they are using a different plugin?
Noticed something strange in a multi-module project. One of the submodule, doesn't read the version correctly. And it's always
fireplace-app
So basically the code is like that
build.gradle.kts
gradle.properties
I haven't any test with
allprojects
as it is not recommended and it doesn't work with project isolation nowadays.Additionally,
apply
function to apply plugins is not recommended too.Gradle recommends convention plugins for this kind of things.
Can you try to put the plugin directly in the plugins block in the fireplace-app project?
I will try to reproduce it to investigate it later.
You can try to add again that property to fix ordering issues with other plugins and so on:
The problem is with the
id("org.graalvm.plugin.compiler")
plugin, looks like they are fetching the version in the configuration phase. Not sure if they have an issue recommending to avoid that as I haven't usedgraalvm
.The fix is using
semver.project.tagPrefix=v
in thefireplace-app/gradle.properties
or in the root one as you are going to usev
in all projects, so if in the future another module has this problem you will be safe.OK, note in my project the app is not published so at this time I don't quite care about versioning, but just wanted to report the discrepancy. I'm not sure why only this module was affected.
Regardless I changed the logic to avoid applying the plugin via
allprojects
.On a side note I understand I should upgrade to convention plugins, but I'm not there yet. Currently I'm using the approach that was taken by spring-framework guys.
Adding the plugin and
semver
block in fireplace-app didn't change anything (the parent pom still usesallprojects
)That seem to fix the issue.
Ah interesting ! I remember indeed the version failures when I was trying a dev stage while the last version is an RC. And the failure happened during configuration phase of the graalvm plugin 🤔. Thanks for the insight.
Eventually I can remove this plugin, as the goal was to replace provide the JVM C2 compiler by graal. And while before I was configuring manually the dependencies and the command line, this plugin did everything automatically, that said if the plugin is an issue...
I have tried to find the Graal repo to report that issue with
org.graalvm.plugin.compiler
but looks like they are not updating that plugin since 2020. Maybe they are using a different plugin?Not sure they are still working on this.