Skip to content

Commit f82aaa9

Browse files
authored
Merge branch 'grpc:master' into issue-626-deprecated-url
2 parents df60825 + 2f717db commit f82aaa9

File tree

46 files changed

+2447
-245
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+2447
-245
lines changed

.bazelignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
bzl-examples/

.bazelrc

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

.bazelversion

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

.github/workflows/bazel.yml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,33 +4,49 @@ on:
44
branches:
55
- master
66
pull_request:
7+
workflow_dispatch:
78
jobs:
89
bazel:
910
runs-on: ubuntu-latest
1011
steps:
11-
- uses: actions/checkout@v4
12+
- uses: actions/checkout@v5
1213
- name: Mount bazel cache
1314
uses: actions/cache@v4
1415
with:
1516
path: "/home/runner/.cache/bazel"
1617
key: bazel
18+
- name: Set up JDK 17
19+
uses: actions/setup-java@v5
20+
with:
21+
java-version: '17'
22+
distribution: 'temurin'
1723
- name: Install bazelisk
1824
run: |
19-
curl -LO "https://github.com/bazelbuild/bazelisk/releases/download/v1.1.0/bazelisk-linux-amd64"
25+
curl -LO "https://github.com/bazelbuild/bazelisk/releases/download/v1.26.0/bazelisk-linux-amd64"
2026
mkdir -p "${GITHUB_WORKSPACE}/bin/"
2127
mv bazelisk-linux-amd64 "${GITHUB_WORKSPACE}/bin/bazel"
2228
chmod +x "${GITHUB_WORKSPACE}/bin/bazel"
29+
- name: Build
30+
uses: nick-invision/retry@v3
31+
with:
32+
timeout_minutes: 10
33+
max_attempts: 3
34+
command: |
35+
cd "${GITHUB_WORKSPACE}"
36+
"${GITHUB_WORKSPACE}/bin/bazel" build //...
2337
- name: Test
2438
uses: nick-invision/retry@v3
2539
with:
2640
timeout_minutes: 10
2741
max_attempts: 3
2842
command: |
43+
cd "${GITHUB_WORKSPACE}"
2944
"${GITHUB_WORKSPACE}/bin/bazel" test //...
30-
- name: Build
45+
- name: Test bzl-examples/bzlmod
3146
uses: nick-invision/retry@v3
3247
with:
3348
timeout_minutes: 10
3449
max_attempts: 3
3550
command: |
36-
"${GITHUB_WORKSPACE}/bin/bazel" build //...
51+
cd "${GITHUB_WORKSPACE}/bzl-examples/bzlmod"
52+
"${GITHUB_WORKSPACE}/bin/bazel" test //...

.github/workflows/gradle.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,34 @@
1+
# Local:
2+
# $ act -P ubuntu-latest=catthehacker/ubuntu:act-latest -W .github/workflows/gradle.yml
13
name: Gradle Build
24
on:
35
push:
46
branches:
57
- master
68
pull_request:
7-
9+
workflow_dispatch:
810
jobs:
911
gradle:
1012
strategy:
1113
matrix:
12-
os: [ubuntu-latest, macos-12]
14+
os: [ubuntu-latest, macos-13]
1315
runs-on: ${{ matrix.os }}
1416
steps:
15-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@v5
1618

17-
- uses: actions/setup-java@v4
19+
- name: Set up JDK 17
20+
uses: actions/setup-java@v5
1821
with:
22+
java-version: '17'
1923
distribution: 'temurin'
20-
java-version: '11'
21-
cache: 'gradle'
2224

23-
- uses: gradle/gradle-build-action@v3
25+
- name: Set up Gradle
26+
uses: gradle/actions/setup-gradle@v4
2427

2528
- name: Test on Mac
26-
if: matrix.os == 'macos-12'
29+
if: matrix.os == 'macos-13'
2730
run: |
28-
brew install docker
31+
brew install docker colima
2932
colima start --network-address
3033
export TESTCONTAINERS_DOCKER_SOCKET_OVERRIDE=/var/run/docker.sock
3134
export TESTCONTAINERS_HOST_OVERRIDE=$(colima ls -j | jq -r '.address')

