Skip to content

Commit bc7e4ed

Browse files
authored
Merge branch 'master' into kt_jvm_proto_helper
2 parents 656f83b + 43256eb commit bc7e4ed

File tree

25 files changed

+137
-94
lines changed

25 files changed

+137
-94
lines changed

.bazelrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
build --cxxopt=-std=c++14 --host_cxxopt=-std=c++14

.bazelversion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5.1.0
1+
6.3.2

CHANGELOG.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,36 @@
11
## Change Log
22

3+
### 1.4.0
4+
5+
#### Changes
6+
7+
* Bump org.gradle.test-retry from 1.5.2 to 1.5.4 by @dependabot in https://github.com/grpc/grpc-kotlin/pull/413
8+
* Bump uraimo/run-on-arch-action from 2.0.5 to 2.5.1 by @dependabot in https://github.com/grpc/grpc-kotlin/pull/404
9+
* Bump actions/cache from 1 to 3 by @dependabot in https://github.com/grpc/grpc-kotlin/pull/406
10+
* Bump actions/checkout from 1 to 3 by @dependabot in https://github.com/grpc/grpc-kotlin/pull/408
11+
* Bump actions/setup-java from 2 to 3 by @dependabot in https://github.com/grpc/grpc-kotlin/pull/409
12+
* Bump org.junit.jupiter:junit-jupiter-engine from 5.8.2 to 5.10.0 by @dependabot in https://github.com/grpc/grpc-kotlin/pull/405
13+
* Bump com.google.jimfs:jimfs from 1.2 to 1.3.0 by @dependabot in https://github.com/grpc/grpc-kotlin/pull/407
14+
* Bump com.google.protobuf from 0.8.18 to 0.9.4 by @dependabot in https://github.com/grpc/grpc-kotlin/pull/412
15+
* Bump org.jetbrains.dokka from 1.6.21 to 1.8.20 by @dependabot in https://github.com/grpc/grpc-kotlin/pull/416
16+
* Bump jvm from 1.9.0 to 1.9.10 in /examples by @dependabot in https://github.com/grpc/grpc-kotlin/pull/410
17+
* Bump com.google.truth.extensions:truth-proto-extension from 1.1.3 to 1.1.5 by @dependabot in https://github.com/grpc/grpc-kotlin/pull/419
18+
* Bump io.github.gradle-nexus.publish-plugin from 1.1.0 to 1.3.0 by @dependabot in https://github.com/grpc/grpc-kotlin/pull/418
19+
* Bump org.mockito:mockito-core from 4.5.1 to 4.11.0 by @dependabot in https://github.com/grpc/grpc-kotlin/pull/422
20+
* Bump com.google.protobuf:protobuf-gradle-plugin from 0.8.18 to 0.9.4 by @dependabot in https://github.com/grpc/grpc-kotlin/pull/421
21+
* Bump org.jetbrains.dokka from 1.8.20 to 1.9.0 by @dependabot in https://github.com/grpc/grpc-kotlin/pull/424
22+
* Bump actions/checkout from 3 to 4 by @dependabot in https://github.com/grpc/grpc-kotlin/pull/426
23+
* Bump composeVersion from 1.5.0 to 1.5.1 in /examples by @dependabot in https://github.com/grpc/grpc-kotlin/pull/427
24+
* Bump org.gradle.test-retry from 1.5.4 to 1.5.5 by @dependabot in https://github.com/grpc/grpc-kotlin/pull/430
25+
* version bumps and related fixes by @jamesward in https://github.com/grpc/grpc-kotlin/pull/417
26+
27+
## New Contributors
28+
* @brettchabot made their first contribution in https://github.com/grpc/grpc-kotlin/pull/417
29+
* @dependabot made their first contribution in https://github.com/grpc/grpc-kotlin/pull/413
30+
31+
**Full Changelog**: https://github.com/grpc/grpc-kotlin/compare/v1.3.1...v1.4.0
32+
33+
334
### 1.3.1
435

