Conversation
…atibility Adds a deprecated setSvcsAnnotationsFile(Object) setter to RequirementsToolExtension that delegates to svcsAnnotationsFiles.from() and emits a WARN-level deprecation message. This restores compatibility for builds using the 0.1.0 property name after upgrading to 0.1.1+. Closes #52 Signed-off-by: Jimisola Laursen <jimisola@jimisola.com>
- Auto-wire assembleRequirements to depend on compileJava (main) and all non-main compileXxxJava tasks via JavaPlugin introspection in afterEvaluate - Wire build.finalizedBy(assembleRequirements) so no manual lifecycle configuration is needed in consuming projects - Add setSvcsAnnotationsFiles(Object...) setter that marks files as explicit and disables auto-wired test source set compile dependencies - Emit WARN when annotation files are missing at execution time - Remove manual dependsOn/finalizedBy from fixture build.gradle - Add complete configuration reference table and task documentation to README Closes #54 Signed-off-by: Jimisola Laursen <jimisola@jimisola.com>
…les changes - Rewrite configuration.adoc with a reference table, dataset directory table, auto-wiring explanation, setSvcsAnnotationsFiles override docs, and deprecation notice for svcsAnnotationsFile (singular) - Update usage.adoc with correct task lifecycle (compile deps, not check), lifecycle diagram, and task reference - Update index.adoc to reflect auto-wiring feature and correct defaults Signed-off-by: Jimisola Laursen <jimisola@jimisola.com>
- Apply Spring java format to RequirementsToolExtension - Add missing @param tag to setSvcsAnnotationsFile javadoc - Add svcsAnnotationsFile (deprecated) row to README configuration table - Remove redundant Deprecation notice section from README Signed-off-by: Jimisola Laursen <jimisola@jimisola.com>
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
Fixes #52 and #54.
fix: restore deprecated
svcsAnnotationsFilesetter (closes #52)setSvcsAnnotationsFile(Object)setter toRequirementsToolExtensionthat delegates tosvcsAnnotationsFiles.from()and logs aWARN-level deprecation messagefeat: auto-wire task dependencies (closes #54)
assembleRequirementsnow automatically depends oncompileJavaand all non-maincompileXxxJavatasks (discovered viaJavaPlugininafterEvaluate)buildis finalized byassembleRequirements— no manual wiring needed in consuming projectssetSvcsAnnotationsFiles(Object...)setter that replaces auto-discovery with explicit files and disables auto-wired test source set compile dependenciesWARNwhen annotation files are missing at execution time (e.g. when compile was excluded)dependsOn/finalizedByboilerplate from the fixturebuild.gradledocs: complete configuration reference
reqstool-java-maven-pluginREADMETest plan
./gradlew testpasses (10 tests including newtestSetSvcsAnnotationsFilesMarksExplicitandtestDeprecatedSvcsAnnotationsFileSetter)svcsAnnotationsFile = ...syntax succeeds and prints the deprecation warningdatasetPathconfigured:./gradlew buildrunsassembleRequirementsautomatically