parent
d23a7033dd
commit
016e70cbd2
|
|
@ -55,6 +55,7 @@ import org.gradle.api.artifacts.result.ResolvedArtifactResult;
|
|||
import org.gradle.api.attributes.DocsType;
|
||||
import org.gradle.api.attributes.Usage;
|
||||
import org.gradle.api.component.AdhocComponentWithVariants;
|
||||
import org.gradle.api.component.ConfigurationVariantDetails;
|
||||
import org.gradle.api.component.SoftwareComponent;
|
||||
import org.gradle.api.file.CopySpec;
|
||||
import org.gradle.api.file.DirectoryProperty;
|
||||
|
|
@ -132,7 +133,7 @@ public class MavenPluginPlugin implements Plugin<Project> {
|
|||
if (component instanceof AdhocComponentWithVariants componentWithVariants) {
|
||||
componentWithVariants.addVariantsFromConfiguration(
|
||||
project.getConfigurations().getByName(OptionalDependenciesPlugin.OPTIONAL_CONFIGURATION_NAME),
|
||||
(variant) -> variant.mapToOptional());
|
||||
ConfigurationVariantDetails::mapToOptional);
|
||||
}
|
||||
});
|
||||
MavenPublication publication = (MavenPublication) project.getExtensions()
|
||||
|
|
|
|||
|
|
@ -230,7 +230,7 @@ public class FlywayAutoConfiguration {
|
|||
*/
|
||||
private void configureProperties(FluentConfiguration configuration, FlywayProperties properties) {
|
||||
// NOTE: Using method references in the mapper methods can break
|
||||
// back-compatibilty (see gh-38164)
|
||||
// back-compatibility (see gh-38164)
|
||||
PropertyMapper map = PropertyMapper.get().alwaysApplyingWhenNonNull();
|
||||
String[] locations = new LocationResolver(configuration.getDataSource())
|
||||
.resolveLocations(properties.getLocations())
|
||||
|
|
|
|||
Loading…
Reference in New Issue