|
15 | 15 | <Module-Name>io.jooby.cli</Module-Name> |
16 | 16 | <jline.version>3.30.6</jline.version> |
17 | 17 | <picocli.version>4.7.7</picocli.version> |
18 | | - <!-- No argLine, make reproducible builds happy --> |
19 | | - <argLine/> |
| 18 | + <cli.dependencies>${project.build.outputDirectory}${file.separator}dependencies.properties</cli.dependencies> |
20 | 19 | </properties> |
21 | 20 |
|
22 | 21 | <dependencies> |
|
27 | 26 | <scope>provided</scope> |
28 | 27 | </dependency> |
29 | 28 |
|
30 | | - <!-- https://mvnrepository.com/artifact/com.github.jknack/handlebars --> |
31 | 29 | <dependency> |
32 | 30 | <groupId>com.github.jknack</groupId> |
33 | 31 | <artifactId>handlebars</artifactId> |
34 | 32 | </dependency> |
35 | 33 |
|
36 | | - <!-- https://mvnrepository.com/artifact/info.picocli/picocli --> |
37 | 34 | <dependency> |
38 | 35 | <groupId>info.picocli</groupId> |
39 | 36 | <artifactId>picocli</artifactId> |
|
105 | 102 | </goals> |
106 | 103 | <phase>generate-resources</phase> |
107 | 104 | <configuration> |
108 | | - <outputFile>${project.build.outputDirectory}${file.separator}dependencies.properties</outputFile> |
| 105 | + <outputFile>${cli.dependencies}</outputFile> |
| 106 | + </configuration> |
| 107 | + </execution> |
| 108 | + </executions> |
| 109 | + </plugin> |
| 110 | + <!-- Cleanup output from write-project-properties, required for reproducible builds (excludes argLine) --> |
| 111 | + <plugin> |
| 112 | + <groupId>org.apache.maven.plugins</groupId> |
| 113 | + <artifactId>maven-antrun-plugin</artifactId> |
| 114 | + <version>${maven-antrun-plugin.version}</version> |
| 115 | + <executions> |
| 116 | + <execution> |
| 117 | + <phase>generate-resources</phase> |
| 118 | + <goals> |
| 119 | + <goal>run</goal> |
| 120 | + </goals> |
| 121 | + <configuration> |
| 122 | + <target> |
| 123 | + <loadfile property="filtered.dependencies" srcFile="${cli.dependencies}"> |
| 124 | + <filterchain> |
| 125 | + <linecontains> |
| 126 | + <contains value=".version"/> |
| 127 | + </linecontains> |
| 128 | + <sortfilter/> |
| 129 | + </filterchain> |
| 130 | + </loadfile> |
| 131 | + <echo message="# dependencies:${line.separator}${filtered.dependencies}" file="${cli.dependencies}" /> |
| 132 | + </target> |
109 | 133 | </configuration> |
110 | 134 | </execution> |
111 | 135 | </executions> |
|
128 | 152 | <release>17</release> |
129 | 153 | </configuration> |
130 | 154 | </plugin> |
131 | | - <!-- sure-fire --> |
132 | | - <plugin> |
133 | | - <groupId>org.apache.maven.plugins</groupId> |
134 | | - <artifactId>maven-surefire-plugin</artifactId> |
135 | | - <version>${maven-surefire-plugin.version}</version> |
136 | | - <inherited>false</inherited> |
137 | | - <configuration> |
138 | | - <includes> |
139 | | - <include>**/*Test.java</include> |
140 | | - <include>**/*Tests.java</include> |
141 | | - <include>**/*Feature.java</include> |
142 | | - <include>**/*Issue*.java</include> |
143 | | - </includes> |
144 | | - <useModulePath>false</useModulePath> |
145 | | - <argLine>-javaagent:${maven.m2.repo}${file.separator}${mockito.agent}</argLine> |
146 | | - </configuration> |
147 | | - </plugin> |
148 | 155 | <plugin> |
149 | 156 | <groupId>com.fizzed</groupId> |
150 | 157 | <artifactId>stork-maven-plugin</artifactId> |
|
0 commit comments