Skip to content

Commit 3f7520f

Browse files
Merge pull request #198 from SpineEventEngine/bump-protobuf-etc
Bump Protobuf and other dependencies
2 parents 7c5f391 + c7250f7 commit 3f7520f

36 files changed

Lines changed: 1030 additions & 931 deletions

File tree

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,19 +55,28 @@
5555
!.idea/codeStyles/
5656
!.idea/copyright/
5757

58+
# Ignore IDEA config files under `tests`
59+
/tests/.idea/**
60+
5861
# Gradle interim configs
5962
**/.gradle/**
6063

6164
# Temp directory for Gradle TestKit runners
6265
**/.gradle-test-kit/**
6366

67+
# Integration test log files
68+
/tests/_out/**
69+
6470
# Generated source code
6571
**/generated/**
6672
**/*.pb.dart
6773
**/*.pbenum.dart
6874
**/*.pbserver.dart
6975
**/*.pbjson.dart
7076

77+
# Generated source code with custom path under `tests`
78+
/tests/**/proto-gen/**
79+
7180
# Gradle build files
7281
**/build/**
7382
!**/src/**/build/**

build.gradle.kts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,17 @@ buildscript {
5454
configurations {
5555
all {
5656
exclude(group = "io.spine", module = "spine-logging-backend")
57-
5857
resolutionStrategy {
58+
val configuration = this@all
59+
val strategy = this@resolutionStrategy
60+
io.spine.dependency.build.Ksp
61+
.forceArtifacts(project, configuration, strategy)
62+
io.spine.dependency.lib.Kotlin
63+
.forceArtifacts(project, configuration, strategy)
64+
io.spine.dependency.lib.Kotlin.StdLib
65+
.forceArtifacts(project, configuration, strategy)
5966
force(
67+
io.spine.dependency.lib.Kotlin.bom,
6068
io.spine.dependency.local.Base.libForBuildScript,
6169
io.spine.dependency.local.Reflect.lib,
6270
toolBase.lib,
@@ -72,9 +80,9 @@ buildscript {
7280
}
7381
}
7482
dependencies {
75-
classpath(mcJava.pluginLib)
7683
classpath(enforcedPlatform(io.spine.dependency.kotlinx.Coroutines.bom))
7784
classpath(enforcedPlatform(io.spine.dependency.lib.Grpc.bom))
85+
classpath(mcJava.pluginLib)
7886
}
7987
}
8088

buildSrc/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ val grGitVersion = "4.1.1"
7575
* This version may change from the [version of Kotlin][io.spine.dependency.lib.Kotlin.version]
7676
* used by the project.
7777
*/
78-
val kotlinEmbeddedVersion = "2.1.20"
78+
val kotlinEmbeddedVersion = "2.1.21"
7979

8080
/**
8181
* The version of Guava used in `buildSrc`.
@@ -103,7 +103,7 @@ val errorPronePluginVersion = "4.2.0"
103103
* @see <a href="https://github.com/google/protobuf-gradle-plugin/releases">
104104
* Protobuf Gradle Plugins Releases</a>
105105
*/
106-
val protobufPluginVersion = "0.9.4"
106+
val protobufPluginVersion = "0.9.5"
107107

108108
/**
109109
* The version of Dokka Gradle Plugins.

buildSrc/src/main/kotlin/BuildExtensions.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ fun ScriptHandlerScope.standardSpineSdkRepositories() {
7373
repositories.standardToSpineSdk()
7474
}
7575

76+
/**
77+
* Shortcut to [Protobuf] dependency object for using under `buildScript`.
78+
*/
79+
val ScriptHandlerScope.protobuf: Protobuf
80+
get() = Protobuf
81+
7682
/**
7783
* Shortcut to [McJava] dependency object for using under `buildScript`.
7884
*/

buildSrc/src/main/kotlin/io/spine/dependency/build/Ksp.kt

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,31 @@
2626

2727
package io.spine.dependency.build
2828

