-
-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build Numbers and Windows Product Versions #22
Comments
Ha, easy fix - don't work on Sunday. I just took a stab at tweaking the format to yy.ww.WWkkmm - testing now. |
I still see two issues (the first existed with the old format already):
I would only see the possibility to drop the minutes and postulate don't release twice a hour (... which in hectic error fixing periods might not be a good idea either) (ukk or as alternative DDDkk) |
Huh. Maybe tweak the timestamp hours/minutes portion and switch to using build numbers...? https://docs.github.com/en/actions/reference/environment-variables#default-environment-variables GITHUB_RUN_NUMBER looks like the best candidate. I believe it's possible to access in the pom.xml as ${env.GITHUB_RUN_NUMBER} Thoughts? |
<maven.build.timestamp.format>yy.ww</maven.build.timestamp.format> Kind of a strange timestamp w/only granularity of a week. Maybe this should go in a CI specific build profile activated by ${evn.CI} being set to true. https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/text/SimpleDateFormat.html |
So, FWIW there were some issues around timestamps being used for upgrade versions in the earlier version of this template. In certain circumstances a timestamp was going backwards instead of fowards. I just redid the way versions work to build on top of GitHub Action run ids instead of timestamps. I think this is closer to what everyone wants:
I think this means this open issue is fixed, LMK. |
Hi,
on Windows using <maven.build.timestamp.format>yy.w.ukkmm</maven.build.timestamp.format> can lead to a timestamp 21.29.71010, (2021, week 29, Sunday, 10:00 AM) which violates the specification in https://docs.microsoft.com/en-us/windows/win32/msi/productversion, that requires a product version of not greater than maximum value of 65,535.
... hence the build fails.
(general: fantastic work --> thanks so much!!)
Peter
The text was updated successfully, but these errors were encountered: