Add git commit info to version output (-v/-V switches)#300
Merged
Conversation
3eda248 to
9a51919
Compare
- Unify version to 5.42.0 (replaces separate jarVersion/perlVersion) - Add gitCommitId and gitCommitDate fields to Configuration.java - Inject git info at build time (Gradle and Maven) - Update -v output format to match Perl: "This is perl 5, version 42, subversion 0 (v5.42.0) built for JVM (abc123 2024-03-10)" - Update -V output to show PerlOnJava section with version and git info - Update Configure.pl: - Safer regex pattern for value matching - Version safety check (minor >= 40 to protect 5.10, 5.38, etc.) - Exclude dirs: src/main/perl/, dev/ - Exclude files: docs/about/changelog.md - Targeted Config.pm updates (paths, compatibility checks only) - Dynamically use version in help message Generated with [Devin](https://cli.devin.ai/docs) Co-Authored-By: Devin <noreply@cognition.ai>
9a51919 to
7997a71
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Files Changed
Configure.pl- Version management scriptbuild.gradle- Git info injection task + version updatepom.xml- Git info injection plugin + version updatejperl/jperl.bat- Launcher scripts version updateREADME.md- Feature support versionConfiguration.java- Unified version + git fieldsArgumentParser.java- New -v/-V output formatTest Plan
./gradlew clean shadowJarbuilds successfullyjava -jar target/perlonjava-5.42.0.jar -vshows git infojava -jar target/perlonjava-5.42.0.jar -Vshows version section./Configure.plshows current configuration./Configure.pl -D version=5.10.0fails (safety check)./Configure.pl -D version=5.43.0updates all files correctly./gradlew testpassesGenerated with Devin