Fix indentation for all pages

This commit is contained in:
Marcin Grzejszczak
2023-09-08 12:45:23 +02:00
parent 58b4fe066c
commit e4d9a55a40
3 changed files with 21 additions and 20 deletions

View File

@@ -4,7 +4,7 @@ Spring Cloud Build is a common utility project for Spring Cloud
to use for plugin and dependency management.
[[building-and-deploying]]
== Building and Deploying
= Building and Deploying
To install locally:
@@ -40,12 +40,12 @@ $ mvn deploy -P central -DaltReleaseDeploymentRepository=sonatype-nexus-staging:
(the "central" profile is available for all projects in Spring Cloud and it sets up the gpg jar signing, and the repository has to be specified separately for this project because it is a parent of the starter parent which users in turn have as their own parent).
[[contributing]]
== Contributing
= Contributing
include::https://raw.githubusercontent.com/spring-cloud/spring-cloud-build/main/docs/src/main/asciidoc/contributing.adoc[]
[[flattening-the-poms]]
== Flattening the POMs
= Flattening the POMs
To avoid propagating build setup that is required to build a Spring Cloud project, we're using the maven flatten plugin. It has the advantage of letting you use whatever features you need while publishing "clean" pom to the repository.
@@ -64,7 +64,7 @@ In order to add it, add the `org.codehaus.mojo:flatten-maven-plugin` to your `po
----
[[reusing-the-documentation]]
== Reusing the documentation
= Reusing the documentation
Spring Cloud Build publishes its `spring-cloud-build-docs` module that contains
helpful scripts (e.g. README generation ruby script) and css, xslt and images
@@ -136,7 +136,7 @@ include::https://raw.githubusercontent.com/spring-cloud/spring-cloud-build/main/
----
[[updating-the-guides]]
== Updating the guides
= Updating the guides
We assume that your project contains guides under the `guides` folder.

View File

@@ -1,7 +1,7 @@
:jdkversion: 17
[[basic-compile-and-test]]
=== Basic Compile and Test
= Basic Compile and Test
To build the source you will need to install JDK {jdkversion}.
@@ -30,7 +30,7 @@ require that a local instance of [Docker](https://www.docker.com/get-started) is
[[documentation]]
=== Documentation
= Documentation
The spring-cloud-build module has a "docs" profile, and if you switch
that on it will try to build asciidoc sources from
@@ -42,7 +42,7 @@ any changes in the README it will then show up after a Maven build as
a modified file in the correct place. Just commit it and push the change.
[[working-with-the-code]]
=== Working with the code
= Working with the code
If you don't have an IDE preference we would recommend that you use
https://www.springsource.com/developer/sts[Spring Tools Suite] or
https://eclipse.org[Eclipse] when working with the code. We use the
@@ -50,13 +50,13 @@ https://eclipse.org/m2e/[m2eclipse] eclipse plugin for maven support. Other IDEs
should also work without issue as long as they use Maven 3.3.3 or better.
[[activate-the-spring-maven-profile]]
==== Activate the Spring Maven profile
== Activate the Spring Maven profile
Spring Cloud projects require the 'spring' Maven profile to be activated to resolve
the spring milestone and snapshot repositories. Use your preferred IDE to set this
profile to be active, or you may experience build errors.
[[importing-into-eclipse-with-m2eclipse]]
==== Importing into eclipse with m2eclipse
== Importing into eclipse with m2eclipse
We recommend the https://eclipse.org/m2e/[m2eclipse] eclipse plugin when working with
eclipse. If you don't already have m2eclipse installed it is available from the "eclipse
marketplace".
@@ -71,7 +71,7 @@ copy the repository settings from the "spring" profile of the parent
pom into your `settings.xml`.
[[importing-into-eclipse-without-m2eclipse]]
==== Importing into eclipse without m2eclipse
== Importing into eclipse without m2eclipse
If you prefer not to use m2eclipse you can generate eclipse project metadata using the
following command:

View File

@@ -7,7 +7,8 @@ to contribute even something trivial please do not hesitate, but
follow the guidelines below.
[[sign-the-contributor-license-agreement]]
=== Sign the Contributor License Agreement
= Sign the Contributor License Agreement
Before we accept a non-trivial patch or pull request we will need you to sign the
https://cla.pivotal.io/sign/spring[Contributor License Agreement].
Signing the contributor's agreement does not grant anyone commit rights to the main
@@ -16,13 +17,13 @@ author credit if we do. Active contributors might be asked to join the core tea
given the ability to merge pull requests.
[[code-of-conduct]]
=== Code of Conduct
= Code of Conduct
This project adheres to the Contributor Covenant https://github.com/spring-cloud/spring-cloud-build/blob/master/docs/src/main/asciidoc/code-of-conduct.adoc[code of
conduct]. By participating, you are expected to uphold this code. Please report
unacceptable behavior to spring-code-of-conduct@pivotal.io.
[[code-conventions-and-housekeeping]]
=== Code Conventions and Housekeeping
= Code Conventions and Housekeeping
None of these is essential for a pull request, but they will all help. They can also be
added after the original pull request but before a merge.
@@ -49,7 +50,7 @@ added after the original pull request but before a merge.
message (where XXXX is the issue number).
[[checkstyle]]
=== Checkstyle
= Checkstyle
Spring Cloud Build comes with a set of checkstyle rules. You can find them in the `spring-cloud-build-tools` module. The most notable files under the module are:
@@ -68,7 +69,7 @@ Spring Cloud Build comes with a set of checkstyle rules. You can find them in th
<3> Default suppression rules
[[checkstyle-configuration]]
==== Checkstyle configuration
== Checkstyle configuration
Checkstyle rules are *disabled by default*. To add checkstyle to your project just define the following properties and plugins.
@@ -132,10 +133,10 @@ $ touch .springformat
```
[[ide-setup]]
=== IDE setup
= IDE setup
[[intellij-idea]]
==== Intellij IDEA
== Intellij IDEA
In order to setup Intellij you should import our coding conventions, inspection profiles and set up the checkstyle plugin.
The following files can be found in the https://github.com/spring-cloud/spring-cloud-build/tree/master/spring-cloud-build-tools[Spring Cloud Build] project.
@@ -186,12 +187,12 @@ Go to `File` -> `Settings` -> `Other settings` -> `Checkstyle`. There click on t
IMPORTANT: Remember to set the `Scan Scope` to `All sources` since we apply checkstyle rules for production and test sources.
[[duplicate-finder]]
=== Duplicate Finder
= Duplicate Finder
Spring Cloud Build brings along the `basepom:duplicate-finder-maven-plugin`, that enables flagging duplicate and conflicting classes and resources on the java classpath.
[[duplicate-finder-configuration]]
==== Duplicate Finder configuration
== Duplicate Finder configuration
Duplicate finder is *enabled by default* and will run in the `verify` phase of your Maven build, but it will only take effect in your project if you add the `duplicate-finder-maven-plugin` to the `build` section of the projecst's `pom.xml`.