|
12 | 12 |
|
13 | 13 | <artifactId>quarkus-devtools-base-codestarts</artifactId>
|
14 | 14 | <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 | + |
15 | 21 | <build>
|
16 | 22 | <resources>
|
17 | 23 | <resource>
|
|
22 | 28 | <filtering>true</filtering>
|
23 | 29 | </resource>
|
24 | 30 | </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> |
25 | 115 | </build>
|
26 | 116 |
|
| 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 | + |
27 | 131 | </project>
|
0 commit comments