Browse Source

Polish

pull/30300/merge
Stéphane Nicoll 1 year ago
parent
commit
73a5229b03
  1. 3
      buildSrc/src/main/java/org/springframework/build/api/ApiDiffPlugin.java
  2. 6
      buildSrc/src/main/java/org/springframework/build/hint/RuntimeHintsAgentArgumentProvider.java
  3. 2
      buildSrc/src/main/java/org/springframework/build/optional/OptionalDependenciesPlugin.java
  4. 16
      buildSrc/src/main/java/org/springframework/build/shadow/ShadowSource.java

3
buildSrc/src/main/java/org/springframework/build/api/ApiDiffPlugin.java

@ -13,6 +13,7 @@ @@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.build.api;
import java.io.File;
@ -138,4 +139,4 @@ public class ApiDiffPlugin implements Plugin<Project> { @@ -138,4 +139,4 @@ public class ApiDiffPlugin implements Plugin<Project> {
return project.file(outDir.resolve(project.getName() + ".html").toString());
}
}
}

6
buildSrc/src/main/java/org/springframework/build/hint/RuntimeHintsAgentArgumentProvider.java

@ -16,14 +16,14 @@ @@ -16,14 +16,14 @@
package org.springframework.build.hint;
import java.util.Collections;
import org.gradle.api.file.ConfigurableFileCollection;
import org.gradle.api.provider.SetProperty;
import org.gradle.api.tasks.Classpath;
import org.gradle.api.tasks.Input;
import org.gradle.process.CommandLineArgumentProvider;
import java.util.Collections;
/**
* Argument provider for registering the runtime hints agent with a Java process.
*/
@ -45,4 +45,4 @@ public interface RuntimeHintsAgentArgumentProvider extends CommandLineArgumentPr @@ -45,4 +45,4 @@ public interface RuntimeHintsAgentArgumentProvider extends CommandLineArgumentPr
getExcludedPackages().get().forEach(packageName -> packages.append('-').append(packageName).append(','));
return Collections.singleton("-javaagent:" + getAgentJar().getSingleFile() + "=" + packages);
}
}
}

2
buildSrc/src/main/java/org/springframework/build/optional/OptionalDependenciesPlugin.java

@ -53,4 +53,4 @@ public class OptionalDependenciesPlugin implements Plugin<Project> { @@ -53,4 +53,4 @@ public class OptionalDependenciesPlugin implements Plugin<Project> {
});
}
}
}

16
buildSrc/src/main/java/org/springframework/build/shadow/ShadowSource.java

@ -1,3 +1,19 @@ @@ -1,3 +1,19 @@
/*
* Copyright 2002-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.build.shadow;
import java.io.File;

Loading…
Cancel
Save