Skip to content

Commit 73b7705

Browse files
committed
Merge branch '3.2.x'
Closes gh-40924
2 parents 9def6f8 + d80cf05 commit 73b7705

File tree

1 file changed

+2
-13
lines changed
  • spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/tasks/buildinfo

1 file changed

+2
-13
lines changed

spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/tasks/buildinfo/BuildInfoProperties.java

+2-13
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2023 the original author or authors.
2+
* Copyright 2012-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -36,8 +36,6 @@
3636
import org.gradle.api.tasks.Internal;
3737
import org.gradle.api.tasks.Optional;
3838

39-
import org.springframework.util.function.SingletonSupplier;
40-
4139
/**
4240
* The properties that are written into the {@code build-info.properties} file.
4341
*
@@ -49,7 +47,7 @@ public abstract class BuildInfoProperties implements Serializable {
4947

5048
private final SetProperty<String> excludes;
5149

52-
private final Supplier<String> creationTime = SingletonSupplier.of(new CurrentIsoInstantSupplier());
50+
private final Supplier<String> creationTime = () -> DateTimeFormatter.ISO_INSTANT.format(Instant.now());
5351

5452
@Inject
5553
public BuildInfoProperties(Project project, SetProperty<String> excludes) {
@@ -172,13 +170,4 @@ private Map<String, Object> applyExclusions(Map<String, Object> input) {
172170
return output;
173171
}
174172

175-
private static final class CurrentIsoInstantSupplier implements Supplier<String> {
176-
177-
@Override
178-
public String get() {
179-
return DateTimeFormatter.ISO_INSTANT.format(Instant.now());
180-
}
181-
182-
}
183-
184173
}

0 commit comments

Comments
 (0)