Skip to content

Commit e7b63cc

Browse files
committed
Fixes #433
The github action used for aadarchi is automatically copied into the archetype to be used as default
1 parent 957b42e commit e7b63cc

File tree

4 files changed

+39
-29
lines changed

4 files changed

+39
-29
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -131,3 +131,4 @@ fabric.properties
131131
**/.gitignore
132132
.idea/
133133
.cache/
134+
archetype/src/main/resources/archetype-resources/.github/workflows/on_push_on_master_deploy_build.yml

archetype/pom.xml

+32-5
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@
1212
<packaging>maven-archetype</packaging>
1313

1414
<name>Aadarchi : Archetype</name>
15-
<description>Easily create configuration to document your project with this archetype</description>
15+
<description>Easily create configuration to document your project with this
16+
archetype</description>
1617

1718
<dependencies>
18-
<!-- This dependency ensures the build order is the one we want (in other words it allows
19+
<!-- This dependency ensures the build order is the one we want (in
20+
other words it allows
1921
base to build before archetype) -->
2022
<dependency>
2123
<groupId>io.github.Riduidel.aadarchi</groupId>
@@ -57,6 +59,28 @@
5759
<addDefaultExcludes>false</addDefaultExcludes>
5860
<escapeString><![CDATA[\]]></escapeString>
5961
</configuration>
62+
<executions>
63+
<execution>
64+
<id>copy-github-default-deploy</id>
65+
<goals>
66+
<goal>copy-resources</goal>
67+
</goals>
68+
<!-- here the phase you need -->
69+
<phase>validate</phase>
70+
<configuration>
71+
<outputDirectory>${basedir}/src/main/resources/archetype-resources/.github</outputDirectory>
72+
<resources>
73+
<resource>
74+
<directory>../.github</directory>
75+
<filtering>false</filtering>
76+
<includes>
77+
<include>**/on_push_on_master_deploy_build.yml</include>
78+
</includes>
79+
</resource>
80+
</resources>
81+
</configuration>
82+
</execution>
83+
</executions>
6084
</plugin>
6185
</plugins>
6286
</pluginManagement>
@@ -95,12 +119,14 @@
95119
<artifactId>gmavenplus-plugin</artifactId>
96120
<dependencies>
97121
<dependency>
98-
<!-- this is here for both the script and the project to use -->
122+
<!-- this is here for both the script and the
123+
project to use -->
99124
<groupId>ch.qos.logback</groupId>
100125
<artifactId>logback-classic</artifactId>
101126
<version>1.2.13</version>
102127
</dependency>
103-
<!-- I do prefer maven dependencies, as they're downloaded only once
128+
<!-- I do prefer maven dependencies, as they're
129+
downloaded only once
104130
in a place I understand (bad reason, of course) -->
105131
<dependency>
106132
<groupId>org.jsoup</groupId>
@@ -110,7 +136,8 @@
110136
<dependency>
111137
<groupId>org.codehaus.groovy</groupId>
112138
<artifactId>groovy-all</artifactId>
113-
<!-- any version of Groovy \>= 1.5.0 should work here -->
139+
<!-- any version of Groovy \>= 1.5.0 should work
140+
here -->
114141
<version>2.5.8</version>
115142
<type>pom</type>
116143
<scope>runtime</scope>

archetype/src/main/resources/META-INF/maven/archetype-metadata.xml

+6
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@
2727
<include>**/*</include>
2828
</includes>
2929
</fileSet>
30+
<fileSet filtered="false">
31+
<directory>.github</directory>
32+
<includes>
33+
<include>**/*</include>
34+
</includes>
35+
</fileSet>
3036
<!--
3137
<fileSet filtered="true" packaged="true">
3238
<directory>src/main/java</directory>

archetype/src/main/resources/archetype-resources/.github/workflows/build.yml

-24
This file was deleted.

0 commit comments

Comments
 (0)