Skip to content

Conversation

@alexander-yevsyukov
Copy link
Contributor

@alexander-yevsyukov alexander-yevsyukov commented Dec 24, 2025

This PR continues migration to io.spine.validation package. This included also dependency substitution of of old Validation runtime with the new one.

CoreJvm Compiler for rejections now uses types from io.spine.validation.

Other notable changes

  • Local dependencies and Protobuf were bumped to latest versions.
  • The code related to settings for validation was removed because configuring validation is a part of Validation Gradle Plugin.
  • Build files under tests were updated to remove the validation settings coming under coreJvm, as they are no longer relevant.
  • tests/gradlew and tests/gradlew.bat were replaced with the symlink files that lead to corresponding scripts in the parent directory.

Copilot AI review requested due to automatic review settings December 24, 2025 17:59
@alexander-yevsyukov alexander-yevsyukov self-assigned this Dec 24, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR migrates the codebase to use a new validation package by updating import statements and removing deprecated validation configuration settings. The changes support the transition from the old io.spine.validate package to the new io.spine.validation package structure.

Key changes:

  • Updated validation package imports across Java and Kotlin source files
  • Removed deprecated validation configuration settings from build files and DSL
  • Bumped dependency versions for related Spine framework components

Reviewed changes

Copilot reviewed 32 out of 32 changed files in this pull request and generated no comments.

Show a summary per file
File Description
version.gradle.kts Updates core JVM compiler version to align with new validation package
tests/rejection/src/test/java/.../RejectionPluginTest.java Migrates import from old validation package to new one
signal/src/main/kotlin/.../RThrowableBuilderCode.kt Updates validation imports and documentation references
routing/src/test/kotlin/.../RouteCompilationTest.kt Switches to new validation package import
gradle-plugins/src/test/kotlin/.../CoreJvmOptionsSpec.kt Removes obsolete validation version test
base/src/main/proto/spine/tools/core/jvm/settings.proto Removes deprecated validation settings from protobuf schema
base/src/main/kotlin/.../ValidationSettings.kt Deletes entire deprecated validation settings class
base/src/main/kotlin/.../CoreJvmCompilerSettings.kt Removes validation configuration from compiler settings
buildSrc files Updates dependency versions and adds validation module substitution rules
tests/*/build.gradle.kts Removes temporary validation disabling configuration blocks
tests/gradlew Adds environment variable to disable Protobuf version check
routing-tests/build.gradle.kts Adds dependency substitution for old validation bundle module
pom.xml Updates dependency versions across multiple Spine components
dependencies.md Regenerated dependency report with updated versions
config Updates subproject commit reference

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-Authored-By: Warp <agent@warp.dev>
@alexander-yevsyukov alexander-yevsyukov marked this pull request as ready for review December 25, 2025 16:53
Copilot AI review requested due to automatic review settings December 25, 2025 16:53
@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@alexander-yevsyukov alexander-yevsyukov changed the title Use new validation package Use new Validation package Dec 25, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 33 out of 35 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 66 to +68
import io.spine.tools.java.code.methodSpec
import io.spine.validate.Validate
import io.spine.validate.Validated
import io.spine.tools.java.javadoc.JavadocText
import io.spine.validation.Validated
Copy link

Copilot AI Dec 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The removed import io.spine.validate.Validate may still be needed if the generated code references Validate.check. Verify that all references to validation functionality use the correct fully-qualified names from the new package.

Copilot uses AI. Check for mistakes.
@alexander-yevsyukov alexander-yevsyukov merged commit 91c2547 into master Dec 25, 2025
11 of 13 checks passed
@alexander-yevsyukov alexander-yevsyukov deleted the use-new-validation-package branch December 25, 2025 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants