Skip to content

(when) option compiler#190

Open
alexander-yevsyukov wants to merge 37 commits intomasterfrom
when-option-compiler
Open

(when) option compiler#190
alexander-yevsyukov wants to merge 37 commits intomasterfrom
when-option-compiler

Conversation

@alexander-yevsyukov
Copy link
Copy Markdown
Contributor

@alexander-yevsyukov alexander-yevsyukov commented Apr 27, 2026

This PR brings compilation of the (when) validation option which was previously a part of the Validation library.

Changes in details

  • validation modules was added with the code of the (when) option compilation.
  • TimeGradlePlugin now adds io.spine.tools:time-validation artifact to the Compiler's user classpath configuration. In tern, JavaValidationPlugin picks up the code generation via ValidationOption service loader API.
  • A separate tests subproject was introduced for running integration tests.
  • The POM of the time-validation artifact was adjusted to have no dependencies. They are going to be available at the classpath of JavaValidationPlugin.

Other notable changes

  • Latest config was applied.

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 27, 2026

Codecov Report

❌ Patch coverage is 1.98020% with 99 lines in your changes missing coverage. Please review.
✅ Project coverage is 84.27%. Comparing base (6d8ee5e) to head (f8994d2).

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #190      +/-   ##
============================================
- Coverage     92.75%   84.27%   -8.49%     
  Complexity      304      304              
============================================
  Files            57       60       +3     
  Lines           980     1081     +101     
  Branches         31       45      +14     
============================================
+ Hits            909      911       +2     
- Misses           61      160      +99     
  Partials         10       10              
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@alexander-yevsyukov alexander-yevsyukov self-assigned this Apr 27, 2026
@alexander-yevsyukov alexander-yevsyukov marked this pull request as ready for review April 27, 2026 20:27
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a9cad8f439

ℹ️ 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".

Comment thread validation/build.gradle.kts
Comment thread tests/build.gradle.kts Outdated
Copy link
Copy Markdown
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 LGTM with a couple of minor comments.

import org.junit.jupiter.api.Test
import io.spine.time.LocalDateTime as SpineTimeLocalDateTime

@DisplayName("If used with Spine `Temporal`, `(when)` constrain should")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

"constraint"

@@ -0,0 +1,69 @@
/*
* Copyright 2024, TeamDev. All rights reserved.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Let's update the year.

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.

2 participants