You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/pl/project13/maven/git/GitCommitIdMojo.java
+49-99Lines changed: 49 additions & 99 deletions
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,7 @@
54
54
importjava.util.TimeZone;
55
55
56
56
/**
57
-
* Goal which puts git build-time information into property files or maven's properties.
57
+
* Puts git build-time information into property files or maven's properties.
58
58
*
59
59
* @since 1.0
60
60
*/
@@ -105,80 +105,66 @@ public class GitCommitIdMojo extends AbstractMojo {
105
105
privateMavenSessionsession;
106
106
107
107
/**
108
-
* <p>Set this to {@code true} to inject git properties into all reactor projects, not just the current one.</p>
108
+
* <p>Set this to {@code 'true'} to inject git properties into all reactor projects, not just the current one.</p>
109
109
*
110
110
* <p>Injecting into all projects may slow down the build and you don't always need this feature.
111
-
* For details about why you might want to skip this: <a href="https://github.com/ktoso/maven-git-commit-id-plugin/pull/65">https://github.com/ktoso/maven-git-commit-id-plugin/pull/65</a>.
111
+
* See <a href="https://github.com/ktoso/maven-git-commit-id-plugin/pull/65">pull #65</a> for details about why you might want to skip this.
112
112
* </p>
113
-
*
114
-
* <p>Defaults to {@code false}.</p>
115
113
*/
116
114
@Parameter(defaultValue = "false")
117
115
privatebooleaninjectAllReactorProjects;
118
116
119
117
/**
120
-
* <p>Set this to {@code true} to print more info while scanning for paths.
121
-
* It will make git-commit-id "eat it's own dog food" :-)</p>
122
-
*
123
-
* <p>Defaults to {@code false}.</p>
118
+
* Set this to {@code 'true'} to print more info while scanning for paths.
119
+
* It will make git-commit-id "eat its own dog food" :-)
124
120
*/
125
121
@Parameter(defaultValue = "false")
126
122
privatebooleanverbose;
127
123
128
124
/**
129
-
* <p>Set this to {@code false} to execute plugin in 'pom' packaged projects.</p>
130
-
*
131
-
* <p>Defaults to {@code true}.</p>
125
+
* Set this to {@code 'false'} to execute plugin in 'pom' packaged projects.
132
126
*/
133
127
@Parameter(defaultValue = "true")
134
128
privatebooleanskipPoms;
135
129
136
130
/**
137
-
* <p>Set this to {@code true} to generate {@code git.properties} file.
138
-
* By default plugin only adds properties to maven project properties.</p>
139
-
*
140
-
* <p>Defaults to {@code false}.</p>
131
+
* Set this to {@code 'true'} to generate {@code 'git.properties'} file.
132
+
* By default plugin only adds properties to maven project properties.
141
133
*/
142
134
@Parameter(defaultValue = "false")
143
135
privatebooleangenerateGitPropertiesFile;
144
136
145
137
/**
146
-
* <p>The location of {@code git.properties} file. Set {@code generateGitPropertiesFile} to {@code true}
138
+
* <p>The location of {@code 'git.properties'} file. Set {@code 'generateGitPropertiesFile'} to {@code 'true'}
147
139
* to generate this file.</p>
148
140
*
149
-
* <p>The path here is relative to your projects src directory.</p>
150
-
*
151
-
* <p>Defaults to {@code ${project.build.outputDirectory}/git.properties}.</p>
141
+
* <p>The path here is relative to your project src directory.</p>
* <p>The timezone used in the date format of dates exported by this plugin.
219
-
* It should be a valid Timezone string (e.g. 'America/Los_Angeles', 'GMT+10', 'PST').</p>
197
+
* It should be a valid Timezone string such as {@code 'America/Los_Angeles'}, {@code 'GMT+10'} or {@code 'PST'}.</p>
220
198
*
221
199
* <p>Try to avoid three-letter time zone IDs because the same abbreviation is often used for multiple time zones.
222
200
* Please review <a href="https://docs.oracle.com/javase/7/docs/api/java/util/TimeZone.html">https://docs.oracle.com/javase/7/docs/api/java/util/TimeZone.html</a> for more information on this issue.</p>
223
-
*
224
-
* <p>Defaults to {@code java.util.TimeZone.getDefault().getID()}.</p>
225
201
*/
226
202
@Parameter
227
203
privateStringdateFormatTimeZone;
228
204
229
205
/**
230
-
* Set this to {@code false} to avoid failing the build on missing {@code .git} directory.
231
-
*
232
-
* <p>Defaults to {@code true}.</p>
206
+
* Set this to {@code 'false'} to continue the build on missing {@code '.git'} directory.
233
207
*/
234
208
@Parameter(defaultValue = "true")
235
209
privatebooleanfailOnNoGitDirectory;
236
210
237
211
/**
238
-
* <p>Set this to {@code false} to continue the build even if unable to get enough data for a complete run.
212
+
* <p>Set this to {@code 'false'} to continue the build even if unable to get enough data for a complete run.
239
213
* This may be useful during CI builds if the CI server does weird things to the repository.</p>
240
214
*
241
-
* <p>Setting this value to {@code false} causes the plugin to gracefully tell you "I did my best"
242
-
* and abort it's execution if unable to obtain git meta data - yet the build will continue to run without failing.</p>
215
+
* <p>Setting this value to {@code 'false'} causes the plugin to gracefully tell you "I did my best"
216
+
* and abort its execution if unable to obtain git meta data - yet the build will continue to run without failing.</p>
0 commit comments