536
#### Changes

WORKSPACE

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ load(
3232
# Maven
3333
maven_install(
3434
artifacts = [
35-
"com.google.jimfs:jimfs:1.1",
36-
"com.google.truth.extensions:truth-proto-extension:1.0.1",
37-
"com.google.protobuf:protobuf-kotlin:3.18.0",
35+
"com.google.jimfs:jimfs:1.3.0",
36+
"com.google.truth.extensions:truth-proto-extension:1.1.3",
37+
"com.google.protobuf:protobuf-kotlin:3.24.1",
3838
] + IO_GRPC_GRPC_KOTLIN_ARTIFACTS + IO_GRPC_GRPC_JAVA_ARTIFACTS,
3939
override_targets = dict(
4040
IO_GRPC_GRPC_KOTLIN_OVERRIDE_TARGETS.items() +

build.gradle.kts

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@ import org.gradle.api.tasks.testing.logging.TestLogEvent
33
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
44

55
plugins {
6-
kotlin("jvm") version "1.6.21" apply false
6+
kotlin("jvm") version "1.8.0" apply false
77
id("com.google.protobuf") version "0.9.4" apply false
88
id("org.gradle.test-retry") version "1.5.5"
99
id("io.github.gradle-nexus.publish-plugin") version "1.3.0"
1010
}
1111

1212
group = "io.grpc"
13-
version = "1.3.1" // CURRENT_GRPC_KOTLIN_VERSION
13+
version = "1.4.0" // CURRENT_GRPC_KOTLIN_VERSION
1414

15-
ext["grpcVersion"] = "1.46.0"
16-
ext["protobufVersion"] = "3.20.1"
17-
ext["coroutinesVersion"] = "1.6.2"
15+
ext["grpcVersion"] = "1.57.2"
16+
ext["protobufVersion"] = "3.24.1"
17+
ext["coroutinesVersion"] = "1.7.3"
1818

1919
subprojects {
2020

@@ -134,11 +134,7 @@ subprojects {
134134
}
135135
}
136136

137-
nexusPublishing {
138-
repositories {
139-
sonatype {
140-
username.set(System.getenv("SONATYPE_USERNAME"))
141-
password.set(System.getenv("SONATYPE_PASSWORD"))
142-
}
143-
}
137+
nexusPublishing.repositories.sonatype {
138+
username.set(System.getenv("SONATYPE_USERNAME"))
139+
password.set(System.getenv("SONATYPE_PASSWORD"))
144140
}

compiler/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ dependencies {
1818

1919
// Misc
2020
implementation(kotlin("reflect"))
21-
implementation("com.squareup:kotlinpoet:1.11.0")
22-
implementation("com.google.truth:truth:1.1.3")
21+
implementation("com.squareup:kotlinpoet:1.14.2")
22+
implementation("com.google.truth:truth:1.1.5")
2323

2424
// Testing
2525
testImplementation("junit:junit:4.13.2")
26-
testImplementation("com.google.guava:guava:29.0-jre")
26+
testImplementation("com.google.guava:guava:32.1.2-jre")
2727
testImplementation("com.google.jimfs:jimfs:1.3.0")
2828
testImplementation("com.google.protobuf:protobuf-gradle-plugin:0.9.4")
2929
testImplementation("com.nhaarman.mockitokotlin2:mockito-kotlin:2.2.0")

compiler/src/main/java/io/grpc/kotlin/generator/protoc/testing/DeclarationsSubject.kt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,43 +32,43 @@ fun assertThat(declarations: Declarations): DeclarationsSubject =
3232
/** A Truth subject for [Declarations]. */
3333
class DeclarationsSubject(
3434
failureMetadata: FailureMetadata,
35-
private val actual: Declarations
35+
private val actual: Declarations?
3636
) : Subject(failureMetadata, actual) {
3737
fun generatesTopLevel(indentedCode: String) {
3838
val actualCode =
3939
FileSpec.builder("", "MyDeclarations.kt")
40-
.apply { actual.writeOnlyTopLevel(this) }
40+
.apply { actual?.writeOnlyTopLevel(this) }
4141
.build()
4242
check("topLevel").about(fileSpecs).that(actualCode).generates(indentedCode)
4343
}
4444

4545
fun generatesEnclosed(indentedCode: String) {
4646
val actualCode =
4747
FileSpec.builder("", "MyDeclarations.kt")
48-
.apply { actual.writeToEnclosingFile(this) }
48+
.apply { actual?.writeToEnclosingFile(this) }
4949
.build()
5050
check("enclosed").about(fileSpecs).that(actualCode).generates(indentedCode)
5151
}
5252

5353
fun generatesNoTopLevelMembers() {
5454
val actualCode =
5555
FileSpec.builder("", "MyDeclarations.kt")
56-
.apply { actual.writeOnlyTopLevel(this) }
56+
.apply { actual?.writeOnlyTopLevel(this) }
5757
.build()
5858
check("topLevel")
5959
.withMessage("top level declarations: %s", actualCode)
60-
.that(actual.hasTopLevelDeclarations)
60+
.that(actual?.hasTopLevelDeclarations)
6161
.isFalse()
6262
}
6363

6464
fun generatesNoEnclosedMembers() {
6565
val actualCode =
6666
FileSpec.builder("", "MyDeclarations.kt")
67-
.apply { actual.writeToEnclosingFile(this) }
67+
.apply { actual?.writeToEnclosingFile(this) }
6868
.build()
6969
check("enclosed")
7070
.withMessage("enclosed declarations: %s", actualCode)
71-
.that(actual.hasEnclosingScopeDeclarations)
71+
.that(actual?.hasEnclosingScopeDeclarations)
7272
.isFalse()
7373
}
7474
}

compiler/src/main/java/io/grpc/kotlin/generator/protoc/testing/FileSpecSubject.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ fun assertThat(fileSpec: FileSpec): FileSpecSubject = assertAbout(fileSpecs).tha
2929
/** A Truth subject for [FileSpec]. */
3030
class FileSpecSubject(
3131
failureMetadata: FailureMetadata,
32-
private val actual: FileSpec
32+
private val actual: FileSpec?
3333
) : Subject(failureMetadata, actual) {
3434
fun generates(indentedCode: String) {
3535
val expectedCode = indentedCode.trimIndent()
@@ -38,6 +38,6 @@ class FileSpecSubject(
3838
}
3939

4040
fun hasName(name: String) {
41-
check("name").that(actual.name).isEqualTo(name)
41+
check("name").that(actual?.name).isEqualTo(name)
4242
}
4343
}

compiler/src/main/java/io/grpc/kotlin/generator/protoc/testing/FunSpecSubject.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ fun assertThat(funSpec: FunSpec): FunSpecSubject = Truth.assertAbout(funSpecs).t
2929
/** A Truth subject for [FunSpec]. */
3030
class FunSpecSubject(
3131
failureMetadata: FailureMetadata,
32-
private val actual: FunSpec
32+
private val actual: FunSpec?
3333
) : Subject(failureMetadata, actual) {
3434
fun generates(indentedCode: String) {
3535
val expectedCode = indentedCode.trimIndent()

compiler/src/main/java/io/grpc/kotlin/generator/protoc/testing/TypeSpecSubject.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ fun assertThat(typeSpec: TypeSpec): TypeSpecSubject = assertAbout(typeSpecs).tha
2929
/** A Truth subject for [TypeSpec]. */
3030
class TypeSpecSubject(
3131
failureMetadata: FailureMetadata,
32-
private val actual: TypeSpec
32+
private val actual: TypeSpec?
3333
) : Subject(failureMetadata, actual) {
3434
fun generates(indentedCode: String) {
3535
val expectedCode = indentedCode.trimIndent()

0 commit comments

Comments
 (0)