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 @@ -57,8 +57,6 @@ class DependencyReportOutputTest {

@Test
fun `write the generated POM under docs-dependencies`() {
projectDir.resolve("pom.xml").writeText("legacy POM")

PomGenerator.applyTo(project)

project.tasks.named("generatePom").get()
Expand All @@ -70,8 +68,6 @@ class DependencyReportOutputTest {

@Test
fun `merge license reports under docs-dependencies`() {
projectDir.resolve("dependencies.md").writeText("legacy report")

project.pluginManager.apply(BasePlugin::class.java)
val subproject = subproject("sub")
LicenseReporter.generateReportIn(subproject)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
/*
* Copyright 2026, TeamDev. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Redistribution and use in source and/or binary forms, with or without
* modification, must retain the above copyright notice and the following
* disclaimer.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

package io.spine.tools.validation

/**
* A template placeholder that can be used in error messages.
*
* Enumerates placeholder names that can be used within Protobuf definitions.
* Each validation option declares the supported placeholders. Take a look at
* `options.proto` for examples.
*
* The enum is used by the compiler model and Java renderer when validating and rendering
* built-in option error messages.
*/
@Deprecated(
message = "Please use `io.spine.validation.ErrorPlaceholder` instead.",
replaceWith = ReplaceWith("ErrorPlaceholder", "io.spine.validation.ErrorPlaceholder")
)
public enum class ErrorPlaceholder(public val value: String) {

// Common placeholders.
FIELD_PATH("field.path"),
FIELD_VALUE("field.value"),
FIELD_TYPE("field.type"),
MESSAGE_TYPE("message.type"),
PARENT_TYPE("parent.type"),

// Placeholders for the field options.
REGEX_PATTERN("regex.pattern"),
REGEX_MODIFIERS("regex.modifiers"),
GOES_COMPANION("goes.companion"),
FIELD_PROPOSED_VALUE("field.proposed_value"),
FIELD_DUPLICATES("field.duplicates"),
RANGE_VALUE("range.value"),
MAX_VALUE("max.value"),
MAX_OPERATOR("max.operator"),
MIN_VALUE("min.value"),
MIN_OPERATOR("min.operator"),
WHEN_IN("when.in"),

// Placeholders for the `oneof` options.
GROUP_PATH("group.path"),

// Placeholder for the message options.
REQUIRE_FIELDS("require.fields");

/**
* Converts this placeholder to its runtime counterpart.
*/
public fun toRuntime(): io.spine.validation.ErrorPlaceholder =
io.spine.validation.ErrorPlaceholder.valueOf(name)

override fun toString(): String = value
}
2 changes: 1 addition & 1 deletion docs/_examples
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ through Gradle's `extra` properties:
end="val validationVersion">
</embed-code>
```kotlin
val validationVersion by extra("2.0.0-SNAPSHOT.420")
val validationVersion by extra("2.0.0-SNAPSHOT.421")
```

The root build script applies this file under `allprojects { … }` and assigns
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ Add the Validation plugin to the build.
```kotlin
plugins {
module
id("io.spine.validation") version "2.0.0-SNAPSHOT.420"
id("io.spine.validation") version "2.0.0-SNAPSHOT.421"
}
```

Expand Down
56 changes: 28 additions & 28 deletions docs/dependencies/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.420`
# Dependencies of `io.spine.tools:validation-context:2.0.0-SNAPSHOT.421`

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

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

This report was generated on **Wed May 13 20:44:36 WEST 2026** using
This report was generated on **Thu May 14 20:38:23 WEST 2026** 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.420`
# Dependencies of `io.spine.tools:validation-context-tests:2.0.0-SNAPSHOT.421`

## Runtime
1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.20.0.
Expand Down Expand Up @@ -1791,7 +1791,7 @@ This report was generated on **Wed May 13 20:44:36 WEST 2026** using

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

This report was generated on **Wed May 13 20:44:36 WEST 2026** using
This report was generated on **Thu May 14 20:38:22 WEST 2026** 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).

Expand All @@ -1812,7 +1812,7 @@ This report was generated on **Wed May 13 20:09:04 WEST 2026** using



# Dependencies of `io.spine.tools:validation-gradle-plugin:2.0.0-SNAPSHOT.420`
# Dependencies of `io.spine.tools:validation-gradle-plugin:2.0.0-SNAPSHOT.421`

Comment thread
alexander-yevsyukov marked this conversation as resolved.
## Runtime
1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.20.0.
Expand Down Expand Up @@ -2864,14 +2864,14 @@ This report was generated on **Wed May 13 20:09:04 WEST 2026** using

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

This report was generated on **Wed May 13 20:44:36 WEST 2026** using
This report was generated on **Thu May 14 20:38:23 WEST 2026** 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.420`
# Dependencies of `io.spine.tools:validation-java:2.0.0-SNAPSHOT.421`

## Runtime
1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.20.0.
Expand Down Expand Up @@ -3961,14 +3961,14 @@ This report was generated on **Wed May 13 20:44:36 WEST 2026** using

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

This report was generated on **Wed May 13 20:44:36 WEST 2026** using
This report was generated on **Thu May 14 20:38:23 WEST 2026** 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.420`
# Dependencies of `io.spine.tools:validation-java-bundle:2.0.0-SNAPSHOT.421`

## Runtime
1. **Group** : org.jetbrains. **Name** : annotations. **Version** : 13.0.
Expand Down Expand Up @@ -4015,14 +4015,14 @@ This report was generated on **Wed May 13 20:44:36 WEST 2026** using

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

This report was generated on **Wed May 13 20:44:35 WEST 2026** using
This report was generated on **Thu May 14 20:38:19 WEST 2026** 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:spine-validation-jvm-runtime:2.0.0-SNAPSHOT.420`
# Dependencies of `io.spine:spine-validation-jvm-runtime:2.0.0-SNAPSHOT.421`

## Runtime
1. **Group** : com.google.code.findbugs. **Name** : jsr305. **Version** : 3.0.2.
Expand Down Expand Up @@ -4822,14 +4822,14 @@ This report was generated on **Wed May 13 20:44:35 WEST 2026** using

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

This report was generated on **Wed May 13 20:44:36 WEST 2026** using
This report was generated on **Thu May 14 20:38:23 WEST 2026** 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.420`
# Dependencies of `io.spine.tools:validation-consumer:2.0.0-SNAPSHOT.421`

## Runtime
1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.20.0.
Expand Down Expand Up @@ -5511,14 +5511,14 @@ This report was generated on **Wed May 13 20:44:36 WEST 2026** using

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

This report was generated on **Wed May 13 20:44:36 WEST 2026** using
This report was generated on **Thu May 14 20:38:22 WEST 2026** 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.420`
# Dependencies of `io.spine.tools:validation-consumer-dependency:2.0.0-SNAPSHOT.421`

## Runtime
1. **Group** : com.google.code.findbugs. **Name** : jsr305. **Version** : 3.0.2.
Expand Down Expand Up @@ -5976,14 +5976,14 @@ This report was generated on **Wed May 13 20:44:36 WEST 2026** using

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

This report was generated on **Wed May 13 20:44:36 WEST 2026** using
This report was generated on **Thu May 14 20:38:22 WEST 2026** 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.420`
# Dependencies of `io.spine.tools:validation-extensions:2.0.0-SNAPSHOT.421`

## Runtime
1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.20.0.
Expand Down Expand Up @@ -6602,14 +6602,14 @@ This report was generated on **Wed May 13 20:44:36 WEST 2026** using

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

This report was generated on **Wed May 13 20:44:36 WEST 2026** using
This report was generated on **Thu May 14 20:38:21 WEST 2026** 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.420`
# Dependencies of `io.spine.tools:validation-runtime:2.0.0-SNAPSHOT.421`

## Runtime
1. **Group** : com.google.code.findbugs. **Name** : jsr305. **Version** : 3.0.2.
Expand Down Expand Up @@ -7170,14 +7170,14 @@ This report was generated on **Wed May 13 20:44:36 WEST 2026** using

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

This report was generated on **Wed May 13 20:44:36 WEST 2026** using
This report was generated on **Thu May 14 20:38:22 WEST 2026** 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.420`
# Dependencies of `io.spine.tools:validation-validating:2.0.0-SNAPSHOT.421`

## Runtime
1. **Group** : com.google.code.findbugs. **Name** : jsr305. **Version** : 3.0.2.
Expand Down Expand Up @@ -7781,14 +7781,14 @@ This report was generated on **Wed May 13 20:44:36 WEST 2026** using

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

This report was generated on **Wed May 13 20:44:36 WEST 2026** using
This report was generated on **Thu May 14 20:38:22 WEST 2026** 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.420`
# Dependencies of `io.spine.tools:validation-validator:2.0.0-SNAPSHOT.421`

## Runtime
1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.20.0.
Expand Down Expand Up @@ -8526,14 +8526,14 @@ This report was generated on **Wed May 13 20:44:36 WEST 2026** using

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

This report was generated on **Wed May 13 20:44:36 WEST 2026** using
This report was generated on **Thu May 14 20:38:22 WEST 2026** 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.420`
# Dependencies of `io.spine.tools:validation-validator-dependency:2.0.0-SNAPSHOT.421`

## Runtime
1. **Group** : com.google.code.findbugs. **Name** : jsr305. **Version** : 3.0.2.
Expand Down Expand Up @@ -8766,14 +8766,14 @@ This report was generated on **Wed May 13 20:44:36 WEST 2026** using

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

This report was generated on **Wed May 13 20:44:35 WEST 2026** using
This report was generated on **Thu May 14 20:38:21 WEST 2026** 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.420`
# Dependencies of `io.spine.tools:validation-vanilla:2.0.0-SNAPSHOT.421`

## Runtime
1. **Group** : com.google.code.findbugs. **Name** : jsr305. **Version** : 3.0.2.
Expand Down Expand Up @@ -9116,6 +9116,6 @@ This report was generated on **Wed May 13 20:44:35 WEST 2026** using

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

This report was generated on **Wed May 13 20:44:35 WEST 2026** using
This report was generated on **Thu May 14 20:38:21 WEST 2026** 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).
2 changes: 1 addition & 1 deletion docs/dependencies/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ all modules and does not describe the project structure per-subproject.
-->
<groupId>io.spine.tools</groupId>
<artifactId>validation</artifactId>
<version>2.0.0-SNAPSHOT.420</version>
<version>2.0.0-SNAPSHOT.421</version>

<inceptionYear>2015</inceptionYear>

Expand Down
Loading
Loading