Skip to content

Commit 60aced2

Browse files
committed
Polish "Fix kotlin-server sample app"
Remove unused dependency and version from context-propogation as it is specified by the Spring Boot dependencies bom. Signed-off-by: onobc <chris.bono@gmail.com>
1 parent 43b9c63 commit 60aced2

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

samples/grpc-server-kotlin/build.gradle

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ plugins {
22
id 'java'
33
id 'org.springframework.boot' version '4.0.0-RC2'
44
id 'io.spring.dependency-management' version '1.1.7'
5-
// id 'org.graalvm.buildtools.native' version '0.10.3'
65
id 'com.google.protobuf' version '0.9.4'
76
id 'org.jetbrains.kotlin.jvm' version '2.2.21'
87
id 'org.jetbrains.kotlin.plugin.spring' version '2.2.21'
@@ -35,13 +34,9 @@ dependencies {
3534

3635
implementation 'org.springframework.grpc:spring-grpc-spring-boot-starter'
3736
implementation 'org.springframework.boot:spring-boot-starter-actuator'
38-
implementation("io.micrometer:context-propagation:1.2.0")
39-
implementation 'io.grpc:grpc-services'
40-
implementation "io.grpc:grpc-kotlin-stub:${kotlinStubVersion}"
41-
42-
implementation "org.jetbrains.kotlin:kotlin-reflect"
4337
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core'
4438
implementation "io.grpc:grpc-kotlin-stub:${kotlinStubVersion}"
39+
implementation("io.micrometer:context-propagation")
4540

4641
testImplementation 'org.springframework.grpc:spring-grpc-test-spring-boot-autoconfigure'
4742
testImplementation 'org.springframework.boot:spring-boot-starter-test'

samples/grpc-server-kotlin/pom.xml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@
6464
<artifactId>grpc-kotlin-stub</artifactId>
6565
<version>${grpc.kotlin.version}</version>
6666
</dependency>
67+
<dependency>
68+
<groupId>io.micrometer</groupId>
69+
<artifactId>context-propagation</artifactId>
70+
</dependency>
6771

6872
<dependency>
6973
<groupId>org.springframework.grpc</groupId>
@@ -75,12 +79,6 @@
7579
<artifactId>spring-boot-starter-test</artifactId>
7680
<scope>test</scope>
7781
</dependency>
78-
<dependency>
79-
<groupId>io.micrometer</groupId>
80-
<artifactId>context-propagation</artifactId>
81-
<version>1.2.0</version>
82-
</dependency>
83-
8482
<dependency>
8583
<!-- for testing unix domain sockets -->
8684
<groupId>io.netty</groupId>

0 commit comments

Comments
 (0)