|
27 | 27 | <name>Paimon : Python-Java Bridge</name> |
28 | 28 |
|
29 | 29 | <packaging>jar</packaging> |
| 30 | + <inceptionYear>2024</inceptionYear> |
| 31 | + |
| 32 | + <modules> |
| 33 | + <module>tools/ci/paimon-ci-tools</module> |
| 34 | + </modules> |
30 | 35 |
|
31 | 36 | <properties> |
32 | 37 | <paimon.version>0.9.0</paimon.version> |
|
37 | 42 | <spotless.delimiter>package</spotless.delimiter> |
38 | 43 | <arrow.version>14.0.0</arrow.version> |
39 | 44 | <target.java.version>1.8</target.java.version> |
| 45 | + <paimon.shade.guava.version>30.1.1-jre</paimon.shade.guava.version> |
| 46 | + <paimon.shade.version>0.6.0-incubating</paimon.shade.version> |
40 | 47 | </properties> |
41 | 48 |
|
42 | 49 | <dependencies> |
|
132 | 139 | </plugin> |
133 | 140 |
|
134 | 141 | <plugin> |
135 | | - <groupId>org.apache.maven.plugins</groupId> |
136 | | - <artifactId>maven-compiler-plugin</artifactId> |
137 | | - <version>3.8.0</version> |
138 | | - <configuration> |
139 | | - <source>${target.java.version}</source> |
140 | | - <target>${target.java.version}</target> |
141 | | - <!-- The semantics of this option are reversed, see MCOMPILER-209. --> |
142 | | - <useIncrementalCompilation>false</useIncrementalCompilation> |
143 | | - <compilerArgs> |
144 | | - <!-- Prevents recompilation due to missing package-info.class, see MCOMPILER-205 --> |
145 | | - <arg>-Xpkginfo:always</arg> |
146 | | - <arg>-Xlint:deprecation</arg> |
147 | | - </compilerArgs> |
148 | | - </configuration> |
149 | | - </plugin> |
| 142 | + <groupId>org.apache.maven.plugins</groupId> |
| 143 | + <artifactId>maven-compiler-plugin</artifactId> |
| 144 | + <version>3.8.0</version> |
| 145 | + <configuration> |
| 146 | + <source>${target.java.version}</source> |
| 147 | + <target>${target.java.version}</target> |
| 148 | + <!-- The semantics of this option are reversed, see MCOMPILER-209. --> |
| 149 | + <useIncrementalCompilation>false</useIncrementalCompilation> |
| 150 | + <compilerArgs> |
| 151 | + <!-- Prevents recompilation due to missing package-info.class, see MCOMPILER-205 --> |
| 152 | + <arg>-Xpkginfo:always</arg> |
| 153 | + <arg>-Xlint:deprecation</arg> |
| 154 | + </compilerArgs> |
| 155 | + </configuration> |
| 156 | + </plugin> |
150 | 157 |
|
151 | 158 | <plugin> |
152 | 159 | <groupId>org.apache.maven.plugins</groupId> |
|
159 | 166 | <goal>shade</goal> |
160 | 167 | </goals> |
161 | 168 | <configuration> |
| 169 | + <shadeTestJar>false</shadeTestJar> |
| 170 | + <shadedArtifactAttached>false</shadedArtifactAttached> |
| 171 | + <createDependencyReducedPom>true</createDependencyReducedPom> |
162 | 172 | <artifactSet> |
163 | 173 | <includes combine.children="append"> |
164 | 174 | <include>org.apache.paimon:paimon-bundle</include> |
|
180 | 190 | <shadedPattern>org.apache.paimon.shade.jackson2.com.fasterxml.jackson</shadedPattern> |
181 | 191 | </relocation> |
182 | 192 | </relocations> |
| 193 | + <transformers combine.children="append"> |
| 194 | + <!-- The service transformer is needed to merge META-INF/services files --> |
| 195 | + <transformer |
| 196 | + implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/> |
| 197 | + <!-- The ApacheNoticeResourceTransformer collects and aggregates NOTICE files --> |
| 198 | + <transformer |
| 199 | + implementation="org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer"> |
| 200 | + <projectName>Apache Paimon Python-Java Bridge</projectName> |
| 201 | + <inceptionYear>${project.inceptionYear}</inceptionYear> |
| 202 | + <encoding>UTF-8</encoding> |
| 203 | + </transformer> |
| 204 | + </transformers> |
183 | 205 | </configuration> |
184 | 206 | </execution> |
185 | 207 | </executions> |
186 | 208 | </plugin> |
| 209 | + |
| 210 | + <plugin> |
| 211 | + <groupId>org.apache.maven.plugins</groupId> |
| 212 | + <artifactId>maven-clean-plugin</artifactId> |
| 213 | + <configuration> |
| 214 | + <filesets> |
| 215 | + <fileset> |
| 216 | + <directory>${project.basedir}</directory> |
| 217 | + <includes> |
| 218 | + <include>dependency-reduced-pom.xml</include> |
| 219 | + </includes> |
| 220 | + </fileset> |
| 221 | + </filesets> |
| 222 | + </configuration> |
| 223 | + </plugin> |
187 | 224 | </plugins> |
188 | 225 | </build> |
189 | 226 |
|
| 227 | + <pluginManagement> |
| 228 | + <plugins> |
| 229 | + <plugin> |
| 230 | + <groupId>org.codehaus.mojo</groupId> |
| 231 | + <artifactId>exec-maven-plugin</artifactId> |
| 232 | + <version>3.1.0</version> |
| 233 | + <inherited>false</inherited> |
| 234 | + <executions> |
| 235 | + <execution> |
| 236 | + <id>check-license</id> |
| 237 | + <!-- manually called --> |
| 238 | + <phase>none</phase> |
| 239 | + <goals> |
| 240 | + <goal>java</goal> |
| 241 | + </goals> |
| 242 | + </execution> |
| 243 | + </executions> |
| 244 | + <configuration> |
| 245 | + <mainClass>org.apache.paimon.tools.ci.licensecheck.LicenseChecker</mainClass> |
| 246 | + <includePluginDependencies>true</includePluginDependencies> |
| 247 | + <includeProjectDependencies>false</includeProjectDependencies> |
| 248 | + </configuration> |
| 249 | + <dependencies> |
| 250 | + <dependency> |
| 251 | + <groupId>org.apache.paimon</groupId> |
| 252 | + <artifactId>paimon-ci-tools</artifactId> |
| 253 | + <version>${project.version}</version> |
| 254 | + </dependency> |
| 255 | + </dependencies> |
| 256 | + </plugin> |
| 257 | + </plugins> |
| 258 | + </pluginManagement> |
| 259 | + |
190 | 260 | </project> |
0 commit comments