"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/tasks/buildinfo/BuildInfoProperties.java" between
spring-boot-2.7.3.tar.gz and spring-boot-2.7.4.tar.gz

About: Spring Boot helps to create Spring-powered, production-grade applications and services.

BuildInfoProperties.java  (spring-boot-2.7.3):BuildInfoProperties.java  (spring-boot-2.7.4)
skipping to change at line 69 skipping to change at line 69
this.group = project.getObjects().property(String.class); this.group = project.getObjects().property(String.class);
this.group.set(project.provider(() -> project.getGroup().toString ())); this.group.set(project.provider(() -> project.getGroup().toString ()));
this.artifact = project.getObjects().property(String.class); this.artifact = project.getObjects().property(String.class);
this.version = project.getObjects().property(String.class); this.version = project.getObjects().property(String.class);
this.version.set(projectVersion(project)); this.version.set(projectVersion(project));
this.name = project.getObjects().property(String.class); this.name = project.getObjects().property(String.class);
this.name.set(project.provider(project::getName)); this.name.set(project.provider(project::getName));
} }
private Provider<String> projectVersion(Project project) { private Provider<String> projectVersion(Project project) {
Provider<String> externalVersionProperty = project.getProviders() Provider<String> externalVersionProperty = forUseAtConfigurationT
.gradleProperty("version") ime(
.forUseAtConfigurationTime(); project.getProviders().gradleProperty("version"))
;
externalVersionProperty.getOrNull(); externalVersionProperty.getOrNull();
return project.provider(() -> project.getVersion().toString()); return project.provider(() -> project.getVersion().toString());
} }
@SuppressWarnings("deprecation")
private Provider<String> forUseAtConfigurationTime(Provider<String> provi
der) {
return provider.forUseAtConfigurationTime();
}
/** /**
* Returns the value used for the {@code build.group} property. Defaults to the * Returns the value used for the {@code build.group} property. Defaults to the
* {@link Project#getGroup() Project's group}. * {@link Project#getGroup() Project's group}.
* @return the group * @return the group
*/ */
@Input @Input
@Optional @Optional
public String getGroup() { public String getGroup() {
return this.group.getOrNull(); return this.group.getOrNull();
} }
 End of changes. 2 change blocks. 
3 lines changed or deleted 10 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)