Skip to content

Commit cf76724

Browse files
committed
Merge pull request spring-projects#41957 from PiyalAhmed
* pr/41957: Polish Closes spring-projectsgh-41957
2 parents d23a703 + 016e70c commit cf76724

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

buildSrc/src/main/java/org/springframework/boot/build/mavenplugin/MavenPluginPlugin.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
import org.gradle.api.attributes.DocsType;
5656
import org.gradle.api.attributes.Usage;
5757
import org.gradle.api.component.AdhocComponentWithVariants;
58+
import org.gradle.api.component.ConfigurationVariantDetails;
5859
import org.gradle.api.component.SoftwareComponent;
5960
import org.gradle.api.file.CopySpec;
6061
import org.gradle.api.file.DirectoryProperty;
@@ -132,7 +133,7 @@ private void publishOptionalDependenciesInPom(Project project) {
132133
if (component instanceof AdhocComponentWithVariants componentWithVariants) {
133134
componentWithVariants.addVariantsFromConfiguration(
134135
project.getConfigurations().getByName(OptionalDependenciesPlugin.OPTIONAL_CONFIGURATION_NAME),
135-
(variant) -> variant.mapToOptional());
136+
ConfigurationVariantDetails::mapToOptional);
136137
}
137138
});
138139
MavenPublication publication = (MavenPublication) project.getExtensions()

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ private void applyConnectionDetails(FlywayConnectionDetails connectionDetails, D
230230
*/
231231
private void configureProperties(FluentConfiguration configuration, FlywayProperties properties) {
232232
// NOTE: Using method references in the mapper methods can break
233-
// back-compatibilty (see gh-38164)
233+
// back-compatibility (see gh-38164)
234234
PropertyMapper map = PropertyMapper.get().alwaysApplyingWhenNonNull();
235235
String[] locations = new LocationResolver(configuration.getDataSource())
236236
.resolveLocations(properties.getLocations())

0 commit comments

Comments
 (0)