diff --git a/buildSrc/src/main/kotlin/io/spine/internal/dependency/ProtoData.kt b/buildSrc/src/main/kotlin/io/spine/internal/dependency/ProtoData.kt index 180b6b0123..370bfd1eac 100644 --- a/buildSrc/src/main/kotlin/io/spine/internal/dependency/ProtoData.kt +++ b/buildSrc/src/main/kotlin/io/spine/internal/dependency/ProtoData.kt @@ -33,7 +33,12 @@ package io.spine.internal.dependency */ @Suppress("unused", "ConstPropertyName") object ProtoData { - const val version = "0.9.11" + const val version = "0.11.6" + + /** + * The version of ProtoData used in McJava for building McJava. + */ + const val dogfoodingVersion = "0.11.6" const val group = "io.spine.protodata" const val compiler = "$group:protodata-compiler:$version" diff --git a/buildSrc/src/main/kotlin/io/spine/internal/dependency/Spine.kt b/buildSrc/src/main/kotlin/io/spine/internal/dependency/Spine.kt index d1d81d50c5..988d12b6e3 100644 --- a/buildSrc/src/main/kotlin/io/spine/internal/dependency/Spine.kt +++ b/buildSrc/src/main/kotlin/io/spine/internal/dependency/Spine.kt @@ -45,7 +45,7 @@ object Spine { * * @see spine-base */ - const val base = "2.0.0-SNAPSHOT.188" + const val base = "2.0.0-SNAPSHOT.189" /** * The version of [Spine.reflect]. @@ -59,7 +59,7 @@ object Spine { * * @see spine-logging */ - const val logging = "2.0.0-SNAPSHOT.206" + const val logging = "2.0.0-SNAPSHOT.215" /** * The version of [Spine.testlib]. @@ -75,28 +75,28 @@ object Spine { * @see [Spine.CoreJava.server] * @see core-java */ - const val core = "2.0.0-SNAPSHOT.155" + const val core = "2.0.0-SNAPSHOT.157" /** * The version of [Spine.modelCompiler]. * * @see spine-model-compiler */ - const val mc = "2.0.0-SNAPSHOT.132" + const val mc = "2.0.0-SNAPSHOT.133" /** * The version of [McJava]. * * @see spine-mc-java */ - const val mcJava = "2.0.0-SNAPSHOT.168" + const val mcJava = "2.0.0-SNAPSHOT.170" /** * The version of [Spine.baseTypes]. * * @see spine-base-types */ - const val baseTypes = "2.0.0-SNAPSHOT.124" + const val baseTypes = "2.0.0-SNAPSHOT.125" /** * The version of [Spine.time]. @@ -124,7 +124,7 @@ object Spine { * * @see spine-tool-base */ - const val toolBase = "2.0.0-SNAPSHOT.180" + const val toolBase = "2.0.0-SNAPSHOT.183" /** * The version of [Spine.javadocTools]. diff --git a/buildSrc/src/main/kotlin/io/spine/internal/dependency/Validation.kt b/buildSrc/src/main/kotlin/io/spine/internal/dependency/Validation.kt index e663ca1d99..a4a45be33b 100644 --- a/buildSrc/src/main/kotlin/io/spine/internal/dependency/Validation.kt +++ b/buildSrc/src/main/kotlin/io/spine/internal/dependency/Validation.kt @@ -33,7 +33,7 @@ package io.spine.internal.dependency */ @Suppress("unused", "ConstPropertyName") object Validation { - const val version = "2.0.0-SNAPSHOT.99" + const val version = "2.0.0-SNAPSHOT.104" const val group = "io.spine.validation" const val runtime = "$group:spine-validation-java-runtime:$version" const val java = "$group:spine-validation-java:$version" diff --git a/config b/config index 327bc212a3..d4f2322142 160000 --- a/config +++ b/config @@ -1 +1 @@ -Subproject commit 327bc212a335bf4badd560394364def291c0282e +Subproject commit d4f232214236e9bca746ab2984ce6e46c5d79600 diff --git a/license-report.md b/license-report.md index fcc3813079..ee7843c72c 100644 --- a/license-report.md +++ b/license-report.md @@ -1,6 +1,6 @@ -# Dependencies of `io.spine:spine-client:2.0.0-SNAPSHOT.157` +# Dependencies of `io.spine:spine-client:2.0.0-SNAPSHOT.158` ## Runtime 1. **Group** : com.google.android. **Name** : annotations. **Version** : 4.1.1.4. @@ -23,10 +23,6 @@ * **Project URL:** [https://errorprone.info/error_prone_annotations](https://errorprone.info/error_prone_annotations) * **License:** [Apache 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt) -1. **Group** : com.google.errorprone. **Name** : error_prone_type_annotations. **Version** : 2.21.1. - * **Project URL:** [https://errorprone.info/error_prone_type_annotations](https://errorprone.info/error_prone_type_annotations) - * **License:** [Apache 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt) - 1. **Group** : com.google.guava. **Name** : failureaccess. **Version** : 1.0.1. * **Project URL:** [https://github.com/google/guava/](https://github.com/google/guava/) * **License:** [The Apache Software License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt) @@ -82,7 +78,7 @@ * **Project URL:** [https://github.com/perfmark/perfmark](https://github.com/perfmark/perfmark) * **License:** [Apache 2.0](https://opensource.org/licenses/Apache-2.0) -1. **Group** : io.spine.validation. **Name** : spine-validation-java-runtime. **Version** : 2.0.0-SNAPSHOT.99.**No license information found** +1. **Group** : io.spine.validation. **Name** : spine-validation-java-runtime. **Version** : 2.0.0-SNAPSHOT.104.**No license information found** 1. **Group** : org.checkerframework. **Name** : checker-qual. **Version** : 3.37.0. * **Project URL:** [https://checkerframework.org/](https://checkerframework.org/) * **License:** [The MIT License](http://opensource.org/licenses/MIT) @@ -265,7 +261,7 @@ 1. **Group** : com.google.protobuf. **Name** : protobuf-kotlin. **Version** : 3.24.1. * **License:** [BSD-3-Clause](https://opensource.org/licenses/BSD-3-Clause) -1. **Group** : com.google.protobuf. **Name** : protoc. **Version** : 3.23.4. +1. **Group** : com.google.protobuf. **Name** : protoc. **Version** : 3.24.1. * **Project URL:** [https://developers.google.com/protocol-buffers/](https://developers.google.com/protocol-buffers/) * **License:** [BSD-3-Clause](https://opensource.org/licenses/BSD-3-Clause) * **License:** [The Apache Software License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt) @@ -470,15 +466,15 @@ * **Project URL:** [https://github.com/perfmark/perfmark](https://github.com/perfmark/perfmark) * **License:** [Apache 2.0](https://opensource.org/licenses/Apache-2.0) -1. **Group** : io.spine.protodata. **Name** : protodata-codegen-java. **Version** : 0.9.6.**No license information found** -1. **Group** : io.spine.protodata. **Name** : protodata-fat-cli. **Version** : 0.9.11.**No license information found** -1. **Group** : io.spine.protodata. **Name** : protodata-protoc. **Version** : 0.9.11.**No license information found** -1. **Group** : io.spine.validation. **Name** : spine-validation-configuration. **Version** : 2.0.0-SNAPSHOT.99.**No license information found** -1. **Group** : io.spine.validation. **Name** : spine-validation-context. **Version** : 2.0.0-SNAPSHOT.99.**No license information found** -1. **Group** : io.spine.validation. **Name** : spine-validation-java. **Version** : 2.0.0-SNAPSHOT.99.**No license information found** -1. **Group** : io.spine.validation. **Name** : spine-validation-java-bundle. **Version** : 2.0.0-SNAPSHOT.99.**No license information found** -1. **Group** : io.spine.validation. **Name** : spine-validation-java-runtime. **Version** : 2.0.0-SNAPSHOT.99.**No license information found** -1. **Group** : io.spine.validation. **Name** : spine-validation-model. **Version** : 2.0.0-SNAPSHOT.99.**No license information found** +1. **Group** : io.spine.protodata. **Name** : protodata-codegen-java. **Version** : 0.11.4.**No license information found** +1. **Group** : io.spine.protodata. **Name** : protodata-fat-cli. **Version** : 0.11.4.**No license information found** +1. **Group** : io.spine.protodata. **Name** : protodata-protoc. **Version** : 0.11.4.**No license information found** +1. **Group** : io.spine.validation. **Name** : spine-validation-configuration. **Version** : 2.0.0-SNAPSHOT.104.**No license information found** +1. **Group** : io.spine.validation. **Name** : spine-validation-context. **Version** : 2.0.0-SNAPSHOT.104.**No license information found** +1. **Group** : io.spine.validation. **Name** : spine-validation-java. **Version** : 2.0.0-SNAPSHOT.104.**No license information found** +1. **Group** : io.spine.validation. **Name** : spine-validation-java-bundle. **Version** : 2.0.0-SNAPSHOT.104.**No license information found** +1. **Group** : io.spine.validation. **Name** : spine-validation-java-runtime. **Version** : 2.0.0-SNAPSHOT.104.**No license information found** +1. **Group** : io.spine.validation. **Name** : spine-validation-model. **Version** : 2.0.0-SNAPSHOT.104.**No license information found** 1. **Group** : javax.annotation. **Name** : javax.annotation-api. **Version** : 1.3.2. * **Project URL:** [http://jcp.org/en/jsr/detail?id=250](http://jcp.org/en/jsr/detail?id=250) * **License:** [CDDL + GPLv2 with classpath exception](https://github.com/javaee/javax.annotation/blob/master/LICENSE) @@ -804,12 +800,12 @@ The dependencies distributed under several licenses, are used according their commercial-use-friendly license. -This report was generated on **Sat Aug 26 16:31:38 WEST 2023** 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). +This report was generated on **Thu Sep 21 16:26:41 WEST 2023** 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-core:2.0.0-SNAPSHOT.157` +# Dependencies of `io.spine:spine-core:2.0.0-SNAPSHOT.158` ## Runtime 1. **Group** : com.google.code.findbugs. **Name** : jsr305. **Version** : 3.0.2. @@ -824,10 +820,6 @@ This report was generated on **Sat Aug 26 16:31:38 WEST 2023** using [Gradle-Lic * **Project URL:** [https://errorprone.info/error_prone_annotations](https://errorprone.info/error_prone_annotations) * **License:** [Apache 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt) -1. **Group** : com.google.errorprone. **Name** : error_prone_type_annotations. **Version** : 2.21.1. - * **Project URL:** [https://errorprone.info/error_prone_type_annotations](https://errorprone.info/error_prone_type_annotations) - * **License:** [Apache 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt) - 1. **Group** : com.google.guava. **Name** : failureaccess. **Version** : 1.0.1. * **Project URL:** [https://github.com/google/guava/](https://github.com/google/guava/) * **License:** [The Apache Software License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt) @@ -855,7 +847,7 @@ This report was generated on **Sat Aug 26 16:31:38 WEST 2023** using [Gradle-Lic 1. **Group** : com.google.protobuf. **Name** : protobuf-kotlin. **Version** : 3.24.1. * **License:** [BSD-3-Clause](https://opensource.org/licenses/BSD-3-Clause) -1. **Group** : io.spine.validation. **Name** : spine-validation-java-runtime. **Version** : 2.0.0-SNAPSHOT.99.**No license information found** +1. **Group** : io.spine.validation. **Name** : spine-validation-java-runtime. **Version** : 2.0.0-SNAPSHOT.104.**No license information found** 1. **Group** : org.checkerframework. **Name** : checker-qual. **Version** : 3.37.0. * **Project URL:** [https://checkerframework.org/](https://checkerframework.org/) * **License:** [The MIT License](http://opensource.org/licenses/MIT) @@ -1034,7 +1026,7 @@ This report was generated on **Sat Aug 26 16:31:38 WEST 2023** using [Gradle-Lic 1. **Group** : com.google.protobuf. **Name** : protobuf-kotlin. **Version** : 3.24.1. * **License:** [BSD-3-Clause](https://opensource.org/licenses/BSD-3-Clause) -1. **Group** : com.google.protobuf. **Name** : protoc. **Version** : 3.23.4. +1. **Group** : com.google.protobuf. **Name** : protoc. **Version** : 3.24.1. * **Project URL:** [https://developers.google.com/protocol-buffers/](https://developers.google.com/protocol-buffers/) * **License:** [BSD-3-Clause](https://opensource.org/licenses/BSD-3-Clause) * **License:** [The Apache Software License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt) @@ -1239,15 +1231,15 @@ This report was generated on **Sat Aug 26 16:31:38 WEST 2023** using [Gradle-Lic * **Project URL:** [https://github.com/perfmark/perfmark](https://github.com/perfmark/perfmark) * **License:** [Apache 2.0](https://opensource.org/licenses/Apache-2.0) -1. **Group** : io.spine.protodata. **Name** : protodata-codegen-java. **Version** : 0.9.6.**No license information found** -1. **Group** : io.spine.protodata. **Name** : protodata-fat-cli. **Version** : 0.9.11.**No license information found** -1. **Group** : io.spine.protodata. **Name** : protodata-protoc. **Version** : 0.9.11.**No license information found** -1. **Group** : io.spine.validation. **Name** : spine-validation-configuration. **Version** : 2.0.0-SNAPSHOT.99.**No license information found** -1. **Group** : io.spine.validation. **Name** : spine-validation-context. **Version** : 2.0.0-SNAPSHOT.99.**No license information found** -1. **Group** : io.spine.validation. **Name** : spine-validation-java. **Version** : 2.0.0-SNAPSHOT.99.**No license information found** -1. **Group** : io.spine.validation. **Name** : spine-validation-java-bundle. **Version** : 2.0.0-SNAPSHOT.99.**No license information found** -1. **Group** : io.spine.validation. **Name** : spine-validation-java-runtime. **Version** : 2.0.0-SNAPSHOT.99.**No license information found** -1. **Group** : io.spine.validation. **Name** : spine-validation-model. **Version** : 2.0.0-SNAPSHOT.99.**No license information found** +1. **Group** : io.spine.protodata. **Name** : protodata-codegen-java. **Version** : 0.11.4.**No license information found** +1. **Group** : io.spine.protodata. **Name** : protodata-fat-cli. **Version** : 0.11.4.**No license information found** +1. **Group** : io.spine.protodata. **Name** : protodata-protoc. **Version** : 0.11.4.**No license information found** +1. **Group** : io.spine.validation. **Name** : spine-validation-configuration. **Version** : 2.0.0-SNAPSHOT.104.**No license information found** +1. **Group** : io.spine.validation. **Name** : spine-validation-context. **Version** : 2.0.0-SNAPSHOT.104.**No license information found** +1. **Group** : io.spine.validation. **Name** : spine-validation-java. **Version** : 2.0.0-SNAPSHOT.104.**No license information found** +1. **Group** : io.spine.validation. **Name** : spine-validation-java-bundle. **Version** : 2.0.0-SNAPSHOT.104.**No license information found** +1. **Group** : io.spine.validation. **Name** : spine-validation-java-runtime. **Version** : 2.0.0-SNAPSHOT.104.**No license information found** +1. **Group** : io.spine.validation. **Name** : spine-validation-model. **Version** : 2.0.0-SNAPSHOT.104.**No license information found** 1. **Group** : javax.annotation. **Name** : javax.annotation-api. **Version** : 1.3.2. * **Project URL:** [http://jcp.org/en/jsr/detail?id=250](http://jcp.org/en/jsr/detail?id=250) * **License:** [CDDL + GPLv2 with classpath exception](https://github.com/javaee/javax.annotation/blob/master/LICENSE) @@ -1573,12 +1565,12 @@ This report was generated on **Sat Aug 26 16:31:38 WEST 2023** using [Gradle-Lic The dependencies distributed under several licenses, are used according their commercial-use-friendly license. -This report was generated on **Sat Aug 26 16:31:39 WEST 2023** 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). +This report was generated on **Thu Sep 21 16:26:42 WEST 2023** 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-server:2.0.0-SNAPSHOT.157` +# Dependencies of `io.spine:spine-server:2.0.0-SNAPSHOT.158` ## Runtime 1. **Group** : com.google.android. **Name** : annotations. **Version** : 4.1.1.4. @@ -1601,10 +1593,6 @@ This report was generated on **Sat Aug 26 16:31:39 WEST 2023** using [Gradle-Lic * **Project URL:** [https://errorprone.info/error_prone_annotations](https://errorprone.info/error_prone_annotations) * **License:** [Apache 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt) -1. **Group** : com.google.errorprone. **Name** : error_prone_type_annotations. **Version** : 2.21.1. - * **Project URL:** [https://errorprone.info/error_prone_type_annotations](https://errorprone.info/error_prone_type_annotations) - * **License:** [Apache 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt) - 1. **Group** : com.google.guava. **Name** : failureaccess. **Version** : 1.0.1. * **Project URL:** [https://github.com/google/guava/](https://github.com/google/guava/) * **License:** [The Apache Software License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt) @@ -1660,7 +1648,7 @@ This report was generated on **Sat Aug 26 16:31:39 WEST 2023** using [Gradle-Lic * **Project URL:** [https://github.com/perfmark/perfmark](https://github.com/perfmark/perfmark) * **License:** [Apache 2.0](https://opensource.org/licenses/Apache-2.0) -1. **Group** : io.spine.validation. **Name** : spine-validation-java-runtime. **Version** : 2.0.0-SNAPSHOT.99.**No license information found** +1. **Group** : io.spine.validation. **Name** : spine-validation-java-runtime. **Version** : 2.0.0-SNAPSHOT.104.**No license information found** 1. **Group** : org.checkerframework. **Name** : checker-qual. **Version** : 3.37.0. * **Project URL:** [https://checkerframework.org/](https://checkerframework.org/) * **License:** [The MIT License](http://opensource.org/licenses/MIT) @@ -1847,7 +1835,7 @@ This report was generated on **Sat Aug 26 16:31:39 WEST 2023** using [Gradle-Lic 1. **Group** : com.google.protobuf. **Name** : protobuf-kotlin. **Version** : 3.24.1. * **License:** [BSD-3-Clause](https://opensource.org/licenses/BSD-3-Clause) -1. **Group** : com.google.protobuf. **Name** : protoc. **Version** : 3.23.4. +1. **Group** : com.google.protobuf. **Name** : protoc. **Version** : 3.24.1. * **Project URL:** [https://developers.google.com/protocol-buffers/](https://developers.google.com/protocol-buffers/) * **License:** [BSD-3-Clause](https://opensource.org/licenses/BSD-3-Clause) * **License:** [The Apache Software License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt) @@ -2056,15 +2044,15 @@ This report was generated on **Sat Aug 26 16:31:39 WEST 2023** using [Gradle-Lic * **Project URL:** [https://github.com/perfmark/perfmark](https://github.com/perfmark/perfmark) * **License:** [Apache 2.0](https://opensource.org/licenses/Apache-2.0) -1. **Group** : io.spine.protodata. **Name** : protodata-codegen-java. **Version** : 0.9.6.**No license information found** -1. **Group** : io.spine.protodata. **Name** : protodata-fat-cli. **Version** : 0.9.11.**No license information found** -1. **Group** : io.spine.protodata. **Name** : protodata-protoc. **Version** : 0.9.11.**No license information found** -1. **Group** : io.spine.validation. **Name** : spine-validation-configuration. **Version** : 2.0.0-SNAPSHOT.99.**No license information found** -1. **Group** : io.spine.validation. **Name** : spine-validation-context. **Version** : 2.0.0-SNAPSHOT.99.**No license information found** -1. **Group** : io.spine.validation. **Name** : spine-validation-java. **Version** : 2.0.0-SNAPSHOT.99.**No license information found** -1. **Group** : io.spine.validation. **Name** : spine-validation-java-bundle. **Version** : 2.0.0-SNAPSHOT.99.**No license information found** -1. **Group** : io.spine.validation. **Name** : spine-validation-java-runtime. **Version** : 2.0.0-SNAPSHOT.99.**No license information found** -1. **Group** : io.spine.validation. **Name** : spine-validation-model. **Version** : 2.0.0-SNAPSHOT.99.**No license information found** +1. **Group** : io.spine.protodata. **Name** : protodata-codegen-java. **Version** : 0.11.4.**No license information found** +1. **Group** : io.spine.protodata. **Name** : protodata-fat-cli. **Version** : 0.11.4.**No license information found** +1. **Group** : io.spine.protodata. **Name** : protodata-protoc. **Version** : 0.11.4.**No license information found** +1. **Group** : io.spine.validation. **Name** : spine-validation-configuration. **Version** : 2.0.0-SNAPSHOT.104.**No license information found** +1. **Group** : io.spine.validation. **Name** : spine-validation-context. **Version** : 2.0.0-SNAPSHOT.104.**No license information found** +1. **Group** : io.spine.validation. **Name** : spine-validation-java. **Version** : 2.0.0-SNAPSHOT.104.**No license information found** +1. **Group** : io.spine.validation. **Name** : spine-validation-java-bundle. **Version** : 2.0.0-SNAPSHOT.104.**No license information found** +1. **Group** : io.spine.validation. **Name** : spine-validation-java-runtime. **Version** : 2.0.0-SNAPSHOT.104.**No license information found** +1. **Group** : io.spine.validation. **Name** : spine-validation-model. **Version** : 2.0.0-SNAPSHOT.104.**No license information found** 1. **Group** : javax.annotation. **Name** : javax.annotation-api. **Version** : 1.3.2. * **Project URL:** [http://jcp.org/en/jsr/detail?id=250](http://jcp.org/en/jsr/detail?id=250) * **License:** [CDDL + GPLv2 with classpath exception](https://github.com/javaee/javax.annotation/blob/master/LICENSE) @@ -2390,12 +2378,12 @@ This report was generated on **Sat Aug 26 16:31:39 WEST 2023** using [Gradle-Lic The dependencies distributed under several licenses, are used according their commercial-use-friendly license. -This report was generated on **Sat Aug 26 16:31:39 WEST 2023** 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). +This report was generated on **Thu Sep 21 16:26:42 WEST 2023** 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:spine-testutil-client:2.0.0-SNAPSHOT.157` +# Dependencies of `io.spine.tools:spine-testutil-client:2.0.0-SNAPSHOT.158` ## Runtime 1. **Group** : com.google.android. **Name** : annotations. **Version** : 4.1.1.4. @@ -2422,10 +2410,6 @@ This report was generated on **Sat Aug 26 16:31:39 WEST 2023** using [Gradle-Lic * **Project URL:** [https://errorprone.info/error_prone_annotations](https://errorprone.info/error_prone_annotations) * **License:** [Apache 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt) -1. **Group** : com.google.errorprone. **Name** : error_prone_type_annotations. **Version** : 2.21.1. - * **Project URL:** [https://errorprone.info/error_prone_type_annotations](https://errorprone.info/error_prone_type_annotations) - * **License:** [Apache 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt) - 1. **Group** : com.google.flogger. **Name** : flogger. **Version** : 0.7.4. * **Project URL:** [https://github.com/google/flogger](https://github.com/google/flogger) * **License:** [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0.txt) @@ -2539,7 +2523,7 @@ This report was generated on **Sat Aug 26 16:31:39 WEST 2023** using [Gradle-Lic * **Project URL:** [https://github.com/perfmark/perfmark](https://github.com/perfmark/perfmark) * **License:** [Apache 2.0](https://opensource.org/licenses/Apache-2.0) -1. **Group** : io.spine.validation. **Name** : spine-validation-java-runtime. **Version** : 2.0.0-SNAPSHOT.99.**No license information found** +1. **Group** : io.spine.validation. **Name** : spine-validation-java-runtime. **Version** : 2.0.0-SNAPSHOT.104.**No license information found** 1. **Group** : junit. **Name** : junit. **Version** : 4.13.1. * **Project URL:** [http://junit.org](http://junit.org) * **License:** [Eclipse Public License 1.0](http://www.eclipse.org/legal/epl-v10.html) @@ -2773,7 +2757,7 @@ This report was generated on **Sat Aug 26 16:31:39 WEST 2023** using [Gradle-Lic 1. **Group** : com.google.protobuf. **Name** : protobuf-kotlin. **Version** : 3.24.1. * **License:** [BSD-3-Clause](https://opensource.org/licenses/BSD-3-Clause) -1. **Group** : com.google.protobuf. **Name** : protoc. **Version** : 3.23.4. +1. **Group** : com.google.protobuf. **Name** : protoc. **Version** : 3.24.1. * **Project URL:** [https://developers.google.com/protocol-buffers/](https://developers.google.com/protocol-buffers/) * **License:** [BSD-3-Clause](https://opensource.org/licenses/BSD-3-Clause) * **License:** [The Apache Software License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt) @@ -2990,15 +2974,15 @@ This report was generated on **Sat Aug 26 16:31:39 WEST 2023** using [Gradle-Lic * **Project URL:** [https://github.com/perfmark/perfmark](https://github.com/perfmark/perfmark) * **License:** [Apache 2.0](https://opensource.org/licenses/Apache-2.0) -1. **Group** : io.spine.protodata. **Name** : protodata-codegen-java. **Version** : 0.9.6.**No license information found** -1. **Group** : io.spine.protodata. **Name** : protodata-fat-cli. **Version** : 0.9.11.**No license information found** -1. **Group** : io.spine.protodata. **Name** : protodata-protoc. **Version** : 0.9.11.**No license information found** -1. **Group** : io.spine.validation. **Name** : spine-validation-configuration. **Version** : 2.0.0-SNAPSHOT.99.**No license information found** -1. **Group** : io.spine.validation. **Name** : spine-validation-context. **Version** : 2.0.0-SNAPSHOT.99.**No license information found** -1. **Group** : io.spine.validation. **Name** : spine-validation-java. **Version** : 2.0.0-SNAPSHOT.99.**No license information found** -1. **Group** : io.spine.validation. **Name** : spine-validation-java-bundle. **Version** : 2.0.0-SNAPSHOT.99.**No license information found** -1. **Group** : io.spine.validation. **Name** : spine-validation-java-runtime. **Version** : 2.0.0-SNAPSHOT.99.**No license information found** -1. **Group** : io.spine.validation. **Name** : spine-validation-model. **Version** : 2.0.0-SNAPSHOT.99.**No license information found** +1. **Group** : io.spine.protodata. **Name** : protodata-codegen-java. **Version** : 0.11.4.**No license information found** +1. **Group** : io.spine.protodata. **Name** : protodata-fat-cli. **Version** : 0.11.4.**No license information found** +1. **Group** : io.spine.protodata. **Name** : protodata-protoc. **Version** : 0.11.4.**No license information found** +1. **Group** : io.spine.validation. **Name** : spine-validation-configuration. **Version** : 2.0.0-SNAPSHOT.104.**No license information found** +1. **Group** : io.spine.validation. **Name** : spine-validation-context. **Version** : 2.0.0-SNAPSHOT.104.**No license information found** +1. **Group** : io.spine.validation. **Name** : spine-validation-java. **Version** : 2.0.0-SNAPSHOT.104.**No license information found** +1. **Group** : io.spine.validation. **Name** : spine-validation-java-bundle. **Version** : 2.0.0-SNAPSHOT.104.**No license information found** +1. **Group** : io.spine.validation. **Name** : spine-validation-java-runtime. **Version** : 2.0.0-SNAPSHOT.104.**No license information found** +1. **Group** : io.spine.validation. **Name** : spine-validation-model. **Version** : 2.0.0-SNAPSHOT.104.**No license information found** 1. **Group** : javax.annotation. **Name** : javax.annotation-api. **Version** : 1.3.2. * **Project URL:** [http://jcp.org/en/jsr/detail?id=250](http://jcp.org/en/jsr/detail?id=250) * **License:** [CDDL + GPLv2 with classpath exception](https://github.com/javaee/javax.annotation/blob/master/LICENSE) @@ -3327,12 +3311,12 @@ This report was generated on **Sat Aug 26 16:31:39 WEST 2023** using [Gradle-Lic The dependencies distributed under several licenses, are used according their commercial-use-friendly license. -This report was generated on **Sat Aug 26 16:31:39 WEST 2023** 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). +This report was generated on **Thu Sep 21 16:26:43 WEST 2023** 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:spine-testutil-core:2.0.0-SNAPSHOT.157` +# Dependencies of `io.spine.tools:spine-testutil-core:2.0.0-SNAPSHOT.158` ## Runtime 1. **Group** : com.google.android. **Name** : annotations. **Version** : 4.1.1.4. @@ -3359,10 +3343,6 @@ This report was generated on **Sat Aug 26 16:31:39 WEST 2023** using [Gradle-Lic * **Project URL:** [https://errorprone.info/error_prone_annotations](https://errorprone.info/error_prone_annotations) * **License:** [Apache 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt) -1. **Group** : com.google.errorprone. **Name** : error_prone_type_annotations. **Version** : 2.21.1. - * **Project URL:** [https://errorprone.info/error_prone_type_annotations](https://errorprone.info/error_prone_type_annotations) - * **License:** [Apache 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt) - 1. **Group** : com.google.flogger. **Name** : flogger. **Version** : 0.7.4. * **Project URL:** [https://github.com/google/flogger](https://github.com/google/flogger) * **License:** [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0.txt) @@ -3476,7 +3456,7 @@ This report was generated on **Sat Aug 26 16:31:39 WEST 2023** using [Gradle-Lic * **Project URL:** [https://github.com/perfmark/perfmark](https://github.com/perfmark/perfmark) * **License:** [Apache 2.0](https://opensource.org/licenses/Apache-2.0) -1. **Group** : io.spine.validation. **Name** : spine-validation-java-runtime. **Version** : 2.0.0-SNAPSHOT.99.**No license information found** +1. **Group** : io.spine.validation. **Name** : spine-validation-java-runtime. **Version** : 2.0.0-SNAPSHOT.104.**No license information found** 1. **Group** : junit. **Name** : junit. **Version** : 4.13.1. * **Project URL:** [http://junit.org](http://junit.org) * **License:** [Eclipse Public License 1.0](http://www.eclipse.org/legal/epl-v10.html) @@ -3710,7 +3690,7 @@ This report was generated on **Sat Aug 26 16:31:39 WEST 2023** using [Gradle-Lic 1. **Group** : com.google.protobuf. **Name** : protobuf-kotlin. **Version** : 3.24.1. * **License:** [BSD-3-Clause](https://opensource.org/licenses/BSD-3-Clause) -1. **Group** : com.google.protobuf. **Name** : protoc. **Version** : 3.23.4. +1. **Group** : com.google.protobuf. **Name** : protoc. **Version** : 3.24.1. * **Project URL:** [https://developers.google.com/protocol-buffers/](https://developers.google.com/protocol-buffers/) * **License:** [BSD-3-Clause](https://opensource.org/licenses/BSD-3-Clause) * **License:** [The Apache Software License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt) @@ -3927,15 +3907,15 @@ This report was generated on **Sat Aug 26 16:31:39 WEST 2023** using [Gradle-Lic * **Project URL:** [https://github.com/perfmark/perfmark](https://github.com/perfmark/perfmark) * **License:** [Apache 2.0](https://opensource.org/licenses/Apache-2.0) -1. **Group** : io.spine.protodata. **Name** : protodata-codegen-java. **Version** : 0.9.6.**No license information found** -1. **Group** : io.spine.protodata. **Name** : protodata-fat-cli. **Version** : 0.9.11.**No license information found** -1. **Group** : io.spine.protodata. **Name** : protodata-protoc. **Version** : 0.9.11.**No license information found** -1. **Group** : io.spine.validation. **Name** : spine-validation-configuration. **Version** : 2.0.0-SNAPSHOT.99.**No license information found** -1. **Group** : io.spine.validation. **Name** : spine-validation-context. **Version** : 2.0.0-SNAPSHOT.99.**No license information found** -1. **Group** : io.spine.validation. **Name** : spine-validation-java. **Version** : 2.0.0-SNAPSHOT.99.**No license information found** -1. **Group** : io.spine.validation. **Name** : spine-validation-java-bundle. **Version** : 2.0.0-SNAPSHOT.99.**No license information found** -1. **Group** : io.spine.validation. **Name** : spine-validation-java-runtime. **Version** : 2.0.0-SNAPSHOT.99.**No license information found** -1. **Group** : io.spine.validation. **Name** : spine-validation-model. **Version** : 2.0.0-SNAPSHOT.99.**No license information found** +1. **Group** : io.spine.protodata. **Name** : protodata-codegen-java. **Version** : 0.11.4.**No license information found** +1. **Group** : io.spine.protodata. **Name** : protodata-fat-cli. **Version** : 0.11.4.**No license information found** +1. **Group** : io.spine.protodata. **Name** : protodata-protoc. **Version** : 0.11.4.**No license information found** +1. **Group** : io.spine.validation. **Name** : spine-validation-configuration. **Version** : 2.0.0-SNAPSHOT.104.**No license information found** +1. **Group** : io.spine.validation. **Name** : spine-validation-context. **Version** : 2.0.0-SNAPSHOT.104.**No license information found** +1. **Group** : io.spine.validation. **Name** : spine-validation-java. **Version** : 2.0.0-SNAPSHOT.104.**No license information found** +1. **Group** : io.spine.validation. **Name** : spine-validation-java-bundle. **Version** : 2.0.0-SNAPSHOT.104.**No license information found** +1. **Group** : io.spine.validation. **Name** : spine-validation-java-runtime. **Version** : 2.0.0-SNAPSHOT.104.**No license information found** +1. **Group** : io.spine.validation. **Name** : spine-validation-model. **Version** : 2.0.0-SNAPSHOT.104.**No license information found** 1. **Group** : javax.annotation. **Name** : javax.annotation-api. **Version** : 1.3.2. * **Project URL:** [http://jcp.org/en/jsr/detail?id=250](http://jcp.org/en/jsr/detail?id=250) * **License:** [CDDL + GPLv2 with classpath exception](https://github.com/javaee/javax.annotation/blob/master/LICENSE) @@ -4264,12 +4244,12 @@ This report was generated on **Sat Aug 26 16:31:39 WEST 2023** using [Gradle-Lic The dependencies distributed under several licenses, are used according their commercial-use-friendly license. -This report was generated on **Sat Aug 26 16:31:40 WEST 2023** 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). +This report was generated on **Thu Sep 21 16:26:43 WEST 2023** 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:spine-testutil-server:2.0.0-SNAPSHOT.157` +# Dependencies of `io.spine.tools:spine-testutil-server:2.0.0-SNAPSHOT.158` ## Runtime 1. **Group** : com.google.android. **Name** : annotations. **Version** : 4.1.1.4. @@ -4296,10 +4276,6 @@ This report was generated on **Sat Aug 26 16:31:40 WEST 2023** using [Gradle-Lic * **Project URL:** [https://errorprone.info/error_prone_annotations](https://errorprone.info/error_prone_annotations) * **License:** [Apache 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt) -1. **Group** : com.google.errorprone. **Name** : error_prone_type_annotations. **Version** : 2.21.1. - * **Project URL:** [https://errorprone.info/error_prone_type_annotations](https://errorprone.info/error_prone_type_annotations) - * **License:** [Apache 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt) - 1. **Group** : com.google.flogger. **Name** : flogger. **Version** : 0.7.4. * **Project URL:** [https://github.com/google/flogger](https://github.com/google/flogger) * **License:** [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0.txt) @@ -4413,7 +4389,7 @@ This report was generated on **Sat Aug 26 16:31:40 WEST 2023** using [Gradle-Lic * **Project URL:** [https://github.com/perfmark/perfmark](https://github.com/perfmark/perfmark) * **License:** [Apache 2.0](https://opensource.org/licenses/Apache-2.0) -1. **Group** : io.spine.validation. **Name** : spine-validation-java-runtime. **Version** : 2.0.0-SNAPSHOT.99.**No license information found** +1. **Group** : io.spine.validation. **Name** : spine-validation-java-runtime. **Version** : 2.0.0-SNAPSHOT.104.**No license information found** 1. **Group** : junit. **Name** : junit. **Version** : 4.13.1. * **Project URL:** [http://junit.org](http://junit.org) * **License:** [Eclipse Public License 1.0](http://www.eclipse.org/legal/epl-v10.html) @@ -4647,7 +4623,7 @@ This report was generated on **Sat Aug 26 16:31:40 WEST 2023** using [Gradle-Lic 1. **Group** : com.google.protobuf. **Name** : protobuf-kotlin. **Version** : 3.24.1. * **License:** [BSD-3-Clause](https://opensource.org/licenses/BSD-3-Clause) -1. **Group** : com.google.protobuf. **Name** : protoc. **Version** : 3.23.4. +1. **Group** : com.google.protobuf. **Name** : protoc. **Version** : 3.24.1. * **Project URL:** [https://developers.google.com/protocol-buffers/](https://developers.google.com/protocol-buffers/) * **License:** [BSD-3-Clause](https://opensource.org/licenses/BSD-3-Clause) * **License:** [The Apache Software License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt) @@ -4912,15 +4888,15 @@ This report was generated on **Sat Aug 26 16:31:40 WEST 2023** using [Gradle-Lic * **Project URL:** [https://github.com/perfmark/perfmark](https://github.com/perfmark/perfmark) * **License:** [Apache 2.0](https://opensource.org/licenses/Apache-2.0) -1. **Group** : io.spine.protodata. **Name** : protodata-codegen-java. **Version** : 0.9.6.**No license information found** -1. **Group** : io.spine.protodata. **Name** : protodata-fat-cli. **Version** : 0.9.11.**No license information found** -1. **Group** : io.spine.protodata. **Name** : protodata-protoc. **Version** : 0.9.11.**No license information found** -1. **Group** : io.spine.validation. **Name** : spine-validation-configuration. **Version** : 2.0.0-SNAPSHOT.99.**No license information found** -1. **Group** : io.spine.validation. **Name** : spine-validation-context. **Version** : 2.0.0-SNAPSHOT.99.**No license information found** -1. **Group** : io.spine.validation. **Name** : spine-validation-java. **Version** : 2.0.0-SNAPSHOT.99.**No license information found** -1. **Group** : io.spine.validation. **Name** : spine-validation-java-bundle. **Version** : 2.0.0-SNAPSHOT.99.**No license information found** -1. **Group** : io.spine.validation. **Name** : spine-validation-java-runtime. **Version** : 2.0.0-SNAPSHOT.99.**No license information found** -1. **Group** : io.spine.validation. **Name** : spine-validation-model. **Version** : 2.0.0-SNAPSHOT.99.**No license information found** +1. **Group** : io.spine.protodata. **Name** : protodata-codegen-java. **Version** : 0.11.4.**No license information found** +1. **Group** : io.spine.protodata. **Name** : protodata-fat-cli. **Version** : 0.11.4.**No license information found** +1. **Group** : io.spine.protodata. **Name** : protodata-protoc. **Version** : 0.11.4.**No license information found** +1. **Group** : io.spine.validation. **Name** : spine-validation-configuration. **Version** : 2.0.0-SNAPSHOT.104.**No license information found** +1. **Group** : io.spine.validation. **Name** : spine-validation-context. **Version** : 2.0.0-SNAPSHOT.104.**No license information found** +1. **Group** : io.spine.validation. **Name** : spine-validation-java. **Version** : 2.0.0-SNAPSHOT.104.**No license information found** +1. **Group** : io.spine.validation. **Name** : spine-validation-java-bundle. **Version** : 2.0.0-SNAPSHOT.104.**No license information found** +1. **Group** : io.spine.validation. **Name** : spine-validation-java-runtime. **Version** : 2.0.0-SNAPSHOT.104.**No license information found** +1. **Group** : io.spine.validation. **Name** : spine-validation-model. **Version** : 2.0.0-SNAPSHOT.104.**No license information found** 1. **Group** : javax.annotation. **Name** : javax.annotation-api. **Version** : 1.3.2. * **Project URL:** [http://jcp.org/en/jsr/detail?id=250](http://jcp.org/en/jsr/detail?id=250) * **License:** [CDDL + GPLv2 with classpath exception](https://github.com/javaee/javax.annotation/blob/master/LICENSE) @@ -5249,4 +5225,4 @@ This report was generated on **Sat Aug 26 16:31:40 WEST 2023** using [Gradle-Lic The dependencies distributed under several licenses, are used according their commercial-use-friendly license. -This report was generated on **Sat Aug 26 16:31:40 WEST 2023** 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). \ No newline at end of file +This report was generated on **Thu Sep 21 16:26:44 WEST 2023** 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). \ No newline at end of file diff --git a/pom.xml b/pom.xml index fad569d65b..62b25ba4a4 100644 --- a/pom.xml +++ b/pom.xml @@ -10,7 +10,7 @@ all modules and does not describe the project structure per-subproject. --> io.spine spine-core-java -2.0.0-SNAPSHOT.157 +2.0.0-SNAPSHOT.158 2015 @@ -62,13 +62,13 @@ all modules and does not describe the project structure per-subproject. io.spine spine-base - 2.0.0-SNAPSHOT.188 + 2.0.0-SNAPSHOT.189 compile io.spine spine-base-types - 2.0.0-SNAPSHOT.124 + 2.0.0-SNAPSHOT.125 compile @@ -80,13 +80,13 @@ all modules and does not describe the project structure per-subproject. io.spine spine-flogger-grpc-context - 2.0.0-SNAPSHOT.206 + 2.0.0-SNAPSHOT.215 compile io.spine spine-logging - 2.0.0-SNAPSHOT.206 + 2.0.0-SNAPSHOT.215 compile @@ -98,7 +98,7 @@ all modules and does not describe the project structure per-subproject. io.spine.validation spine-validation-java-runtime - 2.0.0-SNAPSHOT.99 + 2.0.0-SNAPSHOT.104 compile @@ -186,7 +186,7 @@ all modules and does not describe the project structure per-subproject. com.google.protobuf protoc - 3.23.4 + 3.24.1 com.puppycrawl.tools @@ -201,17 +201,17 @@ all modules and does not describe the project structure per-subproject. io.grpc protoc-gen-grpc-java - 1.56.1 + 1.57.2 io.spine.protodata protodata-fat-cli - 0.9.11 + 0.11.4 io.spine.protodata protodata-protoc - 0.9.11 + 0.11.4 io.spine.tools @@ -221,43 +221,43 @@ all modules and does not describe the project structure per-subproject. io.spine.tools spine-mc-java-annotation - 2.0.0-SNAPSHOT.168 + 2.0.0-SNAPSHOT.170 io.spine.tools spine-mc-java-base - 2.0.0-SNAPSHOT.168 + 2.0.0-SNAPSHOT.170 io.spine.tools spine-mc-java-checks - 2.0.0-SNAPSHOT.168 + 2.0.0-SNAPSHOT.170 provided io.spine.tools spine-mc-java-plugins - 2.0.0-SNAPSHOT.168 + 2.0.0-SNAPSHOT.170 io.spine.tools spine-mc-java-rejection - 2.0.0-SNAPSHOT.168 + 2.0.0-SNAPSHOT.170 io.spine.tools spine-tool-base - 2.0.0-SNAPSHOT.182 + 2.0.0-SNAPSHOT.184 io.spine.validation spine-validation-java - 2.0.0-SNAPSHOT.99 + 2.0.0-SNAPSHOT.104 io.spine.validation spine-validation-java-bundle - 2.0.0-SNAPSHOT.99 + 2.0.0-SNAPSHOT.104 net.sourceforge.pmd diff --git a/server/src/main/java/io/spine/server/entity/AbstractEntity.java b/server/src/main/java/io/spine/server/entity/AbstractEntity.java index db1e50f07e..3855adf988 100644 --- a/server/src/main/java/io/spine/server/entity/AbstractEntity.java +++ b/server/src/main/java/io/spine/server/entity/AbstractEntity.java @@ -104,8 +104,12 @@ public abstract class AbstractEntity> * *

Assigned either through the {@linkplain #AbstractEntity(Object) constructor which * accepts the ID}, or via {@link #setId(Object)}. Is never {@code null}. + * + * @apiNote The field is named with the underscore prefix to avoid + * name clash with the extension property name in Kotlin. */ - private @MonotonicNonNull I id; + @SuppressWarnings("FieldNamingConvention") // See `apiNote` above. + private @MonotonicNonNull I _id; /** Cached version of string ID. */ @LazyInit @@ -117,14 +121,26 @@ public abstract class AbstractEntity> *

Lazily initialized to the {@linkplain #defaultState() default state}, * if {@linkplain #state() accessed} before {@linkplain #setState(EntityState)} * initialization}. + * + * @apiNote The field is named with the underscore prefix to avoid + * name clash with the extension property name in Kotlin. */ + @SuppressWarnings("FieldNamingConvention") // See `apiNote` above. @LazyInit - private volatile @MonotonicNonNull S state; + private volatile @MonotonicNonNull S _state; - /** The version of the entity. */ - private volatile Version version; + /** + * The version of the entity. + * + * @apiNote The field is named with the underscore prefix to avoid + * name clash with the extension property name in Kotlin. + */ + @SuppressWarnings("FieldNamingConvention") // See `apiNote` above. + private volatile Version _version; - /** The lifecycle flags of the entity. */ + /** + * The lifecycle flags of the entity. + */ private volatile @MonotonicNonNull LifecycleFlags lifecycleFlags; /** @@ -135,9 +151,16 @@ public abstract class AbstractEntity> */ private volatile boolean lifecycleFlagsChanged; + /** + * A context for the logging operations performed by the entity in a receptor. + * + *

This field is {@code null}, if the entity is not being accessed through a receptor. + * + * @see #beforeInvoke(Receptor) + * @see #afterInvoke(Receptor) + */ private @Nullable AutoCloseable loggingContext = null; - /** * Creates a new instance with the zero version and cleared lifecycle flags. * @@ -163,12 +186,12 @@ protected AbstractEntity(I id) { @SuppressWarnings("InstanceVariableUsedBeforeInitialized") // checked in `if` final void setId(I id) { checkNotNull(id); - if (this.id != null) { - checkState(id.equals(this.id), + if (this._id != null) { + checkState(id.equals(this._id), "Entity ID already assigned to `%s`." + - " Attempted to reassign to `%s`.", this.id, id); + " Attempted to reassign to `%s`.", this._id, id); } - this.id = id; + this._id = id; } /** @@ -188,7 +211,7 @@ protected AbstractEntity(I id, Function defaultState) { @Override public I id() { - return checkNotNull(id); + return checkNotNull(_id); } /** @@ -202,13 +225,13 @@ public I id() { @Override public final S state() { ensureAccessToState(); - var result = state; + var result = _state; if (result == null) { synchronized (this) { - result = state; + result = _state; if (result == null) { - state = defaultState(); - result = state; + _state = defaultState(); + result = _state; } } } @@ -264,7 +287,7 @@ public EntityClass modelClass() { * Sets the entity state to the passed value. */ void setState(S newState) { - this.state = checkNotNull(newState); + this._state = checkNotNull(newState); } /** @@ -493,7 +516,7 @@ protected int versionNumber() { final void updateVersion(Version newVersion) { checkNotNull(newVersion); check(newVersion); - if (version.equals(newVersion)) { + if (_version.equals(newVersion)) { return; } var currentVersionNumber = versionNumber(); @@ -525,7 +548,7 @@ void incrementState(S newState) { } void setVersion(Version version) { - this.version = version; + this._version = version; } private Version incrementedVersion() { @@ -540,7 +563,7 @@ private Version incrementedVersion() { */ @Override public Version version() { - return version; + return _version; } /** @@ -550,14 +573,14 @@ public Version version() { */ int incrementVersion() { setVersion(incrementedVersion()); - return version.getNumber(); + return _version.getNumber(); } /** * Obtains timestamp of the entity version. */ public Timestamp whenModified() { - return version.getTimestamp(); + return _version.getTimestamp(); } /** diff --git a/server/src/main/kotlin/io/spine/server/ServerEnvironmentExtensions.kt b/server/src/main/kotlin/io/spine/server/ServerEnvironmentExts.kt similarity index 89% rename from server/src/main/kotlin/io/spine/server/ServerEnvironmentExtensions.kt rename to server/src/main/kotlin/io/spine/server/ServerEnvironmentExts.kt index 55a636b511..3b6fe330b4 100644 --- a/server/src/main/kotlin/io/spine/server/ServerEnvironmentExtensions.kt +++ b/server/src/main/kotlin/io/spine/server/ServerEnvironmentExts.kt @@ -1,5 +1,5 @@ /* - * Copyright 2022, TeamDev. All rights reserved. + * Copyright 2023, 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. @@ -44,8 +44,9 @@ import io.spine.environment.EnvironmentType * } * ``` * - * @apiNote This function allows to avoid calling [ServerEnvironment.when] from Kotlin, which - * requires backticking `when` because it is a reserved word. + * ### API NOTE + * This function allows to avoid calling [ServerEnvironment.when] from Kotlin, which + * requires backticking `"when"` because it is a reserved word. */ public inline fun > under(block: ServerEnvironment.TypeConfigurator.() -> Unit) { diff --git a/server/src/main/kotlin/io/spine/server/entity/TransactionalEntityExtensions.kt b/server/src/main/kotlin/io/spine/server/entity/TransactionalEntityExts.kt similarity index 72% rename from server/src/main/kotlin/io/spine/server/entity/TransactionalEntityExtensions.kt rename to server/src/main/kotlin/io/spine/server/entity/TransactionalEntityExts.kt index 6464edb5dc..8882b91199 100644 --- a/server/src/main/kotlin/io/spine/server/entity/TransactionalEntityExtensions.kt +++ b/server/src/main/kotlin/io/spine/server/entity/TransactionalEntityExts.kt @@ -1,5 +1,5 @@ /* - * Copyright 2022, TeamDev. All rights reserved. + * Copyright 2023, 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. @@ -29,6 +29,7 @@ package io.spine.server.entity import io.spine.base.EntityState +import io.spine.core.Version import io.spine.validate.ValidatingBuilder /** @@ -95,3 +96,45 @@ public fun , S : EntityState, B : Validat val builder = builder() block(builder) } + +/** + * Obtains the entity identifier. + * + * This is a shortcut for `id()`. + * + * @param I the type of the entity identifiers. + * @param E the type of the transactional entity. + * @param S the type of the entity state. + * @param B the type of the entity state builder. + */ +public val , S : EntityState, B : ValidatingBuilder> + E.id: I + get() = id() + +/** + * Obtains the entity version. + * + * This is a shortcut for `version()`. + * + * @param I the type of the entity identifiers. + * @param E the type of the transactional entity. + * @param S the type of the entity state. + * @param B the type of the entity state builder. + */ +public val , S : EntityState, B : ValidatingBuilder> + E.version: Version + get() = version() + +/** + * Obtains the entity state. + * + * This is a shortcut for `state()`. + * + * @param I the type of the entity identifiers. + * @param E the type of the transactional entity. + * @param S the type of the entity state. + * @param B the type of the entity state builder. + */ +public val , S : EntityState, B : ValidatingBuilder> + E.state: S + get() = state() diff --git a/server/src/test/kotlin/io/spine/server/entity/TransactionalEntityExtensionsSpec.kt b/server/src/test/kotlin/io/spine/server/entity/TransactionalEntityExtensionsSpec.kt index 877fc17951..b4c3bc1b38 100644 --- a/server/src/test/kotlin/io/spine/server/entity/TransactionalEntityExtensionsSpec.kt +++ b/server/src/test/kotlin/io/spine/server/entity/TransactionalEntityExtensionsSpec.kt @@ -37,17 +37,29 @@ internal class TransactionalEntityExtensionsSpec { @Test fun `add 'update' block handler for passing properties to 'builder'`() { val entity = createEntity() + val prevVersion = entity.version + val prevId = entity.id val str = randomString() - entity.applyUpdate(str) + + entity.doUpdate(str) + entity.value() shouldBe str + entity.version.isIncrement(prevVersion) shouldBe true + entity.id shouldBe prevId } @Test fun `add 'alter' block handler for passing properties to 'builder'`() { val entity = createEntity() + val prevVersion = entity.version + val prevId = entity.id val str = randomString() - entity.txApplyAlteration(str) + + entity.doAlter(str) + entity.value() shouldBe str + entity.version.isIncrement(prevVersion) shouldBe true + entity.id shouldBe prevId } } @@ -64,8 +76,8 @@ private fun createEntity() : Fixture { } /** - * An entity which uses the [TransactionalEntity] extension functions in its [applyUpdate] - * and [applyAlteration] methods. + * An entity which uses the [TransactionalEntity] extension functions in its [doUpdate] + * and [doAlter] methods. */ private class Fixture : TransactionalEntity() { @@ -73,21 +85,21 @@ private class Fixture : TransactionalEntity