Skip to content

Commit 5ba0ea0

Browse files
build: init mustache specs as part of normal build
1 parent 2f65787 commit 5ba0ea0

File tree

1 file changed

+44
-32
lines changed

1 file changed

+44
-32
lines changed

pom.xml

Lines changed: 44 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<licenses>
2727
<license>
2828
<name>The Apache Software License, Version 2.0</name>
29-
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
29+
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
3030
</license>
3131
</licenses>
3232

@@ -274,7 +274,48 @@
274274
</profile>
275275

276276
<profile>
277-
<id>git-hooks</id>
277+
<id>mustache-specs</id>
278+
<activation>
279+
<file>
280+
<missing>${mustache-specs}</missing>
281+
</file>
282+
</activation>
283+
<build>
284+
<plugins>
285+
<plugin>
286+
<groupId>org.codehaus.mojo</groupId>
287+
<artifactId>exec-maven-plugin</artifactId>
288+
<version>3.2.0</version>
289+
<executions>
290+
<execution>
291+
<phase>initialize</phase>
292+
<id>mustache-specs</id>
293+
<goals>
294+
<goal>exec</goal>
295+
</goals>
296+
</execution>
297+
</executions>
298+
<configuration>
299+
<executable>git</executable>
300+
<arguments>
301+
<argument>submodule</argument>
302+
<argument>update</argument>
303+
<argument>--init</argument>
304+
<argument>--recursive</argument>
305+
</arguments>
306+
<successCodes>
307+
<successCode>0</successCode>
308+
<!-- git submodule fails in child projects, just ignore the error and continue -->
309+
<successCode>1</successCode>
310+
</successCodes>
311+
</configuration>
312+
</plugin>
313+
</plugins>
314+
</build>
315+
</profile>
316+
317+
<profile>
318+
<id>spotless-hook</id>
278319
<activation>
279320
<file>
280321
<exists>${pre-commit-hook}</exists>
@@ -328,36 +369,6 @@
328369
<id>sonatype</id>
329370
<build>
330371
<plugins>
331-
<!-- This is a workaround to get submodules working with the maven release plugin -->
332-
<plugin>
333-
<groupId>org.codehaus.mojo</groupId>
334-
<artifactId>exec-maven-plugin</artifactId>
335-
<version>3.2.0</version>
336-
<executions>
337-
<execution>
338-
<phase>initialize</phase>
339-
<id>invoke build</id>
340-
<goals>
341-
<goal>exec</goal>
342-
</goals>
343-
</execution>
344-
</executions>
345-
<configuration>
346-
<executable>git</executable>
347-
<arguments>
348-
<argument>submodule</argument>
349-
<argument>update</argument>
350-
<argument>--init</argument>
351-
<argument>--recursive</argument>
352-
</arguments>
353-
<successCodes>
354-
<successCode>0</successCode>
355-
<!-- git submodule fails in child projects, just ignore the error and continue -->
356-
<successCode>1</successCode>
357-
</successCodes>
358-
</configuration>
359-
</plugin>
360-
361372
<!-- Source -->
362373
<plugin>
363374
<groupId>org.apache.maven.plugins</groupId>
@@ -423,5 +434,6 @@
423434
<maven.compiler.source>17</maven.compiler.source>
424435
<maven.compiler.target>17</maven.compiler.target>
425436
<pre-commit-hook>src${file.separator}etc${file.separator}formatter.sh</pre-commit-hook>
437+
<mustache-specs>handlebars${file.separator}src${file.separator}test${file.separator}resources${file.separator}mustache</mustache-specs>
426438
</properties>
427439
</project>

0 commit comments

Comments
 (0)