|
46 | 46 |
|
47 | 47 | <build>
|
48 | 48 | <plugins>
|
| 49 | + <plugin> |
| 50 | + <artifactId>maven-resources-plugin</artifactId> |
| 51 | + <executions> |
| 52 | + <execution> |
| 53 | + <id>validate-copy-libs-versions-toml</id> |
| 54 | + <phase>validate</phase> |
| 55 | + <goals> |
| 56 | + <goal>copy-resources</goal> |
| 57 | + </goals> |
| 58 | + <configuration> |
| 59 | + <outputDirectory>gradle</outputDirectory> |
| 60 | + <resources> |
| 61 | + <resource> |
| 62 | + <directory>resources</directory> |
| 63 | + <filtering>true</filtering> |
| 64 | + <includes> |
| 65 | + <include>libs.versions.toml</include> |
| 66 | + </includes> |
| 67 | + </resource> |
| 68 | + </resources> |
| 69 | + </configuration> |
| 70 | + </execution> |
| 71 | + <execution> |
| 72 | + <id>pre-clean-copy-libs-versions-toml</id> |
| 73 | + <phase>pre-clean</phase> |
| 74 | + <goals> |
| 75 | + <goal>copy-resources</goal> |
| 76 | + </goals> |
| 77 | + <configuration> |
| 78 | + <outputDirectory>gradle</outputDirectory> |
| 79 | + <resources> |
| 80 | + <resource> |
| 81 | + <directory>resources</directory> |
| 82 | + <filtering>true</filtering> |
| 83 | + <includes> |
| 84 | + <include>libs.versions.toml</include> |
| 85 | + </includes> |
| 86 | + </resource> |
| 87 | + </resources> |
| 88 | + </configuration> |
| 89 | + </execution> |
| 90 | + <execution> |
| 91 | + <id>validate-copy-gradle-wrapper-jar</id> |
| 92 | + <phase>validate</phase> |
| 93 | + <goals> |
| 94 | + <goal>copy-resources</goal> |
| 95 | + </goals> |
| 96 | + <configuration> |
| 97 | + <outputDirectory>gradle/wrapper</outputDirectory> |
| 98 | + <resources> |
| 99 | + <resource> |
| 100 | + <directory>resources</directory> |
| 101 | + <includes> |
| 102 | + <include>gradle-wrapper.jar</include> |
| 103 | + </includes> |
| 104 | + </resource> |
| 105 | + </resources> |
| 106 | + </configuration> |
| 107 | + </execution> |
| 108 | + <execution> |
| 109 | + <id>pre-clean-copy-gradle-wrapper-jar</id> |
| 110 | + <phase>pre-clean</phase> |
| 111 | + <goals> |
| 112 | + <goal>copy-resources</goal> |
| 113 | + </goals> |
| 114 | + <configuration> |
| 115 | + <outputDirectory>gradle/wrapper</outputDirectory> |
| 116 | + <resources> |
| 117 | + <resource> |
| 118 | + <directory>resources</directory> |
| 119 | + <includes> |
| 120 | + <include>gradle-wrapper.jar</include> |
| 121 | + </includes> |
| 122 | + </resource> |
| 123 | + </resources> |
| 124 | + </configuration> |
| 125 | + </execution> |
| 126 | + <execution> |
| 127 | + <id>validate-copy-gradle-wrapper-properties</id> |
| 128 | + <phase>validate</phase> |
| 129 | + <goals> |
| 130 | + <goal>copy-resources</goal> |
| 131 | + </goals> |
| 132 | + <configuration> |
| 133 | + <outputDirectory>gradle/wrapper</outputDirectory> |
| 134 | + <resources> |
| 135 | + <resource> |
| 136 | + <directory>resources</directory> |
| 137 | + <filtering>true</filtering> |
| 138 | + <includes> |
| 139 | + <include>gradle-wrapper.properties</include> |
| 140 | + </includes> |
| 141 | + </resource> |
| 142 | + </resources> |
| 143 | + </configuration> |
| 144 | + </execution> |
| 145 | + <execution> |
| 146 | + <id>pre-clean-copy-gradle-wrapper-properties</id> |
| 147 | + <phase>pre-clean</phase> |
| 148 | + <goals> |
| 149 | + <goal>copy-resources</goal> |
| 150 | + </goals> |
| 151 | + <configuration> |
| 152 | + <outputDirectory>gradle/wrapper</outputDirectory> |
| 153 | + <resources> |
| 154 | + <resource> |
| 155 | + <directory>resources</directory> |
| 156 | + <filtering>true</filtering> |
| 157 | + <includes> |
| 158 | + <include>gradle-wrapper.properties</include> |
| 159 | + </includes> |
| 160 | + </resource> |
| 161 | + </resources> |
| 162 | + </configuration> |
| 163 | + </execution> |
| 164 | + </executions> |
| 165 | + </plugin> |
| 166 | + |
49 | 167 | <!-- Maven deploy is skipped on purpose as Gradle build will stage the artifact itself. -->
|
50 | 168 | <plugin>
|
51 | 169 | <groupId>org.apache.maven.plugins</groupId>
|
|
94 | 212 | </execution>
|
95 | 213 | </executions>
|
96 | 214 | </plugin>
|
| 215 | + <plugin> |
| 216 | + <artifactId>maven-clean-plugin</artifactId> |
| 217 | + <executions> |
| 218 | + <execution> |
| 219 | + <id>delete-gradle-wrapper</id> |
| 220 | + <phase>clean</phase> |
| 221 | + <goals> |
| 222 | + <goal>clean</goal> |
| 223 | + </goals> |
| 224 | + <configuration> |
| 225 | + <filesets> |
| 226 | + <fileset> |
| 227 | + <directory>gradle</directory> |
| 228 | + </fileset> |
| 229 | + </filesets> |
| 230 | + </configuration> |
| 231 | + </execution> |
| 232 | + </executions> |
| 233 | + </plugin> |
97 | 234 | </plugins>
|
98 | 235 | </build>
|
99 | 236 |
|
|
0 commit comments