-
Notifications
You must be signed in to change notification settings - Fork 43
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
RAT-374: automatically update cli documentation #253
RAT-374: automatically update cli documentation #253
Conversation
|
||
- name: Generate javadoc | ||
run: ./mvnw -e -B -V -ntp javadoc:javadoc | ||
run: ./mvnw -e -B -V -ntp javadoc:javadoc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the past we had javadoc build failures that strangely did not break the site build and were only discovered in the release-preparation phase. Thus this build step is a "security net" to make sure that javadoc can be properly generated for the whole project!
Let us have a look at this after #252 is in main. |
I did not find any meaningful references in the site project to
|
@Claudenw should https://github.com/apache/creadur-rat/blob/master/apache-rat/README.txt#L13 be adapted as well or do we just remove the link here? |
Also ensured the /src/site/apt/cli_help.txt gets deleted during clean
9848c47
to
83700ce
Compare
@ottlinger after the merge of #252 this change becomes much smaller and clearer to read. Please review when you have a moment. I think that the Version.properties file is the correct way to go. As you can see it gets the version from the POM and just makes it available to the system. |
@Claudenw I still have a lot of pain with the double release just to have a version string. Would it make sense to define a property or write a value inside the app's manifest we set once we release, so that any SNAPSHOT is filtered out in the CLI? Otherwise we should rely on the property previousRatVersion that is defined in the main pom (this value is also used to generate the download page upon releasing) WDYT? I am still in doubt whether this is worth the effort to just have a version string in the CLI output .... |
Phil,
Where is the release process documented? I would like to understand where
th issue is. I could not find a clean way to read the manifest without
knowing the version number for the jar.
…On Mon, May 20, 2024 at 8:56 PM P. Ottlinger ***@***.***> wrote:
@Claudenw <https://github.com/Claudenw> I still have a lot of pain with
the double release just to have a version string. Would it make sense to
define a property or write a value inside the app's manifest we set once we
release, so that any SNAPSHOT is filtered out in the CLI?
I just checked that we write certain manifest attributes - we could add a
special attribute when releasing and this filters out any SNAPSHOT while
reading the property.
Otherwise we should rely on the property previousRatVersion that is
defined in the main pom (this value is also used to generate the download
page upon releasing)
WDYT? I am still in doubt whether this is worth the effort to just have a
version string in the CLI output ....
—
Reply to this email directly, view it on GitHub
<#253 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AASTVHXIDV42TR5QFHDV7OTZDJBOFAVCNFSM6AAAAABH5J6GOCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRRGAZDCNRQGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
LinkedIn: http://www.linkedin.com/in/claudewarren
|
@Claudenw
As the release has to be voted on, we cannot change the artifact after the release :) |
Do you change the version number of the item being released after the vote?
I think we are talking past eachother here. If the item is built with
version number 0.16.1 then there is no issue. If the item is built with
version number 0.16.1-RC1 and then the jar is renamed there is a problem.
…On Mon 20 May 2024, 22:40 P. Ottlinger, ***@***.***> wrote:
@Claudenw <https://github.com/Claudenw>
We follow the apache way:
- Generate the release candidate via maven-release-plugin (after many
manual tweaks to the changelog/dokcumentation/webpage)
- Upload the artifacts to ASF nexus
- Vote on the artifact
- Publicly announce the release after making it available via Maven
central and ASF download mirrors
As the release has to be voted on, we cannot change the artifact after the
release :)
—
Reply to this email directly, view it on GitHub
<#253 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AASTVHQ5TRG6FE6EGAVZOODZDJNUHAVCNFSM6AAAAABH5J6GOCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRRGE3TCNBYGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
After digging around a bit I found a solution that reads the MANIFEST if it is present by using the Interestingly, VersionInfo can now be passed any class and will report the information for that class. So our UIs can log what version of the UI is running and what version of the core if we desire. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sry for the noise - as we rebuild the JAR via maven-release-plugin the correct version is injected/generated. The site build has to happen from the release branch in order for the site to contain the correct information.
Pls add a changelog entry and possibly edit the other CLI-txt file.
@ottlinger The correct version is injected by changing the POM during the build process correct? So the version would be correct during the build and the previous solution would have worked. However, this solution is much cleaner. |
Fixes RAT-374
Fixes RAT-381 -- Inject maven verson info into java code.
Changes to update documentation:
exec-maven
action in apache-rat to generate a filetarget/site/CLI_help.txt
that contains the generated help textindex.apt.vm
to include the CLI_help.txt during build process.