From 4e8587cdb79652a203ad0399449a6a34768c1d2e Mon Sep 17 00:00:00 2001 From: Steve Riesenberg <5248162+sjohnr@users.noreply.github.com> Date: Wed, 17 Apr 2024 12:23:16 -0500 Subject: [PATCH] Polish gh-21 --- .../SpringJavaCheckstylePlugin.java | 2 +- .../maven/SpringPublishLocalPlugin.java | 22 +++++++++---------- .../plugin/maven/SpringArtifactoryPlugin.java | 2 +- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/buildSrc/src/main/java/org/springframework/gradle/checkstyle/SpringJavaCheckstylePlugin.java b/buildSrc/src/main/java/org/springframework/gradle/checkstyle/SpringJavaCheckstylePlugin.java index 1b482b0..1478222 100644 --- a/buildSrc/src/main/java/org/springframework/gradle/checkstyle/SpringJavaCheckstylePlugin.java +++ b/buildSrc/src/main/java/org/springframework/gradle/checkstyle/SpringJavaCheckstylePlugin.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2022 the original author or authors. + * Copyright 2002-2024 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. diff --git a/buildSrc/src/main/java/org/springframework/gradle/maven/SpringPublishLocalPlugin.java b/buildSrc/src/main/java/org/springframework/gradle/maven/SpringPublishLocalPlugin.java index c66e917..aeac1be 100644 --- a/buildSrc/src/main/java/org/springframework/gradle/maven/SpringPublishLocalPlugin.java +++ b/buildSrc/src/main/java/org/springframework/gradle/maven/SpringPublishLocalPlugin.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2022 the original author or authors. + * Copyright 2002-2024 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. @@ -27,14 +27,14 @@ * @author Steve Riesenberg */ public class SpringPublishLocalPlugin implements Plugin { - @Override - public void apply(Project project) { - project.getPlugins().withType(MavenPublishPlugin.class, (mavenPublish) -> { - PublishingExtension publishing = project.getExtensions().getByType(PublishingExtension.class); - publishing.getRepositories().maven((maven) -> { - maven.setName("local"); - maven.setUrl(new File(project.getRootProject().getLayout().getBuildDirectory().getAsFile().get(), "publications/repos")); - }); - }); - } + @Override + public void apply(Project project) { + project.getPlugins().withType(MavenPublishPlugin.class, (mavenPublish) -> { + PublishingExtension publishing = project.getExtensions().getByType(PublishingExtension.class); + publishing.getRepositories().maven((maven) -> { + maven.setName("local"); + maven.setUrl(new File(project.getRootProject().getLayout().getBuildDirectory().getAsFile().get(), "publications/repos")); + }); + }); + } } diff --git a/maven-plugin/src/main/java/io/spring/gradle/plugin/maven/SpringArtifactoryPlugin.java b/maven-plugin/src/main/java/io/spring/gradle/plugin/maven/SpringArtifactoryPlugin.java index 587a711..a29878c 100644 --- a/maven-plugin/src/main/java/io/spring/gradle/plugin/maven/SpringArtifactoryPlugin.java +++ b/maven-plugin/src/main/java/io/spring/gradle/plugin/maven/SpringArtifactoryPlugin.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2023 the original author or authors. + * Copyright 2002-2024 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.