Skip to content

Commit 2f14478

Browse files
author
TheSnoozer
committed
give some of the settings a better name
1 parent 771608c commit 2f14478

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/main/java/io/github/git/commit/id/gradle/plugin/GitCommitIdPluginFormatSettingsExtension.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,20 +79,20 @@ public abstract class GitCommitIdPluginFormatSettingsExtension {
7979
*
8080
* <p>Defaults to {@code yyyy-MM-dd'T'HH:mm:ssZ}
8181
*
82-
* <p>Refer to {@link #getExportDateFormatTimeZone()} if you want to change the time-zone.
82+
* <p>Refer to {@link #getDateFormatTimeZone()} if you want to change the time-zone.
8383
*/
84-
public abstract Property<String> getExportDateFormat();
84+
public abstract Property<String> getDateFormat();
8585

8686
/**
87-
* Allows to configure the time zone which is utilized for {@link #getExportDateFormat()}.
87+
* Allows to configure the time zone which is utilized for {@link #getDateFormat()}.
8888
*
8989
* <p>Defaults to {@code java.util.TimeZone.getDefault().getID()}.
9090
* Allows various formats of timezone configuration
9191
* (e.g. 'America/Los_Angeles', 'GMT+10', 'PST').
9292
* As a general warning try to avoid three-letter time zone IDs because the same
9393
* abbreviation are often used for multiple time zones.
9494
*/
95-
public abstract Property<String> getExportDateFormatTimeZone();
95+
public abstract Property<String> getDateFormatTimeZone();
9696

9797
@Inject
9898
public ProjectLayout getProjectLayout() {
@@ -105,7 +105,7 @@ public ProjectLayout getProjectLayout() {
105105
@Inject
106106
public GitCommitIdPluginFormatSettingsExtension() {
107107
getPropertyPrefix().convention("git");
108-
getExportDateFormat().convention("yyyy-MM-dd'T'HH:mm:ssZ");
109-
getExportDateFormatTimeZone().convention(TimeZone.getDefault().getID());
108+
getDateFormat().convention("yyyy-MM-dd'T'HH:mm:ssZ");
109+
getDateFormatTimeZone().convention(TimeZone.getDefault().getID());
110110
}
111111
}

src/main/java/io/github/git/commit/id/gradle/plugin/GitCommitIdPluginGenerationTask.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,14 +176,14 @@ public LogInterface getLogInterface() {
176176
@Override
177177
public String getDateFormat() {
178178
return getGitCommitIdPluginFormatSettingsExtension()
179-
.getExportDateFormat().get();
179+
.getDateFormat().get();
180180
}
181181

182182
@Nonnull
183183
@Override
184184
public String getDateFormatTimeZone() {
185185
return getGitCommitIdPluginFormatSettingsExtension()
186-
.getExportDateFormatTimeZone().get();
186+
.getDateFormatTimeZone().get();
187187
}
188188

189189
@Nonnull

0 commit comments

Comments
 (0)