Skip to content

Commit cf9a537

Browse files
committed
Filter archetype template pom so dep versions track the build
The flowable-archetype-unittest template pinned flowable-engine and the third-party test deps (JUnit, AssertJ, H2, SLF4J) as literal versions, requiring a manual edit on every release and letting those versions drift from what the rest of the repo uses. Enable resource filtering scoped to archetype-resources/pom.xml with the @...@ delimiter (useDefaultDelimiters=false) so Velocity's ${...} placeholders are left intact, and replace the hardcoded values with @project.version@, @junit.jupiter.version@, @assertj.version@, @h2.version@, and @slf4j.version@.
1 parent 8b02b0d commit cf9a537

2 files changed

Lines changed: 36 additions & 6 deletions

File tree

  • tooling/archetypes/flowable-archetype-unittest

tooling/archetypes/flowable-archetype-unittest/pom.xml

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,35 @@
1212
<name>Flowable - Archetype Unit Test</name>
1313
<artifactId>flowable-archetype-unittest</artifactId>
1414
<description>Creates a new Flowable unit test.</description>
15-
<packaging>jar</packaging>
15+
<packaging>jar</packaging>
16+
17+
<build>
18+
<resources>
19+
<resource>
20+
<directory>src/main/resources</directory>
21+
<filtering>true</filtering>
22+
<includes>
23+
<include>archetype-resources/pom.xml</include>
24+
</includes>
25+
</resource>
26+
<resource>
27+
<directory>src/main/resources</directory>
28+
<filtering>false</filtering>
29+
<excludes>
30+
<exclude>archetype-resources/pom.xml</exclude>
31+
</excludes>
32+
</resource>
33+
</resources>
34+
<plugins>
35+
<plugin>
36+
<artifactId>maven-resources-plugin</artifactId>
37+
<configuration>
38+
<delimiters>
39+
<delimiter>@</delimiter>
40+
</delimiters>
41+
<useDefaultDelimiters>false</useDefaultDelimiters>
42+
</configuration>
43+
</plugin>
44+
</plugins>
45+
</build>
1646
</project>

tooling/archetypes/flowable-archetype-unittest/src/main/resources/archetype-resources/pom.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,30 +10,30 @@
1010
<dependency>
1111
<groupId>org.flowable</groupId>
1212
<artifactId>flowable-engine</artifactId>
13-
<version>8.1.0-SNAPSHOT</version>
13+
<version>@project.version@</version>
1414
</dependency>
1515
<dependency>
1616
<groupId>org.junit.jupiter</groupId>
1717
<artifactId>junit-jupiter</artifactId>
18-
<version>5.13.4</version>
18+
<version>@junit.jupiter.version@</version>
1919
<scope>test</scope>
2020
</dependency>
2121
<dependency>
2222
<groupId>org.assertj</groupId>
2323
<artifactId>assertj-core</artifactId>
24-
<version>3.27.4</version>
24+
<version>@assertj.version@</version>
2525
<scope>test</scope>
2626
</dependency>
2727
<dependency>
2828
<groupId>com.h2database</groupId>
2929
<artifactId>h2</artifactId>
30-
<version>2.3.232</version>
30+
<version>@h2.version@</version>
3131
<scope>test</scope>
3232
</dependency>
3333
<dependency>
3434
<groupId>org.slf4j</groupId>
3535
<artifactId>slf4j-reload4j</artifactId>
36-
<version>2.0.17</version>
36+
<version>@slf4j.version@</version>
3737
</dependency>
3838
</dependencies>
3939

0 commit comments

Comments
 (0)