File tree Expand file tree Collapse file tree 14 files changed +139
-71
lines changed
main/java/com/hubspot/jackson/datatype/protobuf/builtin/serializers
test/java/com/hubspot/jackson/datatype/protobuf/util Expand file tree Collapse file tree 14 files changed +139
-71
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 20
20
cache : maven
21
21
- name : Build with Maven
22
22
run : mvn -B verify -Ddep.jackson.version=2.14.3 -Ddep.jackson-databind.version=2.14.3 -Dbasepom.git-id.skip
23
-
24
- # Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
25
- - name : Update dependency graph
26
- uses : advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6
Original file line number Diff line number Diff line change 19
19
distribution : ' temurin'
20
20
cache : maven
21
21
- name : Build with Maven
22
- run : mvn -B verify -Ddep.jackson.version=2.15.3 -Ddep.jackson-databind.version=2.15.3 -Dbasepom.git-id.skip
23
-
24
- # Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
25
- - name : Update dependency graph
26
- uses : advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6
22
+ run : mvn -B verify -Ddep.jackson.version=2.15.4 -Ddep.jackson-databind.version=2.15.4 -Dbasepom.git-id.skip
Original file line number Diff line number Diff line change
1
+ name : Jackson-2.16
2
+
3
+ on :
4
+ push :
5
+ branches : [ "master" ]
6
+ pull_request :
7
+ branches : [ "master" ]
8
+
9
+ jobs :
10
+ build :
11
+ runs-on : ubuntu-latest
12
+
13
+ steps :
14
+ - uses : actions/checkout@v3
15
+ - name : Set up JDK 17
16
+ uses : actions/setup-java@v3
17
+ with :
18
+ java-version : ' 17'
19
+ distribution : ' temurin'
20
+ cache : maven
21
+ - name : Build with Maven
22
+ run : mvn -B verify -Ddep.jackson.version=2.16.2 -Ddep.jackson-databind.version=2.16.2 -Dbasepom.git-id.skip
Original file line number Diff line number Diff line change
1
+ name : Jackson-2.17
2
+
3
+ on :
4
+ push :
5
+ branches : [ "master" ]
6
+ pull_request :
7
+ branches : [ "master" ]
8
+
9
+ jobs :
10
+ build :
11
+ runs-on : ubuntu-latest
12
+
13
+ steps :
14
+ - uses : actions/checkout@v3
15
+ - name : Set up JDK 17
16
+ uses : actions/setup-java@v3
17
+ with :
18
+ java-version : ' 17'
19
+ distribution : ' temurin'
20
+ cache : maven
21
+ - name : Build with Maven
22
+ run : mvn -B verify -Ddep.jackson.version=2.17.3 -Ddep.jackson-databind.version=2.17.3 -Dbasepom.git-id.skip
Original file line number Diff line number Diff line change 1
- name : Jackson- Latest
1
+ name : Latest
2
2
3
3
on :
4
4
push :
20
20
cache : maven
21
21
- name : Build with Maven
22
22
run : mvn -B verify -Dbasepom.git-id.skip
23
-
24
- # Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
25
- - name : Update dependency graph
26
- uses : advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6
Original file line number Diff line number Diff line change
1
+ name : Protobuf-3.23
2
+
3
+ on :
4
+ push :
5
+ branches : [ "master" ]
6
+ pull_request :
7
+ branches : [ "master" ]
8
+
9
+ jobs :
10
+ build :
11
+ runs-on : ubuntu-latest
12
+
13
+ steps :
14
+ - uses : actions/checkout@v3
15
+ - name : Set up JDK 17
16
+ uses : actions/setup-java@v3
17
+ with :
18
+ java-version : ' 17'
19
+ distribution : ' temurin'
20
+ cache : maven
21
+ - name : Build with Maven
22
+ run : mvn -B verify -Ddep.protobuf-java.version=3.23.2 -Dbasepom.git-id.skip
Original file line number Diff line number Diff line change
1
+ name : Protobuf-3.25
2
+
3
+ on :
4
+ push :
5
+ branches : [ "master" ]
6
+ pull_request :
7
+ branches : [ "master" ]
8
+
9
+ jobs :
10
+ build :
11
+ runs-on : ubuntu-latest
12
+
13
+ steps :
14
+ - uses : actions/checkout@v3
15
+ - name : Set up JDK 17
16
+ uses : actions/setup-java@v3
17
+ with :
18
+ java-version : ' 17'
19
+ distribution : ' temurin'
20
+ cache : maven
21
+ - name : Build with Maven
22
+ run : mvn -B verify -Ddep.protobuf-java.version=3.25.5 -Dbasepom.git-id.skip
Original file line number Diff line number Diff line change
1
+ name : Protoc-3.23
2
+
3
+ on :
4
+ push :
5
+ branches : [ "master" ]
6
+ pull_request :
7
+ branches : [ "master" ]
8
+
9
+ jobs :
10
+ build :
11
+ runs-on : ubuntu-latest
12
+
13
+ steps :
14
+ - uses : actions/checkout@v3
15
+ - name : Set up JDK 17
16
+ uses : actions/setup-java@v3
17
+ with :
18
+ java-version : ' 17'
19
+ distribution : ' temurin'
20
+ cache : maven
21
+ - name : Build with Maven
22
+ run : mvn -B verify -Ddep.protoc.version=3.23.2 -Dbasepom.git-id.skip
Original file line number Diff line number Diff line change
1
+ name : Protoc-3.25
2
+
3
+ on :
4
+ push :
5
+ branches : [ "master" ]
6
+ pull_request :
7
+ branches : [ "master" ]
8
+
9
+ jobs :
10
+ build :
11
+ runs-on : ubuntu-latest
12
+
13
+ steps :
14
+ - uses : actions/checkout@v3
15
+ - name : Set up JDK 17
16
+ uses : actions/setup-java@v3
17
+ with :
18
+ java-version : ' 17'
19
+ distribution : ' temurin'
20
+ cache : maven
21
+ - name : Build with Maven
22
+ run : mvn -B verify -Ddep.protoc.version=3.25.5 -Dbasepom.git-id.skip
Original file line number Diff line number Diff line change 20
20
<basepom .check.skip-dependency-versions-check>true</basepom .check.skip-dependency-versions-check>
21
21
<basepom .check.skip-spotbugs>true</basepom .check.skip-spotbugs>
22
22
23
- <dep .jackson.version>2.16 .1</dep .jackson.version>
24
- <dep .jackson-databind.version>2.16 .1</dep .jackson-databind.version>
23
+ <dep .jackson.version>2.18 .1</dep .jackson.version>
24
+ <dep .jackson-databind.version>2.18 .1</dep .jackson-databind.version>
25
25
<dep .javax-validation.version>2.0.1.Final</dep .javax-validation.version>
26
+ <dep .protobuf-java.version>4.28.3</dep .protobuf-java.version>
27
+ <dep .protoc.version>${dep.protobuf-java.version} </dep .protoc.version>
26
28
<dep .scala.version>2.12.18</dep .scala.version>
27
29
</properties >
28
30
Original file line number Diff line number Diff line change 10
10
import com .fasterxml .jackson .databind .util .NameTransformer ;
11
11
import com .google .protobuf .Descriptors .Descriptor ;
12
12
import com .google .protobuf .Descriptors .FieldDescriptor ;
13
- import com .google .protobuf .Descriptors .FileDescriptor .Syntax ;
14
13
import com .google .protobuf .ExtensionRegistry .ExtensionInfo ;
15
14
import com .google .protobuf .Message ;
16
15
import com .google .protobuf .MessageOrBuilder ;
@@ -60,7 +59,7 @@ public void serialize(
60
59
}
61
60
62
61
boolean proto3 =
63
- message .getDescriptorForType ().getFile ().getSyntax () == Syntax . PROTO3 ;
62
+ "proto3" . equals ( message .getDescriptorForType ().getFile ().toProto (). getSyntax ()) ;
64
63
Include include = serializerProvider
65
64
.getConfig ()
66
65
.getDefaultPropertyInclusion ()
You can’t perform that action at this time.
0 commit comments