|
9 | 9 | <version>HEAD-jre-SNAPSHOT</version>
|
10 | 10 | </parent>
|
11 | 11 | <artifactId>guava</artifactId>
|
12 |
| - <packaging>bundle</packaging> |
| 12 | + <packaging>jar</packaging> |
13 | 13 | <name>Guava: Google Core Libraries for Java</name>
|
14 | 14 | <url>https://github.com/google/guava</url>
|
15 | 15 | <description>
|
|
222 | 222 | </plugin>
|
223 | 223 | </plugins>
|
224 | 224 | </build>
|
| 225 | + <profiles> |
| 226 | + <profile> |
| 227 | + <id>spdx</id> |
| 228 | + <activation> |
| 229 | + <jdk>[11,</jdk> |
| 230 | + </activation> |
| 231 | + <build> |
| 232 | + <plugins> |
| 233 | + <!-- |
| 234 | + @TODO(sgammon): explain |
| 235 | + --> |
| 236 | + <plugin> |
| 237 | + <groupId>org.spdx</groupId> |
| 238 | + <artifactId>spdx-maven-plugin</artifactId> |
| 239 | + <executions> |
| 240 | + <execution> |
| 241 | + <id>build-spdx</id> |
| 242 | + <phase>install</phase> |
| 243 | + <goals> |
| 244 | + <goal>createSPDX</goal> |
| 245 | + </goals> |
| 246 | + </execution> |
| 247 | + </executions> |
| 248 | + <configuration> |
| 249 | + <useArtifactID>true</useArtifactID> |
| 250 | + <includeTransitiveDependencies>true</includeTransitiveDependencies> |
| 251 | + <originator>Organization: Google, LLC</originator> |
| 252 | + <copyrightText>Copyright (c) 2012-2024, The Guava Authors</copyrightText> |
| 253 | + <defaultFileCopyright>Copyright (c) 2012-2024, The Guava Authors</defaultFileCopyright> |
| 254 | + <defaultFileConcludedLicense>Apache-2.0</defaultFileConcludedLicense> |
| 255 | + <creators><creator>Organization: Google, LLC</creator></creators> |
| 256 | + <checksumAlgorithms> |
| 257 | + <checksumAlgorithm>SHA256</checksumAlgorithm> |
| 258 | + </checksumAlgorithms> |
| 259 | + </configuration> |
| 260 | + </plugin> |
| 261 | + <!-- |
| 262 | + @TODO(sgammon): explain |
| 263 | + --> |
| 264 | + <plugin> |
| 265 | + <groupId>org.apache.maven.plugins</groupId> |
| 266 | + <artifactId>maven-antrun-plugin</artifactId> |
| 267 | + <executions> |
| 268 | + <execution> |
| 269 | + <id>repack-spdx</id> |
| 270 | + <phase>install</phase> |
| 271 | + <goals> |
| 272 | + <goal>run</goal> |
| 273 | + </goals> |
| 274 | + <configuration> |
| 275 | + <target> |
| 276 | + <unzip src="${project.build.directory}/guava-${project.version}.jar" dest="${project.build.directory}/repack"/> |
| 277 | + <copy todir="${project.build.directory}/repack/META-INF/spdx"> |
| 278 | + <fileset dir="${project.build.directory}/site" > |
| 279 | + <include name="*.spdx.json"/> |
| 280 | + </fileset> |
| 281 | + </copy> |
| 282 | + <zip basedir="${project.build.directory}/repack" destfile="${project.build.directory}/guava-${project.version}.jar"/> |
| 283 | + </target> |
| 284 | + </configuration> |
| 285 | + </execution> |
| 286 | + </executions> |
| 287 | + </plugin> |
| 288 | + <!-- |
| 289 | + @TODO(sgammon): explain |
| 290 | + --> |
| 291 | + <plugin> |
| 292 | + <artifactId>maven-gpg-plugin</artifactId> |
| 293 | + <executions> |
| 294 | + <execution> |
| 295 | + <id>default-gpg</id> |
| 296 | + <phase>install</phase> |
| 297 | + <goals> |
| 298 | + <goal>sign</goal> |
| 299 | + </goals> |
| 300 | + </execution> |
| 301 | + </executions> |
| 302 | + </plugin> |
| 303 | + </plugins> |
| 304 | + </build> |
| 305 | + </profile> |
| 306 | + </profiles> |
225 | 307 | </project>
|
0 commit comments