.github/workflows/release.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,22 @@ on:
33
push:
44
tags:
55
- v**
6+
workflow_dispatch:
67

78
jobs:
89
release:
910
runs-on: ubuntu-latest
1011
steps:
11-
- uses: actions/checkout@v4
12+
- uses: actions/checkout@v5
1213

13-
- uses: actions/setup-java@v4
14+
- name: Set up JDK 17
15+
uses: actions/setup-java@v5
1416
with:
15-
distribution: 'adopt'
16-
java-version: '11'
17-
cache: 'gradle'
17+
java-version: '17'
18+
distribution: 'temurin'
1819

19-
- name: Setup Gradle
20-
uses: gradle/gradle-build-action@v3
20+
- name: Set up Gradle
21+
uses: gradle/actions/setup-gradle@v4
2122

2223
- name: release
2324
env:

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ build
55
local.properties
66
*.iml
77
/bazel-*
8+
MODULE.bazel.lock
9+
*/bin/*

MODULE.bazel

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
module(
2+
name = "grpc_kotlin",
3+
# Note: the Publish-to-BCR app will patch this line to stamp the version being published.
4+
version = "0.0.0",
5+
compatibility_level = 1,
6+
)
7+
8+
bazel_dep(name = "protobuf", repo_name = "com_google_protobuf", version = "30.2")
9+
bazel_dep(name = "rules_kotlin", repo_name = "io_bazel_rules_kotlin", version = "2.1.3")
10+
bazel_dep(name = "rules_java", version = "8.11.0")
11+
bazel_dep(name = "rules_jvm_external", version = "6.7")
12+
bazel_dep(name = "grpc-java", repo_name = "io_grpc_grpc_java", version = "1.71.0")
13+
14+
grpc_kotlin_maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven")
15+
grpc_kotlin_maven.install(
16+
name = "grpc_kotlin_maven",
17+
# Rerun whenever adding new artifacts.
18+
# $ REPIN=1 bazelisk run @grpc_kotlin_maven//:pin
19+
artifacts = [
20+
"com.google.jimfs:jimfs:1.3.0",
21+
"com.google.truth:truth:1.4.2",
22+
"com.google.truth.extensions:truth-proto-extension:1.4.2",
23+
"com.google.protobuf:protobuf-java:4.30.2",
24+
"com.google.protobuf:protobuf-kotlin:4.30.2",
25+
"com.google.guava:guava:33.3.1-android",
26+
"com.squareup:kotlinpoet:1.14.2",
27+
"junit:junit:4.13.2",
28+
"org.jetbrains.kotlinx:kotlinx-coroutines-core:1.10.1",
29+
"org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.10.1",
30+
],
31+
fetch_sources = False,
32+
lock_file = "//:grpc_kotlin_maven_install.json",
33+
generate_compat_repositories = True,
34+
strict_visibility = True,
35+
)
36+
use_repo(grpc_kotlin_maven, "grpc_kotlin_maven")

WORKSPACE

Lines changed: 0 additions & 70 deletions
This file was deleted.

build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@ subprojects {
4040
version = rootProject.version
4141

4242
tasks.withType<JavaCompile> {
43-
sourceCompatibility = JavaVersion.VERSION_1_8.toString()
44-
targetCompatibility = JavaVersion.VERSION_1_8.toString()
43+
sourceCompatibility = JavaVersion.VERSION_17.toString()
44+
targetCompatibility = JavaVersion.VERSION_17.toString()
4545
}
4646

4747
tasks.withType<KotlinCompile> {
4848
kotlinOptions {
4949
freeCompilerArgs = listOf("-Xjsr305=strict")
50-
jvmTarget = JavaVersion.VERSION_1_8.toString()
50+
jvmTarget = JavaVersion.VERSION_17.toString()
5151
}
5252
}
5353

0 commit comments

Comments
 (0)