Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ object CoreJvmCompiler {
/**
* The version used to in the build classpath.
*/
const val dogfoodingVersion = "2.0.0-SNAPSHOT.040"
const val dogfoodingVersion = "2.0.0-SNAPSHOT.042"

/**
* The version to be used for integration tests.
*/
const val version = "2.0.0-SNAPSHOT.040"
const val version = "2.0.0-SNAPSHOT.042"

/**
* The ID of the Gradle plugin.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ object Validation {
/**
* The version of the Validation library artifacts.
*/
const val version = "2.0.0-SNAPSHOT.375"
const val version = "2.0.0-SNAPSHOT.378"

/**
* The last version of Validation compatible with ProtoData.
Expand Down Expand Up @@ -65,5 +65,5 @@ object Validation {
const val model = "$group:$prefix-model:$version"

const val configModule = "$group:$prefix-configuration"
const val configuration = "$configModule:$version"
const val context = "$group:$prefix-context:$version"
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,16 @@ package io.spine.tools.validation
* Each validation option declares the supported placeholders. Take a look at
* `options.proto` for examples.
*
* Important Note: we have the same [enum][io.spine.validate.RuntimeErrorPlaceholder]
* Important Note: we have the same [enum][io.spine.validation.RuntimeErrorPlaceholder]
* in the runtime library, which is exactly as this one. Please keep them in sync.
* This duplication is done intentionally to prevent clash between the runtime library,
* which is added to the classpath of ProtoData and the runtime library, which is part
* of ProtoData itself because it is a part of Spine. As we complete our migration
* which is added to the classpath of the Compiler and the runtime library, which is part
* of the Compiler itself because it is a part of Spine. As we complete our migration
* of validation to codegen, the runtime library will either be significantly simplified,
* or even its content may be moved to `base`. Then, the duplicate enum should be removed.
*
* @see io.spine.validate.TemplateString
* @see io.spine.validate.RuntimeErrorPlaceholder
* @see io.spine.validation.TemplateString
* @see io.spine.validation.RuntimeErrorPlaceholder
*/
public enum class ErrorPlaceholder(public val value: String) {

Expand Down
60 changes: 30 additions & 30 deletions dependencies.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


# Dependencies of `io.spine.tools:validation-context:2.0.0-SNAPSHOT.378`
# Dependencies of `io.spine.tools:validation-context:2.0.0-SNAPSHOT.380`

## Runtime
1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.20.0.
Expand Down Expand Up @@ -1139,14 +1139,14 @@

The dependencies distributed under several licenses, are used according their commercial-use-friendly license.

This report was generated on **Wed Dec 17 19:51:15 WET 2025** using
This report was generated on **Thu Dec 18 20:32:39 WET 2025** using
[Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under
[Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).




# Dependencies of `io.spine.tools:validation-context-tests:2.0.0-SNAPSHOT.378`
# Dependencies of `io.spine.tools:validation-context-tests:2.0.0-SNAPSHOT.380`

## Runtime
1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.20.0.
Expand Down Expand Up @@ -2233,14 +2233,14 @@ This report was generated on **Wed Dec 17 19:51:15 WET 2025** using

The dependencies distributed under several licenses, are used according their commercial-use-friendly license.

This report was generated on **Wed Dec 17 19:51:15 WET 2025** using
This report was generated on **Thu Dec 18 20:32:39 WET 2025** using
[Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under
[Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).




# Dependencies of `io.spine.tools:validation-gradle-plugin:2.0.0-SNAPSHOT.378`
# Dependencies of `io.spine.tools:validation-gradle-plugin:2.0.0-SNAPSHOT.380`

## Runtime
1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.20.0.
Expand Down Expand Up @@ -3309,14 +3309,14 @@ This report was generated on **Wed Dec 17 19:51:15 WET 2025** using

The dependencies distributed under several licenses, are used according their commercial-use-friendly license.

This report was generated on **Wed Dec 17 19:51:15 WET 2025** using
This report was generated on **Thu Dec 18 20:32:39 WET 2025** using
[Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under
[Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).




# Dependencies of `io.spine.tools:validation-java:2.0.0-SNAPSHOT.378`
# Dependencies of `io.spine.tools:validation-java:2.0.0-SNAPSHOT.380`

## Runtime
1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.20.0.
Expand Down Expand Up @@ -4403,14 +4403,14 @@ This report was generated on **Wed Dec 17 19:51:15 WET 2025** using

The dependencies distributed under several licenses, are used according their commercial-use-friendly license.

This report was generated on **Wed Dec 17 19:51:15 WET 2025** using
This report was generated on **Thu Dec 18 20:32:39 WET 2025** using
[Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under
[Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).




# Dependencies of `io.spine.tools:validation-java-bundle:2.0.0-SNAPSHOT.378`
# Dependencies of `io.spine.tools:validation-java-bundle:2.0.0-SNAPSHOT.380`

## Runtime
1. **Group** : com.google.auto.service. **Name** : auto-service-annotations. **Version** : 1.1.1.
Expand Down Expand Up @@ -5188,14 +5188,14 @@ This report was generated on **Wed Dec 17 19:51:15 WET 2025** using

The dependencies distributed under several licenses, are used according their commercial-use-friendly license.

This report was generated on **Wed Dec 17 19:51:15 WET 2025** using
This report was generated on **Thu Dec 18 20:32:39 WET 2025** using
[Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under
[Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).




# Dependencies of `io.spine:validation-jvm-runtime:2.0.0-SNAPSHOT.378`
# Dependencies of `io.spine:validation-jvm-runtime:2.0.0-SNAPSHOT.380`

## Runtime
1. **Group** : com.google.code.findbugs. **Name** : jsr305. **Version** : 3.0.2.
Expand Down Expand Up @@ -6044,14 +6044,14 @@ This report was generated on **Wed Dec 17 19:51:15 WET 2025** using

The dependencies distributed under several licenses, are used according their commercial-use-friendly license.

This report was generated on **Wed Dec 17 19:51:15 WET 2025** using
This report was generated on **Thu Dec 18 20:32:39 WET 2025** using
[Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under
[Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).




# Dependencies of `io.spine.tools:validation-ksp:2.0.0-SNAPSHOT.378`
# Dependencies of `io.spine.tools:validation-ksp:2.0.0-SNAPSHOT.380`

## Runtime
1. **Group** : com.google.auto.service. **Name** : auto-service-annotations. **Version** : 1.1.1.
Expand Down Expand Up @@ -6996,14 +6996,14 @@ This report was generated on **Wed Dec 17 19:51:15 WET 2025** using

The dependencies distributed under several licenses, are used according their commercial-use-friendly license.

This report was generated on **Wed Dec 17 19:51:15 WET 2025** using
This report was generated on **Thu Dec 18 20:32:39 WET 2025** using
[Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under
[Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).




# Dependencies of `io.spine.tools:validation-consumer:2.0.0-SNAPSHOT.378`
# Dependencies of `io.spine.tools:validation-consumer:2.0.0-SNAPSHOT.380`

## Runtime
1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.20.0.
Expand Down Expand Up @@ -8090,14 +8090,14 @@ This report was generated on **Wed Dec 17 19:51:15 WET 2025** using

The dependencies distributed under several licenses, are used according their commercial-use-friendly license.

This report was generated on **Wed Dec 17 19:51:15 WET 2025** using
This report was generated on **Thu Dec 18 20:32:39 WET 2025** using
[Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under
[Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).




# Dependencies of `io.spine.tools:validation-consumer-dependency:2.0.0-SNAPSHOT.378`
# Dependencies of `io.spine.tools:validation-consumer-dependency:2.0.0-SNAPSHOT.380`

## Runtime
1. **Group** : com.google.code.findbugs. **Name** : jsr305. **Version** : 3.0.2.
Expand Down Expand Up @@ -9087,14 +9087,14 @@ This report was generated on **Wed Dec 17 19:51:15 WET 2025** using

The dependencies distributed under several licenses, are used according their commercial-use-friendly license.

This report was generated on **Wed Dec 17 19:51:15 WET 2025** using
This report was generated on **Thu Dec 18 20:32:39 WET 2025** using
[Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under
[Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).




# Dependencies of `io.spine.tools:validation-extensions:2.0.0-SNAPSHOT.378`
# Dependencies of `io.spine.tools:validation-extensions:2.0.0-SNAPSHOT.380`

## Runtime
1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.20.0.
Expand Down Expand Up @@ -10237,14 +10237,14 @@ This report was generated on **Wed Dec 17 19:51:15 WET 2025** using

The dependencies distributed under several licenses, are used according their commercial-use-friendly license.

This report was generated on **Wed Dec 17 19:51:15 WET 2025** using
This report was generated on **Thu Dec 18 20:32:39 WET 2025** using
[Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under
[Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).




# Dependencies of `io.spine.tools:validation-runtime:2.0.0-SNAPSHOT.378`
# Dependencies of `io.spine.tools:validation-runtime:2.0.0-SNAPSHOT.380`

## Runtime
1. **Group** : com.google.code.findbugs. **Name** : jsr305. **Version** : 3.0.2.
Expand Down Expand Up @@ -11234,14 +11234,14 @@ This report was generated on **Wed Dec 17 19:51:15 WET 2025** using

The dependencies distributed under several licenses, are used according their commercial-use-friendly license.

This report was generated on **Wed Dec 17 19:51:15 WET 2025** using
This report was generated on **Thu Dec 18 20:32:39 WET 2025** using
[Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under
[Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).




# Dependencies of `io.spine.tools:validation-validating:2.0.0-SNAPSHOT.378`
# Dependencies of `io.spine.tools:validation-validating:2.0.0-SNAPSHOT.380`

## Runtime
1. **Group** : com.google.code.findbugs. **Name** : jsr305. **Version** : 3.0.2.
Expand Down Expand Up @@ -12235,14 +12235,14 @@ This report was generated on **Wed Dec 17 19:51:15 WET 2025** using

The dependencies distributed under several licenses, are used according their commercial-use-friendly license.

This report was generated on **Wed Dec 17 19:51:15 WET 2025** using
This report was generated on **Thu Dec 18 20:32:39 WET 2025** using
[Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under
[Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).




# Dependencies of `io.spine.tools:validation-validator:2.0.0-SNAPSHOT.378`
# Dependencies of `io.spine.tools:validation-validator:2.0.0-SNAPSHOT.380`

## Runtime
1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.20.0.
Expand Down Expand Up @@ -13333,14 +13333,14 @@ This report was generated on **Wed Dec 17 19:51:15 WET 2025** using

The dependencies distributed under several licenses, are used according their commercial-use-friendly license.

This report was generated on **Wed Dec 17 19:51:15 WET 2025** using
This report was generated on **Thu Dec 18 20:32:39 WET 2025** using
[Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under
[Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).




# Dependencies of `io.spine.tools:validation-validator-dependency:2.0.0-SNAPSHOT.378`
# Dependencies of `io.spine.tools:validation-validator-dependency:2.0.0-SNAPSHOT.380`

## Runtime
1. **Group** : com.google.code.findbugs. **Name** : jsr305. **Version** : 3.0.2.
Expand Down Expand Up @@ -14165,14 +14165,14 @@ This report was generated on **Wed Dec 17 19:51:15 WET 2025** using

The dependencies distributed under several licenses, are used according their commercial-use-friendly license.

This report was generated on **Wed Dec 17 19:51:15 WET 2025** using
This report was generated on **Thu Dec 18 20:32:39 WET 2025** using
[Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under
[Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).




# Dependencies of `io.spine.tools:validation-vanilla:2.0.0-SNAPSHOT.378`
# Dependencies of `io.spine.tools:validation-vanilla:2.0.0-SNAPSHOT.380`

## Runtime
1. **Group** : com.google.code.findbugs. **Name** : jsr305. **Version** : 3.0.2.
Expand Down Expand Up @@ -15028,6 +15028,6 @@ This report was generated on **Wed Dec 17 19:51:15 WET 2025** using

The dependencies distributed under several licenses, are used according their commercial-use-friendly license.

This report was generated on **Wed Dec 17 19:51:15 WET 2025** using
This report was generated on **Thu Dec 18 20:32:39 WET 2025** using
[Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under
[Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ private val customOptions: List<ValidationOption> by lazy {

/**
* Dynamically discovered instances of custom
* [MessageValidator][io.spine.validate.MessageValidator]s.
* [MessageValidator][io.spine.validation.MessageValidator]s.
*
* Please note that the KSP module is responsible for the actual discovering
* of the message validators. The discovered validators are written to a text file
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ import io.spine.tools.compiler.jvm.ClassName
import io.spine.type.KnownTypes
import io.spine.type.TypeName
import io.spine.type.TypeUrl
import io.spine.validate.ConstraintViolation
import io.spine.validate.TemplateString
import io.spine.validate.ValidatableMessage
import io.spine.validate.ValidationError
import io.spine.validation.ConstraintViolation
import io.spine.validation.TemplateString
import io.spine.validation.ValidatableMessage
import io.spine.validation.ValidationError
import java.util.*
import java.util.regex.Pattern
import java.util.stream.Collectors
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ import io.spine.tools.compiler.jvm.ClassName
import io.spine.tools.compiler.jvm.Expression
import io.spine.tools.compiler.jvm.newBuilder
import io.spine.tools.compiler.jvm.packToAny
import io.spine.validate.ConstraintViolation
import io.spine.validate.TemplateString
import io.spine.validation.ConstraintViolation
import io.spine.validation.TemplateString

/**
* Yields an expression that creates a new instance of [ConstraintViolation]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public fun Expression<FieldPath>.mergeFrom(other: Expression<FieldPath>): Expres
*
* Strictly speaking, [OneofName] does not represent a field, but a group of fields.
* But we still use [FieldPath] to provide a path to this message member because
* [io.spine.validate.ConstraintViolation] expects exactly [FieldPath] type.
* [io.spine.validation.ConstraintViolation] expects exactly [FieldPath] type.
*/
public fun Expression<FieldPath>.resolve(oneof: OneofName): Expression<FieldPath> =
toBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ import io.spine.tools.compiler.jvm.StringLiteral
import io.spine.tools.compiler.jvm.mapExpression
import io.spine.tools.compiler.jvm.newBuilder
import io.spine.tools.validation.ErrorPlaceholder
import io.spine.validate.TemplateString
import io.spine.validate.checkPlaceholdersHasValue
import io.spine.validation.TemplateString
import io.spine.validation.checkPlaceholdersHasValue

/**
* Yields an expression that creates a new instance of [TemplateString].
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ import io.spine.tools.compiler.jvm.ReadVar
import io.spine.tools.validation.java.generate.ValidateScope.parentName
import io.spine.tools.validation.java.generate.ValidateScope.parentPath
import io.spine.type.TypeName
import io.spine.validate.ConstraintViolation
import io.spine.validation.ConstraintViolation

/**
* Scope variables available within the `validate(FieldPath)` method.
*
* Use these variables to create an instance of [io.spine.validate.ConstraintViolation]
* Use these variables to create an instance of [io.spine.validation.ConstraintViolation]
* for the failed option constraint.
*/
public object ValidateScope {
Expand Down
Loading
Loading