Skip to content

Commit d520107

Browse files
committed
Cross-link to Gradle Plugin docs rather than duplicating example
Closes spring-projectsgh-14878
1 parent 993c75e commit d520107

File tree

1 file changed

+3
-45
lines changed

1 file changed

+3
-45
lines changed

Diff for: spring-boot-project/spring-boot-docs/src/main/asciidoc/getting-started.adoc

+3-45
Original file line numberDiff line numberDiff line change
@@ -216,51 +216,9 @@ project. It is a small script and library that you commit alongside your code to
216216
bootstrap the build process. See {gradle-user-guide}/gradle_wrapper.html for details.
217217
****
218218

219-
The following example shows a typical `build.gradle` file:
220-
221-
[source,groovy,indent=0,subs="verbatim,attributes"]
222-
----
223-
ifeval::["{spring-boot-repo}" == "release"]
224-
plugins {
225-
id 'org.springframework.boot' version '{spring-boot-version}'
226-
id 'java'
227-
}
228-
endif::[]
229-
ifeval::["{spring-boot-repo}" != "release"]
230-
buildscript {
231-
repositories {
232-
jcenter()
233-
maven { url 'https://repo.spring.io/snapshot' }
234-
maven { url 'https://repo.spring.io/milestone' }
235-
}
236-
dependencies {
237-
classpath 'org.springframework.boot:spring-boot-gradle-plugin:{spring-boot-version}'
238-
}
239-
}
240-
241-
apply plugin: 'java'
242-
apply plugin: 'org.springframework.boot'
243-
apply plugin: 'io.spring.dependency-management'
244-
245-
endif::[]
246-
jar {
247-
baseName = 'myproject'
248-
version = '0.0.1-SNAPSHOT'
249-
}
250-
251-
repositories {
252-
jcenter()
253-
ifeval::["{spring-boot-repo}" != "release"]
254-
maven { url "https://repo.spring.io/snapshot" }
255-
maven { url "https://repo.spring.io/milestone" }
256-
endif::[]
257-
}
258-
259-
dependencies {
260-
compile("org.springframework.boot:spring-boot-starter-web")
261-
testCompile("org.springframework.boot:spring-boot-starter-test")
262-
}
263-
----
219+
More details on getting started with Spring Boot and Gradle can be found in the
220+
{spring-boot-gradle-plugin-reference}/#getting-started[Getting Started section] of the
221+
Gradle plugin's reference guide.
264222

265223

266224

0 commit comments

Comments
 (0)