From 73438f01aaf7658e2e885cda31b24bb99dbc67f9 Mon Sep 17 00:00:00 2001 From: Steve Riesenberg <5248162+sjohnr@users.noreply.github.com> Date: Wed, 20 Mar 2024 15:21:42 -0500 Subject: [PATCH] Apply formatting --- .../gradle/plugin/maven/SpringArtifactoryPlugin.java | 9 ++++++--- .../gradle/plugin/release/CreateGitHubReleaseTask.java | 3 ++- 2 files changed, 8 insertions(+), 4 deletions(-) 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 8f02d44..587a711 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 @@ -70,9 +70,12 @@ public void apply(Project project) { // Gather Artifactory repository configuration Map env = System.getenv(); String artifactoryUrl = env.getOrDefault(ARTIFACTORY_URL_NAME, DEFAULT_ARTIFACTORY_URL); - String snapshotRepository = env.getOrDefault(ARTIFACTORY_SNAPSHOT_REPOSITORY, DEFAULT_ARTIFACTORY_SNAPSHOT_REPOSITORY); - String milestoneRepository = env.getOrDefault(ARTIFACTORY_MILESTONE_REPOSITORY, DEFAULT_ARTIFACTORY_MILESTONE_REPOSITORY); - String releaseRepository = env.getOrDefault(ARTIFACTORY_RELEASE_REPOSITORY, DEFAULT_ARTIFACTORY_RELEASE_REPOSITORY); + String snapshotRepository = env.getOrDefault(ARTIFACTORY_SNAPSHOT_REPOSITORY, + DEFAULT_ARTIFACTORY_SNAPSHOT_REPOSITORY); + String milestoneRepository = env.getOrDefault(ARTIFACTORY_MILESTONE_REPOSITORY, + DEFAULT_ARTIFACTORY_MILESTONE_REPOSITORY); + String releaseRepository = env.getOrDefault(ARTIFACTORY_RELEASE_REPOSITORY, + DEFAULT_ARTIFACTORY_RELEASE_REPOSITORY); String projectKey = env.get(ARTIFACTORY_PROJECT_KEY); String buildName = env.get(ARTIFACTORY_BUILD_NAME); String buildNumber = env.get(ARTIFACTORY_BUILD_NUMBER); diff --git a/release-plugin/src/main/java/io/spring/gradle/plugin/release/CreateGitHubReleaseTask.java b/release-plugin/src/main/java/io/spring/gradle/plugin/release/CreateGitHubReleaseTask.java index caed26b..bb21dbf 100644 --- a/release-plugin/src/main/java/io/spring/gradle/plugin/release/CreateGitHubReleaseTask.java +++ b/release-plugin/src/main/java/io/spring/gradle/plugin/release/CreateGitHubReleaseTask.java @@ -89,7 +89,8 @@ public void createGitHubRelease() { if (createRelease) { var springReleases = new SpringReleases(gitHubAccessToken); - springReleases.createGitHubRelease(repository.owner(), repository.name(), versionPrefix + version, branch, body); + springReleases.createGitHubRelease(repository.owner(), repository.name(), versionPrefix + version, branch, + body); } }