"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "buildSrc/src/main/java/org/springframework/boot/build/autoconfigure/AutoConfigurationPlugin.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.

AutoConfigurationPlugin.java  (spring-boot-2.7.3):AutoConfigurationPlugin.java  (spring-boot-2.7.4)
/* /*
* Copyright 2012-2021 the original author or authors. * Copyright 2012-2022 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
* *
* https://www.apache.org/licenses/LICENSE-2.0 * https://www.apache.org/licenses/LICENSE-2.0
* *
* Unless required by applicable law or agreed to in writing, software * Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, * distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
skipping to change at line 27 skipping to change at line 27
package org.springframework.boot.build.autoconfigure; package org.springframework.boot.build.autoconfigure;
import java.io.File; import java.io.File;
import java.util.Collections; import java.util.Collections;
import java.util.concurrent.Callable; import java.util.concurrent.Callable;
import org.gradle.api.Plugin; import org.gradle.api.Plugin;
import org.gradle.api.Project; import org.gradle.api.Project;
import org.gradle.api.artifacts.Configuration; import org.gradle.api.artifacts.Configuration;
import org.gradle.api.plugins.JavaPlugin; import org.gradle.api.plugins.JavaPlugin;
import org.gradle.api.plugins.JavaPluginConvention; import org.gradle.api.plugins.JavaPluginExtension;
import org.gradle.api.tasks.SourceSet; import org.gradle.api.tasks.SourceSet;
import org.springframework.boot.build.DeployedPlugin; import org.springframework.boot.build.DeployedPlugin;
import org.springframework.boot.build.context.properties.ConfigurationProperties Plugin; import org.springframework.boot.build.context.properties.ConfigurationProperties Plugin;
/** /**
* {@link Plugin} for projects that define auto-configuration. When applied, the plugin * {@link Plugin} for projects that define auto-configuration. When applied, the plugin
* applies the {@link DeployedPlugin}. Additionally, it reacts to the presence o f the * applies the {@link DeployedPlugin}. Additionally, it reacts to the presence o f the
* {@link JavaPlugin} by: * {@link JavaPlugin} by:
* *
skipping to change at line 69 skipping to change at line 69
project.getPlugins().apply(ConfigurationPropertiesPlugin. class); project.getPlugins().apply(ConfigurationPropertiesPlugin. class);
Configuration annotationProcessors = project.getConfigura tions() Configuration annotationProcessors = project.getConfigura tions()
.getByName(JavaPlugin.ANNOTATION_PROCESSO R_CONFIGURATION_NAME); .getByName(JavaPlugin.ANNOTATION_PROCESSO R_CONFIGURATION_NAME);
annotationProcessors.getDependencies() annotationProcessors.getDependencies()
.add(project.getDependencies().project(Co llections.singletonMap("path", .add(project.getDependencies().project(Co llections.singletonMap("path",
":spring-boot-project:spr ing-boot-tools:spring-boot-autoconfigure-processor"))); ":spring-boot-project:spr ing-boot-tools:spring-boot-autoconfigure-processor")));
annotationProcessors.getDependencies() annotationProcessors.getDependencies()
.add(project.getDependencies().project(Co llections.singletonMap("path", .add(project.getDependencies().project(Co llections.singletonMap("path",
":spring-boot-project:spr ing-boot-tools:spring-boot-configuration-processor"))); ":spring-boot-project:spr ing-boot-tools:spring-boot-configuration-processor")));
project.getTasks().create("autoConfigurationMetadata", Au toConfigurationMetadata.class, (task) -> { project.getTasks().create("autoConfigurationMetadata", Au toConfigurationMetadata.class, (task) -> {
SourceSet main = project.getConvention().getPlugi n(JavaPluginConvention.class).getSourceSets() SourceSet main = project.getExtensions().getByTyp e(JavaPluginExtension.class).getSourceSets()
.getByName(SourceSet.MAIN_SOURCE_ SET_NAME); .getByName(SourceSet.MAIN_SOURCE_ SET_NAME);
task.setSourceSet(main); task.setSourceSet(main);
task.dependsOn(main.getClassesTaskName()); task.dependsOn(main.getClassesTaskName());
task.setOutputFile(new File(project.getBuildDir() , "auto-configuration-metadata.properties")); task.setOutputFile(new File(project.getBuildDir() , "auto-configuration-metadata.properties"));
project.getArtifacts().add(AutoConfigurationPlugi n.AUTO_CONFIGURATION_METADATA_CONFIGURATION_NAME, project.getArtifacts().add(AutoConfigurationPlugi n.AUTO_CONFIGURATION_METADATA_CONFIGURATION_NAME,
project.provider((Callable<File>) task::getOutputFile), (artifact) -> artifact.builtBy(task)); project.provider((Callable<File>) task::getOutputFile), (artifact) -> artifact.builtBy(task));
}); });
}); });
} }
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 lines changed or added

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