Skip to content

Commit b15bf62

Browse files
zhangskzcopybara-github
authored andcommitted
Merge 22.x back to main (protocolbuffers#12200)
Closes protocolbuffers#12200 COPYBARA_INTEGRATE_REVIEW=protocolbuffers#12200 from protocolbuffers:main-202303101853 1efa2e7 PiperOrigin-RevId: 515722578
1 parent 25dfc39 commit b15bf62

27 files changed

+47
-34
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ if (protobuf_BUILD_SHARED_LIBS)
9393
endif ()
9494

9595
# Version metadata
96-
set(protobuf_VERSION_STRING "4.22.1")
96+
set(protobuf_VERSION_STRING "4.22.2")
9797
set(protobuf_DESCRIPTION "Protocol Buffers")
9898
set(protobuf_CONTACT "[email protected]")
9999

Protobuf-C++.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'Protobuf-C++'
3-
s.version = '4.22.1'
3+
s.version = '4.22.2'
44
s.summary = 'Protocol Buffers v3 runtime library for C++.'
55
s.homepage = 'https://github.com/google/protobuf'
66
s.license = 'BSD-3-Clause'

Protobuf.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# dependent projects use the :git notation to refer to the library.
66
Pod::Spec.new do |s|
77
s.name = 'Protobuf'
8-
s.version = '3.22.1'
8+
s.version = '3.22.2'
99
s.summary = 'Protocol Buffers v.3 runtime library for Objective-C.'
1010
s.homepage = 'https://github.com/protocolbuffers/protobuf'
1111
s.license = 'BSD-3-Clause'

csharp/Google.Protobuf.Tools.nuspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<title>Google Protocol Buffers tools</title>
66
<summary>Tools for Protocol Buffers - Google's data interchange format.</summary>
77
<description>See project site for more info.</description>
8-
<version>3.22.1</version>
8+
<version>3.22.2</version>
99
<authors>Google Inc.</authors>
1010
<owners>protobuf-packages</owners>
1111
<licenseUrl>https://github.com/protocolbuffers/protobuf/blob/main/LICENSE</licenseUrl>

csharp/src/Google.Protobuf/Google.Protobuf.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<Description>C# runtime library for Protocol Buffers - Google's data interchange format.</Description>
66
<Copyright>Copyright 2015, Google Inc.</Copyright>
77
<AssemblyTitle>Google Protocol Buffers</AssemblyTitle>
8-
<VersionPrefix>3.22.1</VersionPrefix>
8+
<VersionPrefix>3.22.2</VersionPrefix>
99
<LangVersion>10.0</LangVersion>
1010
<Authors>Google Inc.</Authors>
1111
<TargetFrameworks>netstandard1.1;netstandard2.0;net45;net50</TargetFrameworks>

java/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ If you are using Maven, use the following:
2323
<dependency>
2424
<groupId>com.google.protobuf</groupId>
2525
<artifactId>protobuf-java</artifactId>
26-
<version>3.22.1</version>
26+
<version>3.22.2</version>
2727
</dependency>
2828
```
2929

@@ -37,14 +37,14 @@ protobuf-java-util package:
3737
<dependency>
3838
<groupId>com.google.protobuf</groupId>
3939
<artifactId>protobuf-java-util</artifactId>
40-
<version>3.22.1</version>
40+
<version>3.22.2</version>
4141
</dependency>
4242
```
4343

4444
### Gradle
4545

4646
If you are using Gradle, add the following to your `build.gradle` file's
47-
dependencies: `implementation 'com.google.protobuf:protobuf-java:3.22.1'` Again,
47+
dependencies: `implementation 'com.google.protobuf:protobuf-java:3.22.2'` Again,
4848
be sure to check that the version number matches (or is newer than) the version
4949
number of protoc that you are using.
5050

java/bom/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>com.google.protobuf</groupId>
66
<artifactId>protobuf-bom</artifactId>
7-
<version>3.22.1</version>
7+
<version>3.22.2</version>
88
<packaging>pom</packaging>
99

1010
<name>Protocol Buffers [BOM]</name>

java/core/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>com.google.protobuf</groupId>
66
<artifactId>protobuf-parent</artifactId>
7-
<version>3.22.1</version>
7+
<version>3.22.2</version>
88
</parent>
99

1010
<artifactId>protobuf-java</artifactId>

java/kotlin-lite/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>com.google.protobuf</groupId>
66
<artifactId>protobuf-parent</artifactId>
7-
<version>3.22.1</version>
7+
<version>3.22.2</version>
88
</parent>
99

1010
<artifactId>protobuf-kotlin-lite</artifactId>

java/kotlin-lite/pom_template.xml

+7-1
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,14 @@
1717
</description>
1818
<dependencies>
1919
<dependency>
20-
<groupId>${groupId}</groupId>
20+
<groupId>{groupId}</groupId>
2121
<artifactId>protobuf-javalite</artifactId>
22+
<version>{version}</version>
23+
</dependency>
24+
<dependency>
25+
<groupId>org.jetbrains.kotlin</groupId>
26+
<artifactId>kotlin-stdlib</artifactId>
27+
<version>${kotlin.version}</version>
2228
</dependency>
2329
{dependencies}
2430
</dependencies>

java/kotlin/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>com.google.protobuf</groupId>
66
<artifactId>protobuf-parent</artifactId>
7-
<version>3.22.1</version>
7+
<version>3.22.2</version>
88
</parent>
99

1010
<artifactId>protobuf-kotlin</artifactId>

java/kotlin/pom_template.xml

+7-1
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,14 @@
1717
</description>
1818
<dependencies>
1919
<dependency>
20-
<groupId>${groupId}</groupId>
20+
<groupId>{groupId}</groupId>
2121
<artifactId>protobuf-java</artifactId>
22+
<version>{version}</version>
23+
</dependency>
24+
<dependency>
25+
<groupId>org.jetbrains.kotlin</groupId>
26+
<artifactId>kotlin-stdlib</artifactId>
27+
<version>${kotlin.version}</version>
2228
</dependency>
2329
{dependencies}
2430
</dependencies>

java/lite.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ protobuf Java Lite runtime. If you are using Maven, include the following:
2929
<dependency>
3030
<groupId>com.google.protobuf</groupId>
3131
<artifactId>protobuf-javalite</artifactId>
32-
<version>3.22.1</version>
32+
<version>3.22.2</version>
3333
</dependency>
3434
```
3535

java/lite/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>com.google.protobuf</groupId>
66
<artifactId>protobuf-parent</artifactId>
7-
<version>3.22.1</version>
7+
<version>3.22.2</version>
88
</parent>
99

1010
<artifactId>protobuf-javalite</artifactId>

java/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>com.google.protobuf</groupId>
66
<artifactId>protobuf-parent</artifactId>
7-
<version>3.22.1</version>
7+
<version>3.22.2</version>
88
<packaging>pom</packaging>
99

1010
<name>Protocol Buffers [Parent]</name>

java/protoc/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</parent>
99
<groupId>com.google.protobuf</groupId>
1010
<artifactId>protoc</artifactId>
11-
<version>3.22.1</version>
11+
<version>3.22.2</version>
1212
<packaging>pom</packaging>
1313
<name>Protobuf Compiler</name>
1414
<description>

java/util/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>com.google.protobuf</groupId>
66
<artifactId>protobuf-parent</artifactId>
7-
<version>3.22.1</version>
7+
<version>3.22.2</version>
88
</parent>
99

1010
<artifactId>protobuf-java-util</artifactId>

java/util/pom_template.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@
1414
<description>Utilities for Protocol Buffers</description>
1515
<dependencies>
1616
<dependency>
17-
<groupId>${groupId}</groupId>
17+
<groupId>{groupId}</groupId>
1818
<artifactId>protobuf-java</artifactId>
19+
<version>{version}</version>
1920
</dependency>
2021
{dependencies}
2122
</dependencies>

php/ext/google/protobuf/protobuf.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_setter, 0, 0, 1)
127127
ZEND_ARG_INFO(0, value)
128128
ZEND_END_ARG_INFO()
129129

130-
#define PHP_PROTOBUF_VERSION "3.22.1"
130+
#define PHP_PROTOBUF_VERSION "3.22.2"
131131

132132
// ptr -> PHP object cache. This is a weak map that caches lazily-created
133133
// wrapper objects around upb types:

protobuf_version.bzl

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
""" Contains version numbers to be used in other bzl files """
2-
PROTOC_VERSION = "22.1"
3-
PROTOBUF_JAVA_VERSION = "3.22.1"
4-
PROTOBUF_PYTHON_VERSION = "4.22.1"
5-
PROTOBUF_PHP_VERSION = "3.22.1"
6-
PROTOBUF_RUBY_VERSION = "3.22.1"
2+
PROTOC_VERSION = "22.2"
3+
PROTOBUF_JAVA_VERSION = "3.22.2"
4+
PROTOBUF_PYTHON_VERSION = "4.22.2"
5+
PROTOBUF_PHP_VERSION = "3.22.2"
6+
PROTOBUF_RUBY_VERSION = "3.22.2"

python/google/protobuf/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@
3030

3131
# Copyright 2007 Google Inc. All Rights Reserved.
3232

33-
__version__ = '4.22.1'
33+
__version__ = '4.22.2'

ruby/google-protobuf.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Gem::Specification.new do |s|
22
s.name = "google-protobuf"
3-
s.version = "3.22.1"
3+
s.version = "3.22.2"
44
git_tag = "v#{s.version.to_s.sub('.rc.', '-rc')}" # Converts X.Y.Z.rc.N to vX.Y.Z-rcN, used for the git tag
55
s.licenses = ["BSD-3-Clause"]
66
s.summary = "Protocol Buffers"

ruby/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
<groupId>com.google.protobuf.jruby</groupId>
1111
<artifactId>protobuf-jruby</artifactId>
12-
<version>3.22.1</version>
12+
<version>3.22.2</version>
1313
<name>Protocol Buffer JRuby native extension</name>
1414
<description>
1515
Protocol Buffers are a way of encoding structured data in an efficient yet
@@ -76,7 +76,7 @@
7676
<dependency>
7777
<groupId>com.google.protobuf</groupId>
7878
<artifactId>protobuf-java-util</artifactId>
79-
<version>3.22.1</version>
79+
<version>3.22.2</version>
8080
</dependency>
8181
<dependency>
8282
<groupId>org.jruby</groupId>

src/google/protobuf/compiler/plugin.pb.h

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/google/protobuf/descriptor.pb.h

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/google/protobuf/port_def.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ static_assert(PROTOBUF_CPLUSPLUS_MIN(201402L), "Protobuf only supports C++14 and
226226
#ifdef PROTOBUF_VERSION
227227
#error PROTOBUF_VERSION was previously defined
228228
#endif
229-
#define PROTOBUF_VERSION 4022001
229+
#define PROTOBUF_VERSION 4022002
230230

231231
#ifdef PROTOBUF_MIN_HEADER_VERSION_FOR_PROTOC
232232
#error PROTOBUF_MIN_HEADER_VERSION_FOR_PROTOC was previously defined

src/google/protobuf/stubs/common.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ namespace internal {
6666

6767
// The current version, represented as a single integer to make comparison
6868
// easier: major * 10^6 + minor * 10^3 + micro
69-
#define GOOGLE_PROTOBUF_VERSION 4022001
69+
#define GOOGLE_PROTOBUF_VERSION 4022002
7070

7171
// A suffix string for alpha, beta or rc releases. Empty for stable releases.
7272
#define GOOGLE_PROTOBUF_VERSION_SUFFIX ""

0 commit comments

Comments
 (0)