|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!-- |
| 3 | +Licensed to the Apache Software Foundation (ASF) under one |
| 4 | +or more contributor license agreements. See the NOTICE file |
| 5 | +distributed with this work for additional information |
| 6 | +regarding copyright ownership. The ASF licenses this file |
| 7 | +to you under the Apache License, Version 2.0 (the |
| 8 | +"License"); you may not use this file except in compliance |
| 9 | +with the License. You may obtain a copy of the License at |
| 10 | +
|
| 11 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | +
|
| 13 | +Unless required by applicable law or agreed to in writing, |
| 14 | +software distributed under the License is distributed on an |
| 15 | +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 16 | +KIND, either express or implied. See the License for the |
| 17 | +specific language governing permissions and limitations |
| 18 | +under the License. |
| 19 | +--> |
| 20 | +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 21 | + <modelVersion>4.0.0</modelVersion> |
| 22 | + |
| 23 | + <groupId>org.apache.maven.its.shade.pp</groupId> |
| 24 | + <artifactId>mshade-363</artifactId> |
| 25 | + <version>1.0-SNAPSHOT</version> |
| 26 | + |
| 27 | + <name>check non-breaking change to ResourceTransformer's API</name> |
| 28 | + <description>support for Reproducible Builds in MSHADE-352 requires a new long time parameter to |
| 29 | + void processResource( String resource, InputStream is, List<Relocator> relocators, long time ) |
| 30 | + breaking old maven-shade-plugin extensions implementing interface without this parameter |
| 31 | + </description> |
| 32 | + |
| 33 | + <properties> |
| 34 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 35 | + </properties> |
| 36 | + |
| 37 | + <build> |
| 38 | + <plugins> |
| 39 | + <plugin> |
| 40 | + <groupId>org.apache.maven.plugins</groupId> |
| 41 | + <artifactId>maven-shade-plugin</artifactId> |
| 42 | + <version>@project.version@</version> |
| 43 | + <dependencies> |
| 44 | + <dependency><!-- adds an extra ResourceTransformer released a few years ago --> |
| 45 | + <groupId>org.springframework.boot</groupId> |
| 46 | + <artifactId>spring-boot-maven-plugin</artifactId> |
| 47 | + <version>1.5.22.RELEASE</version> |
| 48 | + </dependency> |
| 49 | + </dependencies> |
| 50 | + <executions> |
| 51 | + <execution> |
| 52 | + <id>use-extra-resource-transformer</id> |
| 53 | + <phase>package</phase> |
| 54 | + <goals> |
| 55 | + <goal>shade</goal> |
| 56 | + </goals> |
| 57 | + <configuration> |
| 58 | + <transformers><!-- use the extra transformer that does not provide the new extra parameter for Reproducible Builds --> |
| 59 | + <transformer implementation="org.springframework.boot.maven.PropertiesMergingResourceTransformer"> |
| 60 | + <resource>Message.properties</resource> |
| 61 | + </transformer> |
| 62 | + </transformers> |
| 63 | + </configuration> |
| 64 | + </execution> |
| 65 | + </executions> |
| 66 | + </plugin> |
| 67 | + </plugins> |
| 68 | + </build> |
| 69 | +</project> |
0 commit comments