Conversation
…to a Gradle build"
Also: * Add note about the `module` script plugin.
There was a problem hiding this comment.
Pull request overview
Updates the project to newer Spine toolchain versions and migrates documentation examples to a dedicated _examples submodule, with a small refactor in the Gradle plugin setup.
Changes:
- Bumped Validation/toolchain versions across Gradle, Maven, and buildSrc dependency constants.
- Refactored
ValidationGradlePluginto extract Validation configuration into a helper. - Migrated docs example sources from
docs/_codeto a git submodule atdocs/_examplesand updated embed-code tooling/docs accordingly.
Reviewed changes
Copilot reviewed 31 out of 31 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| version.gradle.kts | Bumps the project’s Validation version used by Gradle builds. |
| pom.xml | Updates Maven artifact and related dependency versions. |
| gradle-plugin/src/main/kotlin/io/spine/tools/validation/gradle/ValidationGradlePlugin.kt | Refactors plugin application/configuration flow. |
| docs/content/docs/validation/01-getting-started/first-model.md | Updates getting-started content to reference shared build instructions and refreshed test snippets. |
| docs/content/docs/validation/01-getting-started/adding-to-build.md | Expands build setup docs and updates plugin versions/snippets. |
| docs/content/docs/validation/01-getting-started/_index.md | Adjusts navigation/capitalization in the getting-started index. |
| docs/build.gradle.kts | Points doc automation at _examples and consolidates example build task(s). |
| docs/_settings/embed-code.yml | Switches embed-code source root from _code to _examples. |
| docs/_script/embed-code | Updates script comment to reflect _examples submodule usage. |
| docs/_examples | Adds the examples git submodule pointer. |
| docs/_code/first-model/src/test/kotlin/io/spine/validation/docs/firstmodel/BankCardKtTest.kt | Removed (migrated to _examples submodule). |
| docs/_code/first-model/src/test/java/io/spine/validation/docs/firstmodel/BankCardTest.java | Removed (migrated to _examples submodule). |
| docs/_code/first-model/src/main/proto/spine/validation/docs/first_model/bank_card.proto | Removed (migrated to _examples submodule). |
| docs/_code/first-model/settings.gradle.kts | Removed (migrated to _examples submodule). |
| docs/_code/first-model/gradlew.bat | Removed (migrated to _examples submodule). |
| docs/_code/first-model/gradlew | Removed (migrated to _examples submodule). |
| docs/_code/first-model/gradle.properties | Removed (migrated to _examples submodule). |
| docs/_code/first-model/build.gradle.kts | Removed (migrated to _examples submodule). |
| docs/_code/first-model-with-framework/src | Removed (migrated to _examples submodule). |
| docs/_code/first-model-with-framework/settings.gradle.kts | Removed (migrated to _examples submodule). |
| docs/_code/first-model-with-framework/gradlew.bat | Removed (migrated to _examples submodule). |
| docs/_code/first-model-with-framework/gradlew | Removed (migrated to _examples submodule). |
| docs/_code/first-model-with-framework/gradle.properties | Removed (migrated to _examples submodule). |
| docs/_code/first-model-with-framework/build.gradle.kts | Removed (migrated to _examples submodule). |
| docs/_code/code-common.gradle.kts | Removed (migrated to _examples submodule). |
| dependencies.md | Regenerates the dependency/license report for the new version set. |
| buildSrc/src/main/kotlin/io/spine/dependency/local/Validation.kt | Updates referenced Validation runtime/library version. |
| buildSrc/src/main/kotlin/io/spine/dependency/local/ToolBase.kt | Updates ToolBase version constants. |
| buildSrc/src/main/kotlin/io/spine/dependency/local/CoreJvmCompiler.kt | Updates CoreJvmCompiler version constants. |
| buildSrc/src/main/kotlin/io/spine/dependency/local/Compiler.kt | Updates Compiler fallback version constants. |
| .gitmodules | Adds the docs/_examples submodule configuration. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
gradle-plugin/src/main/kotlin/io/spine/tools/validation/gradle/ValidationGradlePlugin.kt
Show resolved
Hide resolved
docs/content/docs/validation/01-getting-started/adding-to-build.md
Outdated
Show resolved
Hide resolved
docs/content/docs/validation/01-getting-started/adding-to-build.md
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7fe07f06c4
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 31 out of 31 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This PR updates dependencies on ToolBase and Compiler so that Validation Gradle plugin can add Spine-specific directories via the latest version of
RootPlugin.Documentation changes
docsproject migrated tohello-validationrepository added as a submodule underdocs/_examplesdirectory._scriptand_settingsdirectories were updated accordingly.adding-to-build.mdwas extended with wording on adding custom plugin repositories.adding-to-build.mdnow has the note on themodulescript plugin and the link tohello-validationrepository.