Skip to content

Commit e401294

Browse files
authored
Merge pull request #48506 from gsmet/keep-gradle-wrapper-in-sync
Keep the codestart Gradle wrapper in sync with version configured
2 parents d54d682 + d707756 commit e401294

File tree

6 files changed

+104
-352
lines changed

6 files changed

+104
-352
lines changed

independent-projects/tools/base-codestarts/pom.xml

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@
1212

1313
<artifactId>quarkus-devtools-base-codestarts</artifactId>
1414
<name>Quarkus - Dev tools - Base Codestarts</name>
15+
16+
<properties>
17+
<gradle-wrapper.path>${maven.multiModuleProjectDirectory}/devtools/gradle</gradle-wrapper.path>
18+
<gradle.executable>gradlew</gradle.executable>
19+
</properties>
20+
1521
<build>
1622
<resources>
1723
<resource>
@@ -22,6 +28,104 @@
2228
<filtering>true</filtering>
2329
</resource>
2430
</resources>
31+
<plugins>
32+
<plugin>
33+
<groupId>org.codehaus.mojo</groupId>
34+
<artifactId>exec-maven-plugin</artifactId>
35+
<executions>
36+
<execution>
37+
<id>init-gradle-project</id>
38+
<phase>generate-sources</phase>
39+
<configuration>
40+
<executable>${gradle-wrapper.path}/${gradle.executable}</executable>
41+
<environmentVariables>
42+
<!-- Force a higher value than the default 64m, used by
43+
gradlew script, to make sure the no-daemon option is honoured
44+
-->
45+
<JAVA_OPTS>-Xmx512m</JAVA_OPTS>
46+
</environmentVariables>
47+
<arguments>
48+
<argument>init</argument>
49+
<argument>--type</argument>
50+
<argument>basic</argument>
51+
<argument>--no-daemon</argument>
52+
<argument>--overwrite</argument>
53+
</arguments>
54+
<workingDirectory>${project.build.directory}/gradle-wrapper</workingDirectory>
55+
<addOutputToClasspath>true</addOutputToClasspath>
56+
</configuration>
57+
<goals>
58+
<goal>exec</goal>
59+
</goals>
60+
</execution>
61+
<execution>
62+
<id>install-gradle-wrapper</id>
63+
<phase>generate-sources</phase>
64+
<configuration>
65+
<executable>${gradle-wrapper.path}/${gradle.executable}</executable>
66+
<environmentVariables>
67+
<!-- Force a higher value than the default 64m, used by
68+
gradlew script, to make sure the no-daemon option is honoured
69+
-->
70+
<JAVA_OPTS>-Xmx512m</JAVA_OPTS>
71+
</environmentVariables>
72+
<arguments>
73+
<argument>wrapper</argument>
74+
<argument>--gradle-version</argument>
75+
<argument>${gradle-wrapper.version}</argument>
76+
<argument>--no-daemon</argument>
77+
</arguments>
78+
<workingDirectory>${project.build.directory}/gradle-wrapper</workingDirectory>
79+
<addOutputToClasspath>true</addOutputToClasspath>
80+
</configuration>
81+
<goals>
82+
<goal>exec</goal>
83+
</goals>
84+
</execution>
85+
</executions>
86+
</plugin>
87+
<plugin>
88+
<artifactId>maven-resources-plugin</artifactId>
89+
<executions>
90+
<execution>
91+
<id>copy-gradle-wrapper</id>
92+
<phase>generate-sources</phase>
93+
<goals>
94+
<goal>copy-resources</goal>
95+
</goals>
96+
<configuration>
97+
<propertiesEncoding>UTF-8</propertiesEncoding>
98+
<outputDirectory>${project.build.outputDirectory}/codestarts/quarkus/tooling/gradle-wrapper/base/</outputDirectory>
99+
<resources>
100+
<resource>
101+
<directory>${project.build.directory}/gradle-wrapper/</directory>
102+
<includes>
103+
<include>gradle/wrapper/**</include>
104+
<include>gradlew</include>
105+
<include>gradlew.bat</include>
106+
</includes>
107+
<filtering>false</filtering>
108+
</resource>
109+
</resources>
110+
</configuration>
111+
</execution>
112+
</executions>
113+
</plugin>
114+
</plugins>
25115
</build>
26116

117+
<profiles>
118+
<profile>
119+
<id>windows</id>
120+
<activation>
121+
<os>
122+
<family>windows</family>
123+
</os>
124+
</activation>
125+
<properties>
126+
<gradle.executable>gradlew.bat</gradle.executable>
127+
</properties>
128+
</profile>
129+
</profiles>
130+
27131
</project>

independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/tooling/gradle-wrapper/base/.gitkeep

Whitespace-only changes.
-42.7 KB
Binary file not shown.

independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/tooling/gradle-wrapper/base/gradle/wrapper/gradle-wrapper.tpl.qute.properties

Lines changed: 0 additions & 7 deletions
This file was deleted.

independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/tooling/gradle-wrapper/base/gradlew

Lines changed: 0 additions & 251 deletions
This file was deleted.

0 commit comments

Comments
 (0)