Skip to content

Commit ca2d1c6

Browse files
Merge pull request #53 from SpineEventEngine/bump-core-jvm-and-validation
Update local dependencies
2 parents fe1bdf2 + 8027bb3 commit ca2d1c6

File tree

36 files changed

+244
-190
lines changed

36 files changed

+244
-190
lines changed

api/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
import io.spine.dependency.lib.Aedile
2828
import io.spine.dependency.lib.Jackson
2929
import io.spine.dependency.local.Base
30-
import io.spine.dependency.local.CoreJava
30+
import io.spine.dependency.local.CoreJvm
3131
import io.spine.dependency.local.Logging
3232
import io.spine.dependency.local.Reflect
3333
import io.spine.dependency.local.ToolBase
@@ -43,7 +43,7 @@ dependencies {
4343
listOf(
4444
Base.lib,
4545
Base.format,
46-
CoreJava.server,
46+
CoreJvm.server,
4747
ToolBase.lib,
4848
ToolBase.psiJava
4949
).forEach {

api/src/main/kotlin/io/spine/tools/compiler/plugin/View.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import io.spine.server.projection.ProjectionRepository
3535
import io.spine.server.projection.model.ProjectionClass
3636
import io.spine.server.route.EventRoute
3737
import io.spine.server.route.EventRouting
38-
import io.spine.validate.ValidatingBuilder
38+
import io.spine.validation.ValidatingBuilder
3939
import kotlin.reflect.KClass
4040

4141
/**

api/src/test/kotlin/io/spine/tools/compiler/ast/FilePatternsSpec.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import io.spine.tools.compiler.ast.FilePatternFactory.infix
3535
import io.spine.tools.compiler.ast.FilePatternFactory.prefix
3636
import io.spine.tools.compiler.ast.FilePatternFactory.regex
3737
import io.spine.tools.compiler.ast.FilePatternFactory.suffix
38-
import io.spine.validate.ValidationError
38+
import io.spine.validation.ValidationError
3939
import org.junit.jupiter.api.DisplayName
4040
import org.junit.jupiter.api.Nested
4141
import org.junit.jupiter.api.Test

api/src/test/kotlin/io/spine/tools/compiler/ast/FileSpec.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
package io.spine.tools.compiler.ast
2828

29-
import io.spine.validate.ValidationException
29+
import io.spine.validation.ValidationException
3030
import org.junit.jupiter.api.DisplayName
3131
import org.junit.jupiter.api.Test
3232
import org.junit.jupiter.api.assertDoesNotThrow

backend/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import io.spine.dependency.lib.AutoService
2828
import io.spine.dependency.lib.Jackson
2929
import io.spine.dependency.lib.Jackson.DataFormat
3030
import io.spine.dependency.local.Base
31-
import io.spine.dependency.local.CoreJava
31+
import io.spine.dependency.local.CoreJvm
3232
import io.spine.dependency.local.ToolBase
3333
import io.spine.dependency.test.JUnit
3434
import io.spine.gradle.publish.CheckVersionIncrement
@@ -44,7 +44,7 @@ plugins {
4444

4545
dependencies {
4646
api(AutoService.annotations)
47-
api(CoreJava.server)
47+
api(CoreJvm.server)
4848
api(ToolBase.lib)
4949
api(project(":api"))
5050

backend/src/main/kotlin/io/spine/tools/compiler/backend/Pipeline.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ import io.spine.tools.compiler.render.SourceFileSet
5656
import io.spine.tools.compiler.settings.SettingsDirectory
5757
import io.spine.tools.compiler.type.TypeSystem
5858
import io.spine.type.parse
59-
import io.spine.validate.NonValidated
59+
import io.spine.validation.NonValidated
6060
import kotlin.io.path.Path
6161
import kotlin.io.path.exists
6262
import kotlin.io.path.inputStream
@@ -84,7 +84,7 @@ import kotlin.io.path.inputStream
8484
* the `PipelineParameters` message type. This is to allow tests to pass only some of
8585
* the parameters if plugins under the test do not need them all.
8686
* The production mode of the execution requires a `@Validated` instance of `PipelineParameters`.
87-
* @param plugins The code generation plugins to be applied to the pipeline in addition to
87+
* @param additionalPlugins The code generation plugins to be applied to the pipeline in addition to
8888
* those specified via [params][PipelineParameters.getPluginClassNameList].
8989
* @property descriptorFilter The predicate to accept descriptors during parsing of the [request].
9090
* The default value accepts all the descriptors.
@@ -95,7 +95,7 @@ import kotlin.io.path.inputStream
9595
public class Pipeline(
9696
public val id: String = generateId(),
9797
public val params: @NonValidated PipelineParameters,
98-
@VisibleForTesting plugins: List<Plugin> = emptyList(),
98+
@VisibleForTesting additionalPlugins: List<Plugin> = emptyList(),
9999
private val descriptorFilter: DescriptorFilter = { true }
100100
) : WithLogging {
101101

@@ -126,7 +126,7 @@ public class Pipeline(
126126
}
127127

128128
/**
129-
* The directory to which setting files for the [plugins] should be stored.
129+
* The directory to which setting files for the [additionalPlugins] should be stored.
130130
*/
131131
public val settings: SettingsDirectory by lazy {
132132
val dir = params.settings.toPath()
@@ -141,7 +141,7 @@ public class Pipeline(
141141
* the constructor parameter.
142142
*/
143143
public val plugins: List<Plugin> by lazy {
144-
val combined = loadPlugins(params.pluginClassNameList) + plugins
144+
val combined = loadPlugins(params.pluginClassNameList) + additionalPlugins
145145
combined
146146
}
147147

@@ -279,7 +279,7 @@ public class Pipeline(
279279
}
280280

281281
/**
282-
* Assembles the `Code Generation` context by applying given [plugins].
282+
* Assembles the `Code Generation` context by applying given [additionalPlugins].
283283
*/
284284
private fun assembleCodegenContext(): CodegenContext =
285285
CodeGenerationContext(id, typeSystem) {

backend/src/test/kotlin/io/spine/tools/compiler/backend/PipelineSpec.kt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ internal class PipelineSpec {
154154
fun `render enhanced code`() {
155155
Pipeline(
156156
params = params,
157-
plugins = listOf(TestPlugin(), RenderingTestbed(renderer)),
157+
additionalPlugins = listOf(TestPlugin(), RenderingTestbed(renderer)),
158158
)()
159159
assertTextIn(targetFile).isEqualTo("_Journey worth taking")
160160
}
@@ -163,7 +163,7 @@ internal class PipelineSpec {
163163
fun `generate new files`() {
164164
Pipeline(
165165
params = params,
166-
plugins = listOf(TestPlugin(), RenderingTestbed(InternalAccessRenderer())),
166+
additionalPlugins = listOf(TestPlugin(), RenderingTestbed(InternalAccessRenderer())),
167167
)()
168168
val newClass = targetRoot.resolve("$SRC_DIR_NO_IO/JourneyInternal.java")
169169
assertExists(newClass)
@@ -176,7 +176,7 @@ internal class PipelineSpec {
176176
write(path, "foo bar")
177177
Pipeline(
178178
params = params,
179-
plugins = listOf(TestPlugin(), RenderingTestbed(DeletingRenderer()))
179+
additionalPlugins = listOf(TestPlugin(), RenderingTestbed(DeletingRenderer()))
180180
)()
181181
assertDoesNotExist(targetRoot / path)
182182
}
@@ -229,7 +229,7 @@ internal class PipelineSpec {
229229
""".trimIndent())
230230
Pipeline(
231231
params = params,
232-
plugins = listOf(RenderingTestbed(
232+
additionalPlugins = listOf(RenderingTestbed(
233233
renderers = listOf(
234234
AnnotationInsertionPointPrinter(),
235235
NullableAnnotationRenderer()
@@ -318,7 +318,7 @@ internal class PipelineSpec {
318318
}
319319
Pipeline(
320320
params = local,
321-
plugins = listOf(TestPlugin(), RenderingTestbed(InternalAccessRenderer())),
321+
additionalPlugins = listOf(TestPlugin(), RenderingTestbed(InternalAccessRenderer())),
322322
)()
323323

324324
val path = "$SRC_DIR_NO_IO/JourneyInternal.java"
@@ -335,7 +335,7 @@ internal class PipelineSpec {
335335
fun `copy all sources into the new destination`() {
336336
Pipeline(
337337
params = params,
338-
plugins = listOf(TestPlugin(), RenderingTestbed(NoOpRenderer())),
338+
additionalPlugins = listOf(TestPlugin(), RenderingTestbed(NoOpRenderer())),
339339
)()
340340
assertExists(targetFile)
341341
}
@@ -363,7 +363,7 @@ internal class PipelineSpec {
363363

364364
Pipeline(
365365
params = local,
366-
plugins = listOf(
366+
additionalPlugins = listOf(
367367
TestPlugin(),
368368
RenderingTestbed(NoOpRenderer())
369369
)
@@ -403,7 +403,7 @@ internal class PipelineSpec {
403403

404404
Pipeline(
405405
params = params,
406-
plugins = listOf(
406+
additionalPlugins = listOf(
407407
TestPlugin(),
408408
RenderingTestbed(PlainStringRenderer())
409409
),
@@ -436,7 +436,7 @@ internal class PipelineSpec {
436436
}
437437
Pipeline(
438438
params = local,
439-
plugins = listOf(
439+
additionalPlugins = listOf(
440440
TestPlugin(),
441441
RenderingTestbed(listOf(
442442
JavaGenericInsertionPointPrinter(),
@@ -461,7 +461,7 @@ internal class PipelineSpec {
461461
val viewClass = DeletedTypeView::class.java
462462
val pipeline = Pipeline(
463463
params = params,
464-
plugins = listOf(
464+
additionalPlugins = listOf(
465465
DocilePlugin(
466466
views = setOf(viewClass),
467467
viewRepositories = setOf(DeletedTypeRepository())
@@ -478,7 +478,7 @@ internal class PipelineSpec {
478478
fun `expose 'codegenContext' property for testing purposes`() {
479479
val pipeline = Pipeline(
480480
params = params,
481-
plugins = listOf(TestPlugin(), RenderingTestbed(renderer)),
481+
additionalPlugins = listOf(TestPlugin(), RenderingTestbed(renderer)),
482482
)
483483
var codegenContext: CodegenContext? = null
484484
try {

backend/src/test/kotlin/io/spine/tools/compiler/render/InsertionPointSpec.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ class InsertionPointsSpec {
107107
params = pipelineParams {
108108
withRoots(input, output)
109109
},
110-
plugins = listOf(RenderingTestbed(
110+
additionalPlugins = listOf(RenderingTestbed(
111111
renderers = listOf(
112112
VariousKtInsertionPointsPrinter(),
113113
CatOutOfTheBoxEmancipator(),

build.gradle.kts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@
2828

2929
import io.spine.dependency.lib.Grpc
3030
import io.spine.dependency.local.Base
31-
import io.spine.dependency.local.CoreJava
31+
import io.spine.dependency.local.CoreJvm
3232
import io.spine.dependency.local.Reflect
3333
import io.spine.dependency.local.TestLib
34+
import io.spine.dependency.local.Validation
3435
import io.spine.gradle.RunBuild
3536
import io.spine.gradle.publish.PublishingRepos
3637
import io.spine.gradle.publish.SpinePublishing
@@ -108,7 +109,9 @@ allprojects {
108109
Reflect.lib,
109110
Base.lib,
110111
TestLib.lib,
111-
CoreJava.server
112+
CoreJvm.server,
113+
Validation.runtime,
114+
Validation.javaBundle
112115
)
113116
}
114117
}

buildSrc/src/main/kotlin/io/spine/dependency/lib/Protobuf.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ package io.spine.dependency.lib
3333
)
3434
object Protobuf {
3535
const val group = "com.google.protobuf"
36-
const val version = "4.33.1"
36+
const val version = "4.33.2"
3737

3838
/**
3939
* The Java library with Protobuf data types.

0 commit comments

Comments
 (0)