|
42 | 42 | <maven.compiler.source>11</maven.compiler.source> |
43 | 43 | <maven.compiler.target>11</maven.compiler.target> |
44 | 44 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
45 | | - <protobuf-maven-plugin.version>2.3.0</protobuf-maven-plugin.version> |
46 | | - <protobuf.version>4.27.1</protobuf.version> |
47 | 45 | </properties> |
48 | 46 |
|
49 | 47 | <dependencies> |
50 | | - <dependency> |
51 | | - <groupId>com.google.protobuf</groupId> |
52 | | - <artifactId>protobuf-java</artifactId> |
53 | | - <version>${protobuf.version}</version> |
54 | | - <scope>compile</scope> |
55 | | - </dependency> |
56 | 48 | <dependency> |
57 | 49 | <groupId>junit</groupId> |
58 | 50 | <artifactId>junit</artifactId> |
|
65 | 57 | <version>2.0</version> |
66 | 58 | <scope>compile</scope> |
67 | 59 | </dependency> |
| 60 | + <dependency> |
| 61 | + <groupId>org.apache.hadoop</groupId> |
| 62 | + <artifactId>hadoop-common</artifactId> |
| 63 | + <version>3.4.0</version> |
| 64 | + </dependency> |
68 | 65 | </dependencies> |
69 | 66 |
|
70 | 67 | <build> |
71 | 68 | <plugins> |
72 | | - <plugin> |
73 | | - <groupId>io.github.ascopes</groupId> |
74 | | - <artifactId>protobuf-maven-plugin</artifactId> |
75 | | - <version>${protobuf-maven-plugin.version}</version> |
76 | | - <configuration> |
77 | | - <sourceDirectories> |
78 | | - <sourceDirectory>${project.basedir}/../../format</sourceDirectory> |
79 | | - </sourceDirectories> |
80 | | - <protocVersion>${protobuf.version}</protocVersion> |
81 | | - </configuration> |
82 | | - <executions> |
83 | | - <execution> |
84 | | - <goals> |
85 | | - <goal>generate</goal> |
86 | | - </goals> |
87 | | - </execution> |
88 | | - </executions> |
89 | | - </plugin> |
90 | 69 | <plugin> |
91 | 70 | <groupId>com.diffplug.spotless</groupId> |
92 | 71 | <artifactId>spotless-maven-plugin</artifactId> |
|
100 | 79 | </java> |
101 | 80 | </configuration> |
102 | 81 | </plugin> |
103 | | - <plugin> |
104 | | - <groupId>org.apache.maven.plugins</groupId> |
105 | | - <artifactId>maven-shade-plugin</artifactId> |
106 | | - <version>3.6.0</version> |
107 | | - <configuration> |
108 | | - <shadedArtifactAttached>false</shadedArtifactAttached> |
109 | | - <shadeTestJar>false</shadeTestJar> |
110 | | - <artifactSet> |
111 | | - <includes> |
112 | | - <include>com.google.protobuf:*</include> |
113 | | - <include>org.yaml:*</include> |
114 | | - </includes> |
115 | | - </artifactSet> |
116 | | - <relocations> |
117 | | - <relocation> |
118 | | - <pattern>com.google.protobuf</pattern> |
119 | | - <shadedPattern>org.graphar.protobuf</shadedPattern> |
120 | | - <includes> |
121 | | - <include>com.google.protobuf.**</include> |
122 | | - </includes> |
123 | | - </relocation> |
124 | | - <relocation> |
125 | | - <pattern>org.yaml</pattern> |
126 | | - <shadedPattern>org.graphar.yaml</shadedPattern> |
127 | | - <includes> |
128 | | - <include>org.yaml.**</include> |
129 | | - </includes> |
130 | | - </relocation> |
131 | | - </relocations> |
132 | | - <filters> |
133 | | - <filter> |
134 | | - <artifact>*:*</artifact> |
135 | | - <excludes> |
136 | | - <exclude>google/protobuf/**</exclude> |
137 | | - <exclude>yaml/snakeyaml/**</exclude> |
138 | | - </excludes> |
139 | | - </filter> |
140 | | - </filters> |
141 | | - </configuration> |
142 | | - <executions> |
143 | | - <execution> |
144 | | - <phase>package</phase> |
145 | | - <goals> |
146 | | - <goal>shade</goal> |
147 | | - </goals> |
148 | | - </execution> |
149 | | - </executions> |
150 | | - </plugin> |
151 | 82 | </plugins> |
152 | 83 | </build> |
153 | 84 |
|
|
0 commit comments