Skip to content

Commit a465114

Browse files
committed
Convert Protobuf module-info too, remove shading.
1 parent 133eeeb commit a465114

File tree

4 files changed

+30
-45
lines changed

4 files changed

+30
-45
lines changed

protobuf/pom.xml

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,6 @@ abstractions.
5050
<groupId>tools.jackson.core</groupId>
5151
<artifactId>jackson-databind</artifactId>
5252
</dependency>
53-
54-
<!-- and for testing, JUnit is needed; as well as annotations -->
55-
<dependency>
56-
<groupId>com.fasterxml.jackson.core</groupId>
57-
<artifactId>jackson-annotations</artifactId>
58-
<scope>provided</scope>
59-
</dependency>
6053
</dependencies>
6154

6255
<build>
@@ -73,43 +66,6 @@ abstractions.
7366
</executions>
7467
</plugin>
7568

76-
<plugin>
77-
<!-- We will shade proto-parser, to simplify deployment, avoid version conflicts -->
78-
<groupId>org.apache.maven.plugins</groupId>
79-
<artifactId>maven-shade-plugin</artifactId>
80-
<executions>
81-
<execution>
82-
<phase>package</phase>
83-
<goals>
84-
<goal>shade</goal>
85-
</goals>
86-
<configuration>
87-
<artifactSet>
88-
<includes>
89-
<!-- the bundle plugin already did the pulling-in, all we need is the renaming! -->
90-
<!--
91-
<include>com.squareup:protoparser</include>
92-
-->
93-
<include>null:null</include>
94-
</includes>
95-
</artifactSet>
96-
<relocations>
97-
<relocation>
98-
<pattern>com.squareup</pattern>
99-
<shadedPattern>tools.jackson.dataformat.protobuf.protoparser</shadedPattern>
100-
</relocation>
101-
</relocations>
102-
</configuration>
103-
</execution>
104-
</executions>
105-
</plugin>
106-
<!-- 19-Mar-2019, tatu: Add rudimentary JDK9+ module info. To build with JDK 8
107-
will have to use `moduleInfoFile` as anything else requires JDK 9+
108-
-->
109-
<plugin>
110-
<groupId>org.moditect</groupId>
111-
<artifactId>moditect-maven-plugin</artifactId>
112-
</plugin>
11369
</plugins>
11470
</build>
11571

protobuf/src/main/java/module-info.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
module tools.jackson.dataformat.protobuf {
1+
// Protobuf Main artifact Module descriptor
2+
module tools.jackson.dataformat.protobuf
3+
{
24
requires tools.jackson.core;
35
requires tools.jackson.databind;
46

7+
requires protoparser;
8+
59
exports tools.jackson.dataformat.protobuf;
610
// No, should not expose shaded
711
// exports tools.jackson.dataformat.protobuf.protoparser.protoparser;
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// Protobuf unit test Module descriptor
2+
module tools.jackson.dataformat.protobuf
3+
{
4+
// Since we are not split from Main artifact, will not
5+
// need to depend on Main artifact -- but need its dependencies
6+
7+
requires tools.jackson.core;
8+
requires tools.jackson.databind;
9+
10+
requires protoparser;
11+
12+
// Additional test lib/framework dependencies
13+
requires org.junit.jupiter.api;
14+
requires org.junit.jupiter.params;
15+
16+
// Further, need to open up some packages for JUnit et al
17+
opens tools.jackson.dataformat.protobuf;
18+
opens tools.jackson.dataformat.protobuf.dos;
19+
opens tools.jackson.dataformat.protobuf.fuzz;
20+
opens tools.jackson.dataformat.protobuf.schema;
21+
opens tools.jackson.dataformat.protobuf.testutil;
22+
opens tools.jackson.dataformat.protobuf.testutil.failure;
23+
opens tools.jackson.dataformat.protobuf.tofix;
24+
}

release-notes/VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,4 @@ implementations)
3131
by default (3.0)
3232
#557: Change 3.0 to use `module-info.java` directly [JSTEP-11]
3333
- Minimum Java baseline: Java 17
34+
- (protobuf) Remove shading of `protoparser` dependency

0 commit comments

Comments
 (0)