Skip to content

Conversation

@alexander-yevsyukov
Copy link
Contributor

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

This PR restores the Policy class which is derived from Reaction and deprecated in favour of Reaction. This is needed to provide backward compatibility during the migration process.

Other notable changes

  • Fixed the build to enable documentation publishing.

Copilot AI review requested due to automatic review settings December 4, 2025 17:15
@alexander-yevsyukov alexander-yevsyukov self-assigned this Dec 4, 2025
@alexander-yevsyukov alexander-yevsyukov marked this pull request as ready for review December 4, 2025 17:16
@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.

Copy link
Contributor

@armiol armiol left a comment

Choose a reason for hiding this comment

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

@alexander-yevsyukov see my comment.

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 restores backward compatibility during the migration from Policy to Reaction by reintroducing the Policy class as a deprecated wrapper. The changes include a version bump to 2.0.0-SNAPSHOT.033, documentation improvements in the Reaction class, and build script refactoring.

  • Adds deprecated Policy class that extends Reaction with proper deprecation annotation and replacement guidance
  • Improves documentation clarity in Reaction class by making wording more concise and direct
  • Refactors build configuration to consolidate GitHub Pages publishing setup

Reviewed changes

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

Show a summary per file
File Description
version.gradle.kts Version bump from 2.0.0-SNAPSHOT.032 to 2.0.0-SNAPSHOT.033
pom.xml Version bump to match gradle version
dependencies.md Auto-generated dependency report with updated version references and timestamp
buildSrc/src/main/kotlin/module.gradle.kts Removes unused CoreJava import, adds setupDocPublishing function for GitHub Pages configuration
api/src/main/kotlin/io/spine/tools/compiler/plugin/Reaction.kt Minor documentation improvements for clarity and conciseness
api/src/main/kotlin/io/spine/tools/compiler/plugin/Policy.kt New file - restores Policy class as deprecated wrapper of Reaction for backward compatibility
api-tests/build.gradle.kts Removes module plugin as it's unnecessary for test-only module

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

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 7 out of 7 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.

@alexander-yevsyukov alexander-yevsyukov merged commit b0e83f6 into master Dec 4, 2025
12 checks passed
@alexander-yevsyukov alexander-yevsyukov deleted the policy-as-deprecated-alias branch December 4, 2025 17:47
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