29+
import io.spine.dependency.Dependency
30+
2931
/**
3032
* Kotlin Symbol Processing API.
3133
*
3234
* @see <a href="https://github.com/google/ksp">KSP GitHub repository</a>
3335
*/
34-
@Suppress("ConstPropertyName", "unused")
35-
object Ksp {
36-
const val version = "2.1.20-2.0.0"
36+
@Suppress("unused")
37+
object Ksp : Dependency() {
38+
override val version = "2.1.21-2.0.1"
39+
override val group = "com.google.devtools.ksp"
40+
3741
const val id = "com.google.devtools.ksp"
38-
const val group = "com.google.devtools.ksp"
39-
const val symbolProcessingApi = "$group:symbol-processing-api:$version"
40-
const val symbolProcessing = "$group:symbol-processing:$version"
41-
const val symbolProcessingAaEmb = "$group:symbol-processing-aa-embeddable:$version"
42-
const val symbolProcessingCommonDeps = "$group:symbol-processing-common-deps:$version"
43-
const val gradlePlugin = "$group:symbol-processing-gradle-plugin:$version"
42+
43+
val symbolProcessingApi = "$group:symbol-processing-api"
44+
val symbolProcessing = "$group:symbol-processing"
45+
val symbolProcessingAaEmb = "$group:symbol-processing-aa-embeddable"
46+
val symbolProcessingCommonDeps = "$group:symbol-processing-common-deps"
47+
val gradlePlugin = "$group:symbol-processing-gradle-plugin"
48+
49+
override val modules = listOf(
50+
symbolProcessingApi,
51+
symbolProcessing,
52+
symbolProcessingAaEmb,
53+
symbolProcessingCommonDeps,
54+
gradlePlugin,
55+
)
4456
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ object Kotlin : DependencyWithBom() {
3939
* depend on Gradle and the version of embedded Kotlin.
4040
*/
4141
@Suppress("MemberVisibilityCanBePrivate") // used directly from the outside.
42-
const val runtimeVersion = "2.1.20"
42+
const val runtimeVersion = "2.1.21"
4343

4444
override val version = runtimeVersion
4545
override val group = "org.jetbrains.kotlin"
@@ -49,7 +49,7 @@ object Kotlin : DependencyWithBom() {
4949
* This is the version of
5050
* [Kotlin embedded into Gradle](https://docs.gradle.org/current/userguide/compatibility.html#kotlin).
5151
*/
52-
const val embeddedVersion = "2.1.20"
52+
const val embeddedVersion = "2.1.21"
5353

5454
/**
5555
* The version of the JetBrains annotations library, which is a transitive

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 = "3.25.7"
36+
const val version = "4.31.0"
3737

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

buildSrc/src/main/kotlin/io/spine/dependency/local/Base.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ package io.spine.dependency.local
3333
*/
3434
@Suppress("ConstPropertyName")
3535
object Base {
36-
const val version = "2.0.0-SNAPSHOT.317"
36+
const val version = "2.0.0-SNAPSHOT.320"
3737
const val versionForBuildScript = "2.0.0-SNAPSHOT.317"
3838
const val group = Spine.group
3939
const val artifact = "spine-base"

buildSrc/src/main/kotlin/io/spine/dependency/local/BaseTypes.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ package io.spine.dependency.local
3333
*/
3434
@Suppress("ConstPropertyName")
3535
object BaseTypes {
36-
const val version = "2.0.0-SNAPSHOT.200"
36+
const val version = "2.0.0-SNAPSHOT.210"
3737
const val group = Spine.group
3838
const val artifact = "spine-base-types"
3939
const val lib = "$group:$artifact:$version"

buildSrc/src/main/kotlin/io/spine/dependency/local/CoreJava.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ package io.spine.dependency.local
3434
@Suppress("ConstPropertyName", "unused")
3535
object CoreJava {
3636
const val group = Spine.group
37-
const val version = "2.0.0-SNAPSHOT.313"
37+
const val version = "2.0.0-SNAPSHOT.316"
3838

3939
const val coreArtifact = "spine-core"
4040
const val clientArtifact = "spine-client"

0 commit comments

Comments
 (0)