"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/bundling/CacheSpec.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.

CacheSpec.java  (spring-boot-2.7.3):CacheSpec.java  (spring-boot-2.7.4)
/* /*
* Copyright 2021-2021 the original author or authors. * Copyright 2021-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.
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.gradle.tasks.bundling; package org.springframework.boot.gradle.tasks.bundling;
import groovy.lang.Closure; import groovy.lang.Closure;
import org.gradle.api.Action; import org.gradle.api.Action;
import org.gradle.api.GradleException; import org.gradle.api.GradleException;
import org.gradle.api.tasks.Input; import org.gradle.api.tasks.Input;
import org.gradle.util.ConfigureUtil;
import org.springframework.boot.buildpack.platform.build.Cache; import org.springframework.boot.buildpack.platform.build.Cache;
/** /**
* Configuration for an image building cache. * Configuration for an image building cache.
* *
* @author Scott Frederick * @author Scott Frederick
* @since 2.6.0 * @since 2.6.0
*/ */
public class CacheSpec { public class CacheSpec {
skipping to change at line 65 skipping to change at line 64
} }
/** /**
* Configures a volume cache using the given {@code closure}. * Configures a volume cache using the given {@code closure}.
* @param closure the closure * @param closure the closure
*/ */
public void volume(Closure<?> closure) { public void volume(Closure<?> closure) {
if (this.cache != null) { if (this.cache != null) {
throw new GradleException("Each image building cache can be configured only once"); throw new GradleException("Each image building cache can be configured only once");
} }
volume(ConfigureUtil.configureUsing(closure)); volume(Closures.asAction(closure));
} }
/** /**
* Configuration for an image building cache stored in a Docker volume. * Configuration for an image building cache stored in a Docker volume.
*/ */
public static class VolumeCacheSpec { public static class VolumeCacheSpec {
private String name; private String name;
/** /**
 End of changes. 3 change blocks. 
3 lines changed or deleted 2 lines changed or added

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