Go to file
Stephane Nicoll d665620a91 Use platform version rather than Boot version when applicable
Although the code still has a reference to `bootVersion` for backward
compatible reason, this commit updates the reference guide to refer to
"platform version".

Closes gh-976
2020-11-17 14:59:19 +01:00
.mvn/wrapper Upgrade to Maven Wrapper 0.5.6 and Maven 3.6.3 2020-01-02 13:21:42 +01:00
ci Upgrade docker images to Ubuntu Focal 2020-09-27 13:03:51 +02:00
eclipse http -> https 2019-08-18 14:07:02 +02:00
initializr-actuator Add support for repository mapping 2020-05-15 17:58:49 +02:00
initializr-bom Revert "Remove dependency management for Maven XML plugin" 2020-03-25 15:37:48 +01:00
initializr-docs Use platform version rather than Boot version when applicable 2020-11-17 14:59:19 +01:00
initializr-generator Polish "Encode usual XML reserved characters" 2020-11-17 13:56:41 +01:00
initializr-generator-spring Add DevTools build customizers 2020-11-13 16:15:13 +01:00
initializr-generator-test Fix MavenBuild#hasDependency to test all candidates 2020-11-12 10:59:19 +01:00
initializr-metadata Make SingleSelectCapability thread-safe 2020-06-18 17:13:21 +01:00
initializr-parent Upgrade to asciidoctor-maven-plugin 2.1.0 2020-11-16 18:17:51 +01:00
initializr-service-sample Polish 2019-10-16 11:37:21 +02:00
initializr-version-resolver Harmonize SCM information 2019-10-05 18:32:42 +01:00
initializr-web Clarify that this project does not provide a Web UI 2020-11-16 15:10:17 +01:00
src/checkstyle Add JUnit5 checkstyle rule 2019-08-18 14:42:53 +02:00
.cfignore Update for 0.5.0.M1 2013-08-04 13:50:06 +01:00
.gitattributes Upgrade to Gradle 2.12 2016-04-05 17:00:59 +02:00
.gitignore Switch project structure to use the new generator 2019-02-08 09:50:26 +01:00
CODE_OF_CONDUCT.adoc http -> https 2019-08-18 14:07:02 +02:00
CONTRIBUTING.adoc Update contributing section to mention javaformat and checkstyle 2019-10-18 10:36:28 +02:00
LICENSE.txt http -> https 2019-08-18 14:07:02 +02:00
mvnw Upgrade to Maven Wrapper 0.5.6 and Maven 3.6.3 2020-01-02 13:21:42 +01:00
mvnw.cmd Upgrade to Maven Wrapper 0.5.6 and Maven 3.6.3 2020-01-02 13:21:42 +01:00
pom.xml Switch to 0.10.0-SNAPSHOT 2020-10-08 16:07:01 +02:00
README.adoc Clarify that this project does not provide a Web UI 2020-11-16 15:10:17 +01:00

= Spring Initializr image:https://ci.spring.io/api/v1/teams/initializr/pipelines/initializr/jobs/build/badge["Build Status", link="https://ci.spring.io/teams/initializr/pipelines/initializr?groups=Build"] image:https://badges.gitter.im/spring-io/initializr.svg[link="https://gitter.im/spring-io/initializr?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge"]

:boot-doc: https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle
:code: https://github.com/spring-io/initializr/blob/master
:docs: https://docs.spring.io/initializr/docs/current-SNAPSHOT/reference
:service: https://github.com/spring-io/start.spring.io

Spring Initializr provides an extensible API to generate JVM-based projects with
implementations for several common concepts:

* Basic language generation for Java, Kotlin and Groovy.
* Build system abstraction with implementations for Apache Maven and Gradle.
* `.gitignore` support.
* Several hook-points for custom resources generations.

The various options for the projects are expressed in a metadata model that allows you to
configure the list of dependencies, supported JVM and platform versions, etc.

Spring Initializr also exposes web endpoints to generate an actual project and also
serve its metadata in a well-known format to allow third-party clients to provide the
necessary assistance.

A set of optional conventions for Spring Boot projects is provided and are used in our
production instance at link:https://start.spring.io[]. To better understand how our
service is configured, you may want to check {service}[the companion project] and, in
particular, the
{service}/blob/master/start-site/src/main/resources/application.yml[configuration of our
instance]. Such configuration is also described in details in the documentation.

NOTE: While Spring Initializr is available on Maven Central, it is still in a pre 1.0
state and major refactoring are still possible. Check the
https://github.com/spring-io/initializr/milestones[milestones page] for an overview of the
changes.

== Installation and Getting Started
The reference documentation is available in {docs}/html/[HTML format].


== Modules
Spring Initializr has the following modules:

* `initializr-actuator`: optional module to provide additional information and statistics
on project generation.
* `initializr-bom`: provides a Bill of Materials for easier dependency management in your
project.
* `initializr-docs`: documentation.
* `initializr-generator`: core project generation library.
* `initializr-generator-spring`: optional module defining the conventions for a typical
Spring Boot project. Can be reused or replaced by your own conventions.
* `initializr-generator-test`: test infrastructure for project generation.
* `initializr-metadata`: metadata infrastructure for various aspects of the project.
* `initializr-service-sample`: showcases a basic custom instance.
* `initializr-version-resolver`: optional module to extract version numbers from an
arbitrary POM.
* `initializr-web`: web endpoints for third party clients.

== Supported interfaces
Spring Initializr can be used as follows:

* On the command-line with {boot-doc}/#cli-init[the Spring Boot CLI] or simply with
`cURL` or `HTTPie`.
* In your IDE if you are using STS, IntelliJ IDEA Ultimate, NetBeans (with
https://github.com/AlexFalappa/nb-springboot[this plugin]) or VSCode (with
https://github.com/microsoft/vscode-spring-initializr[the `vscode-spring-initializr`
plugin]).
* With a custom Web UI (check ours at link:https://start.spring.io[]).

There are other command-line integrations out there and you can also build your own!

== Running your own instance
You can easily run your own instance. The `initializr-web` modules uses Spring Boot
so when it is added to a project, it will trigger the necessary auto-configuration to
deploy the service.

The `initializr-service-sample` showcases a basic custom instance with dedicated metadata.


[[build]]
== Building from Source
You need Java 1.8 and a bash-like shell.

[[building]]
=== Building
Invoke the build at the root of the project:

[indent=0]
----
    $ ./mvnw clean install
----

To generate the docs as well, you should enable the `full` profile:

[indent=0]
----
    $ ./mvnw clean install -Pfull
----

== License
Spring Initializr is Open Source software released under the
https://www.apache.org/licenses/LICENSE-2.0.html[Apache 2.0 license].