Changed modules
This commit is contained in:
@@ -25,8 +25,8 @@ import org.slf4j.LoggerFactory;
|
||||
|
||||
import org.springframework.cloud.release.internal.Releaser;
|
||||
import org.springframework.cloud.release.internal.ReleaserProperties;
|
||||
import org.springframework.cloud.release.internal.buildsystem.ProjectVersion;
|
||||
import org.springframework.cloud.release.internal.project.ProcessedProject;
|
||||
import org.springframework.cloud.release.internal.project.ProjectVersion;
|
||||
import org.springframework.cloud.release.internal.project.Projects;
|
||||
import org.springframework.context.ApplicationEvent;
|
||||
import org.springframework.context.ApplicationEventPublisher;
|
||||
|
||||
@@ -27,7 +27,6 @@ import org.springframework.cloud.release.internal.buildsystem.GradleUpdater;
|
||||
import org.springframework.cloud.release.internal.buildsystem.ProjectPomUpdater;
|
||||
import org.springframework.cloud.release.internal.docs.CustomProjectDocumentationUpdater;
|
||||
import org.springframework.cloud.release.internal.docs.DocumentationUpdater;
|
||||
import org.springframework.cloud.release.internal.docs.ProjectDocumentationUpdater;
|
||||
import org.springframework.cloud.release.internal.git.ProjectGitHandler;
|
||||
import org.springframework.cloud.release.internal.github.ProjectGitHubHandler;
|
||||
import org.springframework.cloud.release.internal.options.Parser;
|
||||
@@ -109,19 +108,11 @@ class ReleaserConfiguration {
|
||||
@Autowired(required = false)
|
||||
List<CustomProjectDocumentationUpdater> customProjectDocumentationUpdaters = new ArrayList<>();
|
||||
|
||||
@Bean
|
||||
ProjectDocumentationUpdater projectDocumentationUpdater(
|
||||
ProjectGitHandler projectGitHandler) {
|
||||
return new ProjectDocumentationUpdater(this.properties, projectGitHandler,
|
||||
this.customProjectDocumentationUpdaters);
|
||||
}
|
||||
|
||||
@Bean
|
||||
DocumentationUpdater documentationUpdater(ProjectGitHandler projectGitHandler,
|
||||
ReleaserProperties properties, TemplateGenerator templateGenerator,
|
||||
ProjectDocumentationUpdater projectDocumentationUpdater) {
|
||||
ReleaserProperties properties, TemplateGenerator templateGenerator) {
|
||||
return new DocumentationUpdater(projectGitHandler, properties, templateGenerator,
|
||||
projectDocumentationUpdater);
|
||||
this.customProjectDocumentationUpdaters);
|
||||
}
|
||||
|
||||
@Bean
|
||||
|
||||
@@ -28,10 +28,10 @@ import org.slf4j.LoggerFactory;
|
||||
|
||||
import org.springframework.cloud.release.internal.Releaser;
|
||||
import org.springframework.cloud.release.internal.ReleaserProperties;
|
||||
import org.springframework.cloud.release.internal.buildsystem.ProjectVersion;
|
||||
import org.springframework.cloud.release.internal.options.Options;
|
||||
import org.springframework.cloud.release.internal.options.OptionsBuilder;
|
||||
import org.springframework.cloud.release.internal.project.ProcessedProject;
|
||||
import org.springframework.cloud.release.internal.project.ProjectVersion;
|
||||
import org.springframework.cloud.release.internal.project.Projects;
|
||||
import org.springframework.context.ApplicationEventPublisher;
|
||||
import org.springframework.util.StringUtils;
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
* Copyright 2013-2019 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.cloud.release.cloud.buildsystem;
|
||||
|
||||
import org.springframework.cloud.release.internal.buildsystem.CustomBomParser;
|
||||
|
||||
public class SpringCloudMavenBomParserAccessor {
|
||||
|
||||
public static CustomBomParser cloud() {
|
||||
return new SpringCloudMavenBomParser();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -5,7 +5,7 @@
|
||||
* 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
|
||||
* 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,
|
||||
@@ -18,14 +18,14 @@ package org.springframework.cloud.release.internal.buildsystem;
|
||||
|
||||
import java.util.Collections;
|
||||
|
||||
import org.springframework.cloud.release.cloud.buildsystem.SpringCloudMavenBomParser;
|
||||
import org.springframework.cloud.release.cloud.buildsystem.SpringCloudMavenBomParserAccessor;
|
||||
import org.springframework.cloud.release.internal.ReleaserProperties;
|
||||
|
||||
public class MavenBomParserAccessor {
|
||||
|
||||
public static BomParser cloudMavenBomParser(ReleaserProperties properties) {
|
||||
return new MavenBomParser(properties,
|
||||
Collections.singletonList(new SpringCloudMavenBomParser()));
|
||||
Collections.singletonList(SpringCloudMavenBomParserAccessor.cloud()));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -20,6 +20,8 @@ import java.io.File;
|
||||
|
||||
import org.apache.maven.model.Model;
|
||||
|
||||
import org.springframework.cloud.release.internal.tech.PomReader;
|
||||
|
||||
/**
|
||||
* @author Marcin Grzejszczak
|
||||
*/
|
||||
|
||||
@@ -52,7 +52,6 @@ import org.springframework.cloud.release.internal.buildsystem.BomParser;
|
||||
import org.springframework.cloud.release.internal.buildsystem.GradleUpdater;
|
||||
import org.springframework.cloud.release.internal.buildsystem.MavenBomParserAccessor;
|
||||
import org.springframework.cloud.release.internal.buildsystem.ProjectPomUpdater;
|
||||
import org.springframework.cloud.release.internal.buildsystem.ProjectVersion;
|
||||
import org.springframework.cloud.release.internal.buildsystem.TestPomReader;
|
||||
import org.springframework.cloud.release.internal.buildsystem.TestUtils;
|
||||
import org.springframework.cloud.release.internal.docs.DocumentationUpdater;
|
||||
@@ -64,6 +63,7 @@ import org.springframework.cloud.release.internal.options.Options;
|
||||
import org.springframework.cloud.release.internal.options.OptionsBuilder;
|
||||
import org.springframework.cloud.release.internal.postrelease.PostReleaseActions;
|
||||
import org.springframework.cloud.release.internal.project.ProjectCommandExecutor;
|
||||
import org.springframework.cloud.release.internal.project.ProjectVersion;
|
||||
import org.springframework.cloud.release.internal.project.Projects;
|
||||
import org.springframework.cloud.release.internal.sagan.Project;
|
||||
import org.springframework.cloud.release.internal.sagan.Release;
|
||||
|
||||
@@ -38,10 +38,10 @@ import org.slf4j.LoggerFactory;
|
||||
import org.springframework.cloud.release.internal.Releaser;
|
||||
import org.springframework.cloud.release.internal.ReleaserProperties;
|
||||
import org.springframework.cloud.release.internal.ReleaserPropertiesAware;
|
||||
import org.springframework.cloud.release.internal.buildsystem.ProjectVersion;
|
||||
import org.springframework.cloud.release.internal.options.Options;
|
||||
import org.springframework.cloud.release.internal.options.OptionsBuilder;
|
||||
import org.springframework.cloud.release.internal.project.ProcessedProject;
|
||||
import org.springframework.cloud.release.internal.project.ProjectVersion;
|
||||
import org.springframework.cloud.release.internal.project.Projects;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
import org.springframework.context.ApplicationEventPublisher;
|
||||
|
||||
Reference in New Issue
Block a user